@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --glucose-canvas-bg: #f8fafc;
  --glucose-surface-panel: #ffffff;
  --glucose-tone-primary: #0284c7;
  --glucose-tone-accent: #f59e0b;
  --glucose-tone-deep: #0f172a;
  --glucose-tone-hover: #0369a1;
  --glucose-ink-heading: #0f172a;
  --glucose-ink-body: #334155;
  --glucose-flow-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 50%, #10b981 100%);
  --glucose-dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --glucose-warm-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  --font-heading: 'Montserrat', sans-serif;
  --font-text: 'Open Sans', sans-serif;

  --metabolic-radius-soft: 16px;
  --metabolic-radius-pill: 999px;
  --metabolic-shadow-deep: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --metabolic-shadow-glow: 0 10px 30px -5px rgba(2, 132, 199, 0.3);

  --section-space: 10dvh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--glucose-canvas-bg);
  color: var(--glucose-ink-body);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--glucose-ink-heading);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--glucose-warm-gradient);
  width: 100%;
  transform-origin: left;
  z-index: 10000;
  animation: scrollProgress linear;
  animation-timeline: scroll();
}

@keyframes scrollProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* HEADER PRESET F CORPORATE GRADIENT */
.metabolic-header-zone {
  background: var(--glucose-flow-gradient);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.metabolic-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vital-brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  font-family: var(--font-heading);
}

.vital-brand-svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
}

.vital-nav-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.vital-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.vital-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--glucose-tone-accent);
  border-radius: var(--metabolic-radius-pill);
  transition: width 0.3s ease;
}

.vital-nav-link:hover, .vital-nav-link.active-link {
  color: #ffffff;
}

.vital-nav-link:hover::after, .vital-nav-link.active-link::after {
  width: 100%;
}

.menu-toggle-checkbox {
  display: none;
}

.menu-hamburger-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-hamburger-icon span {
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* INDEX HERO PRESET F */
.glucose-hero-shell {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('img/bg.webp') center/cover no-repeat;
  color: #ffffff;
  padding: var(--section-space) 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82vh;
}

.glucose-hero-box {
  max-width: 860px;
}

.glucose-hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.glucose-hero-subhead {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.sugar-stat-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.sugar-stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  border-radius: var(--metabolic-radius-soft);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 180px;
}

.sugar-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #38bdf8;
  display: block;
}

.sugar-stat-label {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.vital-button-primary {
  display: inline-block;
  background: var(--glucose-flow-gradient);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--metabolic-radius-pill);
  box-shadow: var(--metabolic-shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.vital-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.5);
}

.vital-button-dark {
  display: inline-block;
  background: var(--glucose-tone-deep);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--metabolic-radius-pill);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.vital-button-dark:hover {
  background: #1e293b;
  transform: translateY(-3px);
}

.trust-badge-line {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0.8;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.trust-badge-svg {
  width: 22px;
  height: 22px;
  fill: var(--glucose-tone-accent);
}

/* CONTENT SECTION PRESET F (HORIZONTAL SCROLL MOBILE / 3 CARDS DESKTOP) */
.energy-scroll-section {
  padding: var(--section-space) 2rem;
  background: linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.95)), url('img/bg2.webp') center/cover fixed;
}

.metabolic-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-tagline {
  color: var(--glucose-tone-primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title-large {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.energy-scroll-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.vital-card-node {
  background: var(--glucose-surface-panel);
  border-radius: var(--metabolic-radius-soft);
  padding: 2.5rem 2rem;
  box-shadow: var(--metabolic-shadow-deep);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vital-card-node:hover {
  transform: translateY(-8px);
}

.card-node-icon {
  width: 56px;
  height: 56px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-node-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--glucose-tone-primary);
}

.card-node-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-node-body {
  color: var(--glucose-ink-body);
  font-size: 0.95rem;
}

/* FEATURES GRID PRESET F */
.metabolic-features-zone {
  padding: var(--section-space) 2rem;
  background-color: #ffffff;
}

.features-preset-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.metabolic-feature-box {
  background: var(--glucose-canvas-bg);
  padding: 2.2rem 1.8rem;
  border-radius: var(--metabolic-radius-soft);
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-gradient-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glucose-flow-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-gradient-circle svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.feature-box-heading {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.feature-box-text {
  font-size: 0.95rem;
  color: var(--glucose-ink-body);
  transition: color 0.3s ease;
}

.metabolic-feature-box:hover {
  background: var(--glucose-flow-gradient);
  box-shadow: var(--metabolic-shadow-glow);
  transform: translateY(-5px);
}

.metabolic-feature-box:hover .feature-gradient-circle {
  background: #ffffff;
  transform: scale(1.1);
}

.metabolic-feature-box:hover .feature-gradient-circle svg {
  fill: var(--glucose-tone-primary);
}

.metabolic-feature-box:hover .feature-box-heading,
.metabolic-feature-box:hover .feature-box-text {
  color: #ffffff;
}

/* HOW IT WORKS PROCESS BAR */
.routine-process-area {
  padding: var(--section-space) 2rem;
  background: #f1f5f9;
}

.routine-tracker-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 1.5rem;
  margin-top: 2rem;
}

.routine-tracker-row::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #cbd5e1;
  z-index: 1;
}

.routine-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-number-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glucose-surface-panel);
  border: 3px solid var(--glucose-tone-primary);
  color: var(--glucose-tone-primary);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.routine-step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.routine-step-desc {
  font-size: 0.9rem;
  color: #64748b;
}

/* CTA STRIP PRESET F */
.action-strip-hull {
  background: var(--glucose-flow-gradient);
  padding: 4rem 2rem;
  color: #ffffff;
}

.action-strip-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.action-strip-title {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 700px;
}

/* EXPERT PAGE STYLES */
.balance-expert-hero {
  padding: var(--section-space) 2rem;
  background: var(--glucose-surface-panel);
}

.balance-expert-duo {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.balance-expert-image-side {
  flex: 0 0 40%;
}

.balance-expert-image-side img {
  width: 100%;
  border-radius: var(--metabolic-radius-soft);
  box-shadow: var(--metabolic-shadow-deep);
  display: block;
  object-fit: cover;
  max-height: 520px;
}

.balance-expert-text-side {
  flex: 0 0 60%;
}

.balance-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 2rem;
  background: #f8fafc;
}

.expert-stat-card {
  background: var(--glucose-surface-panel);
  padding: 2rem 1.5rem;
  border-radius: var(--metabolic-radius-soft);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border-top: 4px solid var(--glucose-tone-primary);
}

.expert-stat-big {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--glucose-tone-primary);
  font-family: var(--font-heading);
  display: block;
}

/* RESERVE PAGE PRESET F (2-COL) */
.glucose-reserve-wrapper {
  padding: var(--section-space) 2rem;
}

.glucose-form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.glucose-trust-column {
  position: sticky;
  top: 100px;
}

.reserve-decorative-head {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.glucose-form-card {
  background: var(--glucose-surface-panel);
  padding: 3rem 2.5rem;
  border-radius: var(--metabolic-radius-soft);
  box-shadow: var(--metabolic-shadow-deep);
  border: 1px solid #e2e8f0;
}

.form-group-field {
  margin-bottom: 1.5rem;
}

.form-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: var(--font-text);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input-control:focus {
  outline: none;
  border-color: var(--glucose-tone-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.checkbox-consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.checkbox-consent-wrap input {
  margin-top: 0.2rem;
}

.vital-cards-row {
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: #ffffff;
}

.info-point-card {
  background: var(--glucose-canvas-bg);
  padding: 2rem;
  border-radius: var(--metabolic-radius-soft);
}

.info-point-card ol {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.info-point-card li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* FAQ SECTION */
.vital-faq-zone {
  padding: var(--section-space) 2rem;
  background: #f8fafc;
}

.vital-faq-stack {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vital-faq-item {
  background: var(--glucose-surface-panel);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-left: 4px solid var(--glucose-tone-primary);
}

.faq-question-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--glucose-ink-heading);
}

.faq-answer-text {
  font-size: 0.95rem;
  color: var(--glucose-ink-body);
}

/* LEGAL PAGES & THANK YOU */
.legal-document-hull {
  padding: var(--section-space) 2rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
}

.legal-document-title {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.legal-paragraph {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--glucose-ink-body);
}

.thank-content-box {
  padding: var(--section-space) 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thank-image-preview {
  max-width: 320px;
  border-radius: var(--metabolic-radius-soft);
  margin: 2rem 0;
  box-shadow: var(--metabolic-shadow-deep);
}

/* FOOTER PRESET F */
.metabolic-footer-zone {
  background: var(--glucose-tone-deep);
  color: #94a3b8;
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid #1e293b;
}

.metabolic-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: var(--glucose-tone-accent);
}

.footer-disclaimer-box {
  background: #1e293b;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  border-left: 3px solid var(--glucose-tone-accent);
}

.footer-bottom-copy {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
}

/* COOKIE BANNER */
.cookie-banner-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 1.25rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 2px solid var(--glucose-tone-primary);
}

.cookie-actions-wrap {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--glucose-tone-primary);
  color: #ffffff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--metabolic-radius-pill);
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-decline {
  background: transparent;
  color: #cbd5e1;
  padding: 0.6rem 1.4rem;
  border-radius: var(--metabolic-radius-pill);
  border: 1px solid #475569;
  font-weight: 600;
  cursor: pointer;
}

/* ANIMATIONS & RESPONSIVE */
.reveal-on-scroll {
  animation: revealView ease-out forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

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

@media (max-width: 992px) {
  .features-preset-layout,
  .energy-scroll-deck,
  .vital-cards-row {
    grid-template-columns: 1fr;
  }

  .energy-scroll-deck {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
  }

  .vital-card-node {
    min-width: 80vw;
    scroll-snap-align: start;
  }

  .balance-expert-duo,
  .glucose-form-layout,
  .action-strip-flex {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .balance-expert-image-side,
  .balance-expert-text-side {
    flex: 1 1 100%;
  }

  .balance-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .routine-tracker-row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .routine-tracker-row::before {
    display: none;
  }

  .glucose-trust-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .menu-hamburger-icon {
    display: flex;
  }

  .vital-nav-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0284c7;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
  }

  .menu-toggle-checkbox:checked ~ .vital-nav-bar {
    display: flex;
  }

  .cookie-banner-bar {
    flex-direction: column;
    text-align: center;
  }

  .balance-stats-grid {
    grid-template-columns: 1fr;
  }
}