/* ==========================================================================
   VEYSOPAS FINLAND — NORDIC BIOTECH DARK LUXURY DESIGN SYSTEM
   Architecture: Double-Bezel Haptic Enclosures, Fluid Island Navigation,
   Spring Cubic-Bezier Motion, Mobile-First Responsive Grid
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Core Palette — Dark Nordic Aurora & Gold */
  --bg-obsidian: #060A10;
  --bg-deep: #0A111C;
  --bg-surface: #0F1928;
  --bg-elevated: #142236;
  --bg-glass: rgba(15, 25, 40, 0.78);
  --bg-shell: rgba(255, 255, 255, 0.03);

  /* Text Hierarchy */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Brand Accents — Matched to VEYSOPAS Packaging */
  --gold-light: #F6D88C;
  --gold-main: #D4AF37;
  --gold-dark: #A88220;
  --gold-glow: rgba(212, 175, 55, 0.22);

  --cyan-light: #5EEAD4;
  --cyan-main: #2DD4BF;
  --cyan-dark: #0D9488;
  --cyan-glow: rgba(45, 212, 191, 0.22);

  /* Semantic Status */
  --status-ok: #10B981;
  --status-warn: #F59E0B;
  --status-err: #EF4444;

  /* Hairlines & Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-cyan: rgba(45, 212, 191, 0.35);

  /* Radii — Consistent Shape System */
  --radius-outer: 28px;
  --radius-inner: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 9999px;

  /* Shadows & Haptics */
  --shadow-ambient: 0 24px 60px -15px rgba(2, 6, 14, 0.85);
  --shadow-gold: 0 12px 36px -8px rgba(212, 175, 55, 0.28);
  --shadow-cyan: 0 12px 36px -8px rgba(45, 212, 191, 0.24);
  --inner-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Fluid Physics Transitions */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle fixed film grain for physical depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease-spring);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   LAYOUT CONTAINERS & SPATIAL RHYTHM
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding: 6.5rem 0;
  }
}

/* Page Entrance Curtain & Smooth Reveal */
.page-transition-layer {
  animation: pageEnter 0.65s var(--ease-out-expo) forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal Classes (IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   DOUBLE-BEZEL HAPTIC ARCHITECTURE (Outer Shell + Inner Core)
   ========================================================================== */
.bezel-shell {
  background: var(--bg-shell);
  border: 1px solid var(--border-subtle);
  padding: 6px;
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow-ambient);
  transition: border-color 0.45s var(--ease-spring), transform 0.45s var(--ease-spring);
}

.bezel-shell:hover {
  border-color: var(--border-medium);
}

.bezel-shell--gold {
  border-color: rgba(212, 175, 55, 0.24);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.06), rgba(15, 25, 40, 0.4));
}

.bezel-shell--cyan {
  border-color: rgba(45, 212, 191, 0.24);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.06), rgba(15, 25, 40, 0.4));
}

.bezel-core {
  background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  box-shadow: var(--inner-highlight);
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bezel-core {
    padding: 2.5rem;
  }
}

/* ==========================================================================
   TYPOGRAPHY & EYEBROW TAGS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
}

.eyebrow--gold {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.h1-display {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.h2-display {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.h3-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.text-gradient-gold {
  background: linear-gradient(120deg, #FFF3D1 0%, #D4AF37 55%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(120deg, #99F6E4 0%, #2DD4BF 55%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-text {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 65ch;
}

.body-prose p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.04rem;
  line-height: 1.78;
}

.body-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   BUTTON-IN-BUTTON ISLAND ARCHITECTURE
   ========================================================================== */
.btn-island {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem 0.65rem 1.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring), background 0.45s var(--ease-spring);
  position: relative;
}

.btn-island--gold {
  background: linear-gradient(135deg, #F3D078 0%, #D4AF37 55%, #B5891C 100%);
  color: #060A10;
  box-shadow: var(--shadow-gold);
}

.btn-island--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px -6px rgba(212, 175, 55, 0.45);
}

.btn-island--gold:active {
  transform: scale(0.98);
}

.btn-island--cyan {
  background: linear-gradient(135deg, #5EEAD4 0%, #2DD4BF 55%, #0D9488 100%);
  color: #041014;
  box-shadow: var(--shadow-cyan);
}

.btn-island--cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px -6px rgba(45, 212, 191, 0.42);
}

.btn-island--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.4rem;
}

.btn-island--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-main);
}

.btn-island__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(6, 10, 16, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease-spring), background 0.45s var(--ease-spring);
  flex-shrink: 0;
}

.btn-island:hover .btn-island__icon {
  transform: translate(2px, -1px) scale(1.06);
  background: rgba(6, 10, 16, 0.28);
}

/* ==========================================================================
   FIXED HEADER — FLUID ISLAND NAVIGATION (Strict white-space: nowrap)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(6, 10, 16, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
}

@media (min-width: 1080px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.35s var(--ease-spring);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #060A10;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta {
  padding: 0.5rem 0.6rem 0.5rem 1.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.header-cta .btn-island__icon {
  width: 28px;
  height: 28px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

@media (min-width: 1080px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.85rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: grid;
  gap: 0.4rem;
}

.mobile-nav-list .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO & EDITORIAL SPLIT GRIDS
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
  }
}

.hero-bullets {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 2.25rem;
}

.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.hero-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-inner);
  overflow: hidden;
}

.hero-photo-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius-inner) - 4px);
  transform: scale(1.01);
  transition: transform 0.8s var(--ease-out-expo);
}

.hero-photo-frame:hover img {
  transform: scale(1.04);
}

.photo-caption-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(6, 10, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   BENTO GRIDS & EDITORIAL STORY CARDS
   ========================================================================== */
.bento-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .bento-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bento-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .bento-asymmetric {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  margin-bottom: 1rem;
}

.story-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--gold-main);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.08rem;
}

/*Timeline steps*/
.timeline-list {
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.timeline-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   INTERACTIVE MODULE 1: DYNAMIC QUIZ (3-4 QUESTIONS)
   ========================================================================== */
.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--cyan-main), var(--gold-main));
  transition: width 0.45s var(--ease-spring);
}

.quiz-options {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-spring);
}

.quiz-option-btn:hover {
  background: rgba(45, 212, 191, 0.09);
  border-color: var(--cyan-main);
  transform: translateX(4px);
}

.quiz-option-score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.12);
  white-space: nowrap;
}

/* ==========================================================================
   INTERACTIVE MODULE 2: NORDIC BIO-RHYTHM BREATHING TIMER (SVG CIRCLE)
   ========================================================================== */
.timer-widget-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .timer-widget-layout {
    grid-template-columns: auto 1fr;
  }
}

.circle-timer-wrap {
  position: relative;
  width: 248px;
  height: 248px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.08) 0%, rgba(6, 10, 16, 0.9) 70%);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(45, 212, 191, 0.08), 0 14px 35px rgba(0, 0, 0, 0.55);
}

.circle-timer-svg {
  transform: rotate(-90deg);
  width: 248px;
  height: 248px;
}

.circle-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke: url(#timerGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s linear;
}

.circle-timer-center {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 14, 24, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18px;
}

.timer-seconds {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.timer-phase-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-light);
  margin-top: 0.55rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 148px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.24);
}

/* ==========================================================================
   INTERACTIVE MODULE 3: BEFORE / AFTER VITALITY SLIDER
   ========================================================================== */
.comparison-slider-wrap {
  margin-top: 1.5rem;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #334155 0%, var(--cyan-main) 50%, var(--gold-main) 100%);
  outline: none;
  margin: 1.25rem 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 4px solid var(--gold-main);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.8);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.comparison-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .comparison-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0.25rem 0;
}

/* ==========================================================================
   CERTIFICATES & QUALITY STANDARDS (4 INTERACTIVE CARDS + MODAL)
   ========================================================================== */
.cert-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cert-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cert-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.4s var(--ease-spring);
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-spring);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease-spring);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   OFFER PAGE & CONSULTATION FORM (tilaus.html)
   ========================================================================== */
.offer-product-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 40%, rgba(45, 212, 191, 0.16), rgba(212, 175, 55, 0.08) 55%, transparent 75%);
  border-radius: var(--radius-inner);
  border: 1px solid var(--border-subtle);
}

.offer-product-img {
  max-width: 290px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.75));
  transition: transform 0.6s var(--ease-spring);
}

.offer-product-img:hover {
  transform: translateY(-6px) scale(1.02);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 16, 0.75);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-main);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-input.is-invalid {
  border-color: var(--status-err);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.form-input.is-valid {
  border-color: var(--status-ok);
}

.form-feedback {
  font-size: 0.82rem;
  margin-top: 0.45rem;
  min-height: 1.25rem;
  font-weight: 500;
}

.form-feedback.is-error {
  color: #FCA5A5;
}

.form-feedback.is-ok {
  color: #6EE7B7;
}

.trust-badges-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .trust-badges-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(15, 25, 40, 0.65);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-spring);
}

.faq-item.is-open {
  border-color: var(--border-gold);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-spring), background 0.35s var(--ease-spring);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring);
}

.faq-content-inner {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER, GOOGLE MAP & LEGAL COMPLIANCE
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  padding: 4.5rem 0 2.5rem;
  background: #04070B;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr 1.1fr;
  }
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.map-frame-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  height: 210px;
  background: var(--bg-surface);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(92%) contrast(90%);
}

.legal-disclaimer-box {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 560px;
  z-index: 150;
  background: rgba(10, 17, 28, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-ambient);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: pageEnter 0.45s var(--ease-out-expo) forwards;
}

/* Table styles for CoA & Legal pages */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tr:last-child td {
  border-bottom: none;
}
