/* ============================================================
   VAIN — Main Stylesheet
   Design tokens, layout, components, animations
   ============================================================ */

/* ============ FONTS: 42dotSans ============ */
@font-face {
  font-family: '42dotSans';
  src: url('../fonts/42dotSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '42dotSans';
  src: url('../fonts/42dotSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '42dotSans';
  src: url('../fonts/42dotSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '42dotSans';
  src: url('../fonts/42dotSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '42dotSans';
  src: url('../fonts/42dotSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: '42dotSans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============ DESIGN TOKENS ============ */
:root {
  --cream:      #fafaf8;
  --cream-dark: #f2f2ef;
  --orange:     #e9913a;
  --yellow:     #e9bb33;
  --lime:       #c4d773;
  --sage:       #97b556;
  --dark:       #0f0f0e;
  --dark-mid:   #1a1a1a;
  --gray:       #6b6b6b;
  --light-gray: #d4d4d0;
  --white:      #ffffff;

  --grad-warm:    linear-gradient(135deg, #e9913a, #e9bb33);
  --grad-primary: linear-gradient(135deg, #e9913a, #e9bb33, #c4d773);
  --grad-cool:    linear-gradient(135deg, #e9bb33, #c4d773, #97b556);
  --grad-full:    linear-gradient(135deg, #e9913a 0%, #e9bb33 40%, #c4d773 70%, #97b556 100%);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 24px 72px rgba(0,0,0,0.14);
  --shadow-xl:  0 40px 120px rgba(0,0,0,0.18);

  --nav-height: 72px;
  --section-pad: clamp(72px, 10vw, 128px);
  --container-max: 1200px;
}

/* ============ UTILITIES ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.gradient-text {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(135deg, #e9913a, #e9bb33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(233, 145, 58, 0.1);
  border: 1px solid rgba(233, 145, 58, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-tag--light {
  color: var(--sage);
  background: rgba(151, 181, 86, 0.12);
  border-color: rgba(151, 181, 86, 0.25);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header h2 {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark-mid);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.nav.scrolled {
  background: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo { flex-shrink: 0; }
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-mid);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--orange); background: rgba(233,145,58,0.06); }
.nav-links a.active { color: var(--orange); }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--dark); }

.dropdown-icon {
  font-size: 18px;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-top: 1px;
}
.dropdown-menu strong { display: block; font-size: 14px; font-weight: 600; color: var(--dark-mid); margin-bottom: 2px; }
.dropdown-menu small { font-size: 12px; color: var(--gray); }

.nav-cta {
  flex-shrink: 0;
  background: var(--grad-warm);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(233,145,58,0.35);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(233,145,58,0.45); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-mid);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: rgba(250, 250, 248, 0.97);
  backdrop-filter: blur(20px);
  padding: 32px clamp(20px, 5vw, 64px);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-size: 20px;
  font-weight: 500;
  padding: 12px 0;
  color: var(--dark-mid);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-divider { height: 1px; background: var(--light-gray); margin: 8px 0; }
.mobile-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 8px 0 4px;
}
.mobile-cta {
  margin-top: 16px;
  background: var(--grad-warm);
  color: white !important;
  font-weight: 600 !important;
  text-align: center;
  padding: 16px !important;
  border-radius: 100px;
  border-bottom: none !important;
  box-shadow: 0 4px 16px rgba(233,145,58,0.35);
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-warm);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(233,145,58,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(233,145,58,0.45);
  opacity: 0.92;
}
.btn-primary--large { padding: 18px 36px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-mid);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,0.12);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(233,145,58,0.05);
}
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, rgba(233,145,58,0.18), transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: radial-gradient(circle, rgba(233,187,51,0.14), transparent 70%);
  bottom: 10%;
  right: 20%;
  animation-delay: -4s;
}
.hero-orb--3 {
  width: clamp(150px, 20vw, 280px);
  height: clamp(150px, 20vw, 280px);
  background: radial-gradient(circle, rgba(151,181,86,0.2), transparent 70%);
  top: 30%;
  left: -5%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  33% { transform: translateY(-24px) scale(1.04); }
  66% { transform: translateY(12px) scale(0.97); }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.hero-content { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-mid);
  background: white;
  border: 1px solid var(--light-gray);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-warm);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-headline {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--dark-mid);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--gray);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-integrations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.integrations-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}
.integration-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.int-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-mid);
  background: white;
  border: 1px solid var(--light-gray);
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.phone-frame {
  position: relative;
  width: 260px;
  height: 530px;
  background: #1a1a1a;
  border-radius: 44px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 40px 80px rgba(0,0,0,0.22),
    0 12px 24px rgba(0,0,0,0.14);
  transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone-frame:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(1deg);
}

@keyframes phoneFloat {
  0%, 100% { transform: perspective(800px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}

.phone-screen {
  position: absolute;
  inset: 4px;
  background: var(--cream);
  border-radius: 40px;
  overflow: hidden;
}

.phone-home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
}

/* App UI mockup inside phone */
.app-ui {
  padding: 52px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.app-greeting {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 1px;
}
.app-name {
  font-family: '42dotSans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-mid);
}
.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-warm);
}

.app-score-card {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.score-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.score-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}
.score-number {
  font-family: '42dotSans', sans-serif;
  font-size: 30px;
  font-weight: 800;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.score-unit { font-size: 12px; color: var(--gray); }
.score-bar {
  height: 5px;
  background: var(--cream-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.score-fill {
  height: 100%;
  background: var(--grad-warm);
  border-radius: 10px;
}
.score-delta { font-size: 10px; color: var(--sage); font-weight: 600; }

.app-insight-card {
  background: linear-gradient(135deg, rgba(233,145,58,0.08), rgba(233,187,51,0.06));
  border: 1px solid rgba(233,145,58,0.15);
  border-radius: 14px;
  padding: 11px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.insight-icon {
  font-size: 14px;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-top: 1px;
}
.insight-text strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.insight-text p { font-size: 10px; color: var(--dark-mid); line-height: 1.4; }

.app-log-row {
  display: flex;
  gap: 8px;
}
.log-item {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  padding: 8px;
  border-radius: 10px;
  background: var(--cream-dark);
  color: var(--gray);
}
.log-item--active {
  background: linear-gradient(135deg, rgba(233,145,58,0.15), rgba(233,187,51,0.1));
  color: var(--orange);
  border: 1px solid rgba(233,145,58,0.2);
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
  white-space: nowrap;
  animation: floatCard 5s ease-in-out infinite;
}

.floating-card--1 {
  bottom: 60px;
  left: -60px;
  animation-delay: -2s;
}
.floating-card--2 {
  top: 60px;
  right: -50px;
  animation-delay: -1s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fc-icon { font-size: 22px; flex-shrink: 0; }
.fc-label { display: block; font-size: 12px; font-weight: 600; color: var(--dark-mid); }
.fc-sub { display: block; font-size: 11px; color: var(--gray); margin-top: 1px; }
.fc-impact { font-size: 11px; font-weight: 700; color: #e05555; }
.fc-impact--neg { color: #e05555; }

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  background: #f4f8ee;
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.how-it-works .section-header h2 {
  color: var(--dark-mid);
}
.how-it-works .section-tag {
  color: var(--orange);
  background: rgba(233,145,58,0.1);
  border-color: rgba(233,145,58,0.18);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.feature-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: rgba(233,145,58,0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card--wide {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.feature-card--wide .feature-number { position: static; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(233,145,58,0.08);
  border: 1px solid rgba(233,145,58,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  transition: background 0.3s;
}
.feature-card:hover .feature-icon {
  background: rgba(233,145,58,0.15);
}
.feature-icon svg { color: var(--orange); }
.feature-icon--green {
  background: rgba(151,181,86,0.1);
  border-color: rgba(151,181,86,0.15);
}
.feature-icon--green svg { color: var(--sage); }

.feature-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: '42dotSans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.1);
}
.feature-card--wide .feature-number {
  top: 28px;
  right: 24px;
}

.feature-card h3 {
  font-family: '42dotSans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-mid);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ============ SCIENCE ============ */
.science {
  background: var(--cream);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.science-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}

.science-content h2 {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark-mid);
  margin-bottom: 24px;
}
.science-content h2 em {
  font-style: normal;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.science-body {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
}
.science-callout {
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 32px;
}

.wearables-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wearable-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--light-gray);
  padding: 10px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-mid);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.wearable-badge:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(233,145,58,0.15);
  transform: translateY(-2px);
}

.wb-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.wb-icon--watch  { background: #1d1d1f; color: white; font-size: 15px; }
.wb-icon--oura   { background: var(--sage); color: white; }
.wb-icon--whoop  { background: #1a1a2e; color: white; font-size: 10px; }
.wb-icon--health { background: #ff375f; color: white; font-size: 14px; }
.wb-icon--cycle  { background: linear-gradient(135deg, #e9913a, #e9bb33); color: white; }

/* Infographic */
.skin-infographic {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}
.infographic-svg { width: 100%; height: auto; }

/* ============ AI INSIGHTS ============ */
.insights {
  position: relative;
  background: #fef8f0;
  padding: var(--section-pad) 0;
  overflow: hidden;
  text-align: center;
}

.insights-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(233,145,58,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(233,187,51,0.05) 0%, transparent 50%);
}

.insights-inner { position: relative; z-index: 1; }
.insights-inner h2 {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark-mid);
  margin-bottom: 20px;
  line-height: 1.1;
}
.insights-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

.insight-demo-card {
  background: white;
  border: 1px solid rgba(233,145,58,0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.insight-demo-card:hover {
  border-color: rgba(233,145,58,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.insight-demo-card--secondary {
  border-color: rgba(233,187,51,0.18);
}
.insight-demo-card--tertiary {
  border-color: rgba(233,145,58,0.14);
}

.idc-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.insight-demo-card--secondary .idc-tag { color: var(--yellow); }
.insight-demo-card--tertiary .idc-tag { color: var(--orange); }

.idc-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 18px;
}
.idc-text strong { color: var(--dark-mid); }

.idc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.idc-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.idc-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(233,145,58,0.05);
}
.idc-btn--primary {
  background: var(--grad-warm);
  border-color: transparent;
  color: white;
}
.idc-btn--primary:hover { opacity: 0.88; background: var(--grad-warm); }

.insights-note {
  font-size: 15px;
  color: var(--light-gray);
  font-style: italic;
}

/* ============ COURSES ============ */
.courses {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.course-card-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-header--beginner { background: linear-gradient(135deg, rgba(233,145,58,0.1), rgba(233,187,51,0.1)); }
.course-header--kbeauty  { background: linear-gradient(135deg, rgba(233,145,58,0.12), rgba(233,187,51,0.1)); }
.course-header--glow     { background: linear-gradient(135deg, rgba(233,187,51,0.12), rgba(233,187,51,0.1)); }
.course-header--pro      { background: linear-gradient(135deg, rgba(26,26,26,0.06), rgba(107,107,107,0.06)); }

.course-emoji { font-size: 36px; }

.course-card-body { padding: 20px; }

.course-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(233,145,58,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.course-card h3 {
  font-family: '42dotSans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-mid);
  margin-bottom: 8px;
  line-height: 1.3;
}
.course-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}
.course-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}

/* ============ VISION ============ */
.vision {
  position: relative;
  padding: var(--section-pad) 0;
  background: linear-gradient(145deg, #e9913a 0%, #e9bb33 55%, #c4d773 100%);
  overflow: hidden;
  text-align: center;
}

.vision-gradient { display: none; }

.vision-inner { position: relative; z-index: 1; }

.vision .section-tag {
  color: white;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}

.vision-headline {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 28px;
}

.vision-gradient-text {
  color: white;
  -webkit-text-fill-color: white;
}

.vision-body {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.75;
}

.vision-statement {
  font-size: clamp(18px, 2.5vw, 22px);
  color: rgba(255,255,255,0.9);
  margin-bottom: 60px;
  line-height: 1.6;
}
.vision-statement strong { color: white; }

.vision-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.stat-number {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: white;
  -webkit-text-fill-color: white;
  display: inline;
}
.stat-suffix {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: white;
  -webkit-text-fill-color: white;
  display: inline;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
}

/* ============ PORTALS ============ */
.portals {
  background: var(--cream-dark);
  padding: var(--section-pad) 0;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portal-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233,145,58,0.2);
}
.portal-card--featured {
  background: linear-gradient(145deg, rgba(151,181,86,0.08), rgba(196,215,115,0.04));
  border-color: rgba(151,181,86,0.2);
  box-shadow: var(--shadow-md);
}
.portal-card--featured:hover {
  border-color: rgba(151,181,86,0.35);
}

.portal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.portal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.portal-icon--brands  { background: rgba(233,145,58,0.12); color: var(--orange); }
.portal-icon--medspas { background: rgba(151,181,86,0.12); color: var(--sage); }
.portal-icon--creators{ background: rgba(233,187,51,0.12); color: #c49a00; }

.portal-card--featured .portal-icon--medspas {
  background: rgba(233,187,51,0.15);
}

.portal-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(233,145,58,0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

.portal-card h3 {
  font-family: '42dotSans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-mid);
  margin-bottom: 10px;
  line-height: 1.3;
}
.portal-card--featured h3 { color: var(--dark-mid); }

.portal-card > p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.portal-card--featured > p { color: var(--gray); }

.portal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}
.portal-features li {
  font-size: 13px;
  color: var(--gray);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.portal-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 11px;
}
.portal-card--featured .portal-features li { color: var(--gray); }
.portal-card--featured .portal-features li::before { color: var(--lime); }

.portal-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  transition: gap 0.2s;
  margin-top: auto;
}
.portal-card--featured .portal-link { color: var(--lime); }
.portal-card:hover .portal-link { text-decoration: underline; }

/* ============ DOWNLOAD CTA ============ */
.download-cta {
  background: var(--cream);
  padding: var(--section-pad) 0;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.download-inner {
  max-width: 600px;
  margin: 0 auto;
}

.download-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-md);
}
.download-app-icon img { width: 100%; height: 100%; object-fit: cover; }

.download-inner h2 {
  font-family: '42dotSans', sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark-mid);
  margin-bottom: 16px;
  line-height: 1.15;
}
.download-inner p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 32px;
}
.download-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.download-fine {
  font-size: 13px !important;
  color: var(--light-gray) !important;
  margin-bottom: 0 !important;
}

/* ============ FOOTER ============ */
.footer {
  background: white;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: clamp(60px, 8vw, 96px) 0 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: rgba(233,145,58,0.1);
  color: var(--orange);
  border-color: rgba(233,145,58,0.2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--light-gray);
}
.footer-made { color: var(--light-gray) !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide {
    grid-column: span 2;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-integrations { justify-content: center; }

  .science-layout {
    grid-template-columns: 1fr;
  }
  .science-visual { order: -1; }

  .insight-cards {
    grid-template-columns: 1fr;
  }

  .portals-grid {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .vision-stats {
    gap: 32px;
  }
  .stat-divider { display: none; }

  .phone-frame {
    width: 220px;
    height: 450px;
  }
  .floating-card--1 { left: -20px; }
  .floating-card--2 { right: -20px; }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .floating-card { display: none; }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-ghost {
    justify-content: center;
  }
}
