/* ========================================================================
   String Tension AI — Stylesheet
   ======================================================================== */

/* ── RESET & CUSTOM PROPERTIES ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-start: #f0f4fa;
  --bg-mid: #e8eef8;
  --bg-end: #f5f7fb;
  --text-primary: #0a0e1a;
  --text-secondary: #5a6178;
  --text-muted: #8b92a8;
  --accent: #4a7aff;
  --accent-light: #6b94ff;
  --accent-bg: #eef3ff;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.95);
  --card-bg-strong: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 2px 8px rgba(10, 14, 26, 0.06), 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-md: 0 8px 32px rgba(10, 14, 26, 0.10), 0 2px 8px rgba(10, 14, 26, 0.05);
  --shadow-lg: 0 20px 56px rgba(10, 14, 26, 0.12), 0 4px 12px rgba(10, 14, 26, 0.06);
  --shadow-float: 0 16px 48px rgba(10, 14, 26, 0.12), 0 4px 12px rgba(10, 14, 26, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-start);
  line-height: 1.6;
}

/* ── SKIP NAV (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--text-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(240, 244, 250, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

nav.scrolled {
  background: rgba(240, 244, 250, 0.92);
  box-shadow: 0 1px 20px rgba(10, 14, 26, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.nav-cta) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s var(--ease-out-expo);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.nav-active::after {
  width: 100%;
  left: 0;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text-primary);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-links a.nav-active {
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--text-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out-expo);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 14, 26, 0.2);
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(10, 14, 26, 0.12);
  transition-duration: 0.1s;
}

.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

/* ── MOBILE MENU TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================================
   SECTION LAYOUT
   ======================================================================== */
section {
  position: relative;
  padding: 140px 48px;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── HEADINGS ── */
.section-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   FLOATING ICONS
   ======================================================================== */
.float-icon {
  position: absolute;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
  animation: float-bob 6s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

.float-icon.lg {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  font-size: 40px;
}

.float-icon.sm {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 24px;
}

/* Float icon positions — Hero */
.float-icon--hero-1 { top: 15%; left: 6%; animation-delay: -1s; }
.float-icon--hero-2 { top: 10%; right: 8%; animation-delay: -3s; }
.float-icon--hero-3 { top: 55%; left: 3%; animation-delay: -2s; }
.float-icon--hero-4 { top: 65%; right: 5%; animation-delay: -4.5s; }
.float-icon--hero-5 { bottom: 12%; left: 12%; animation-delay: -0.5s; }
.float-icon--hero-6 { bottom: 8%; right: 10%; animation-delay: -2.5s; }

/* Float icon positions — CTA */
.float-icon--cta-1 { top: 12%; left: 8%; animation-delay: -1.5s; }
.float-icon--cta-2 { top: 18%; right: 12%; animation-delay: -3.5s; }
.float-icon--cta-3 { bottom: 15%; left: 10%; animation-delay: -0.8s; }
.float-icon--cta-4 { bottom: 20%; right: 8%; animation-delay: -2.2s; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(2deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}

/* ========================================================================
   HERO
   ======================================================================== */
#hero {
  padding-top: 200px;
  padding-bottom: 160px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#hero .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hero .section-subtitle {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

/* ── CTA BUTTONS ── */
.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(74, 122, 255, 0.3), 0 1px 3px rgba(74, 122, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(74, 122, 255, 0.4), 0 2px 6px rgba(74, 122, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 122, 255, 0.3);
  transition-duration: 0.1s;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  background: var(--text-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out-expo);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 14, 26, 0.2), 0 2px 6px rgba(10, 14, 26, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10, 14, 26, 0.12);
  transition-duration: 0.1s;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HERO HEADLINE (H1 wrapper) ── */
.hero-headline {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
}

/* ── HERO CYCLING TEXT ── */
.hero-cycle-wrap {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 8px;
}

.hero-cycle-wrap--last {
  margin-bottom: 12px;
}

.cycle-muted { color: #c8cdd8; }
.cycle-bold { color: var(--text-primary); }

.cycle-container {
  display: block;
  overflow: hidden;
  height: 1.25em;
}

.cycle-inner {
  display: flex;
  flex-direction: column;
  animation: cycle-scroll 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cycle-item {
  flex-shrink: 0;
  height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes cycle-scroll {
  0%, 18% { transform: translate3d(0, 0, 0); }
  25%, 43% { transform: translate3d(0, -25%, 0); }
  50%, 68% { transform: translate3d(0, -50%, 0); }
  75%, 100% { transform: translate3d(0, -75%, 0); }
}

/* ── HERO APP PREVIEW ── */
.hero-app-preview {
  margin-top: 64px;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg-strong);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px 28px 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: left;
}

.preview-question {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-question .sparkle { color: var(--accent); }

.preview-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.preview-cta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.preview-cta strong {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── SCROLL PROMPT ── */
.scroll-prompt-wrapper {
  text-align: center;
  padding-bottom: 40px;
  background: var(--bg-start);
}

.scroll-prompt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.scroll-prompt .sparkle,
.preview-question .sparkle {
  color: var(--accent);
}

/* ========================================================================
   FEATURES
   ======================================================================== */
.feature-label-hero {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.feature-title-hero {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 700px;
}

.feature-title-hero--narrow {
  max-width: 540px;
}

.feature-title-hero--advisor {
  max-width: 520px;
}

/* ── FEATURE GRID (2-col) ── */
.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Feature card with inner mockup */
.feature-card-visual {
  background: linear-gradient(135deg, #e8eef8, #dce6f5);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.feature-card-visual--alt {
  background: linear-gradient(135deg, #eaeff8, #dfe6f3);
}

/* Feature list items (checkmarks) */
.feature-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.feature-list-item {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list-item .check-icon {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #e8f8ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list-item .check-icon svg {
  width: 12px;
  height: 12px;
  color: #1a8a4a;
}

/* ========================================================================
   MOCKUP COMPONENTS
   ======================================================================== */

/* ── WAVEFORM ANIMATION ── */
.waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 80px;
  padding: 16px 0;
}

.wave-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  animation: wave-pulse 1.2s ease-in-out infinite;
}

@keyframes wave-pulse {
  0%, 100% { height: 12px; opacity: 0.4; }
  50% { height: var(--h, 48px); opacity: 1; }
}

/* ── SETTINGS MOCKUP ── */
.settings-mockup {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  width: 340px;
}

.settings-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.setting-item { text-align: center; }

.setting-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0f4fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 22px;
  position: relative;
}

.setting-icon .check {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.setting-icon .check svg {
  width: 10px;
  height: 10px;
  color: #fff;
}

.setting-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-status {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── SHORTCUT / FLOW MOCKUP ── */
.shortcut-mockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.key-cap {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.key-cap .key-symbol {
  font-size: 20px;
  color: var(--text-primary);
}

.key-cap .key-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.key-plus {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ========================================================================
   HOW IT WORKS
   ======================================================================== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.step-card { text-align: center; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(74, 122, 255, 0.25);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out-expo);
}

.step-card:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(74, 122, 255, 0.35);
}

.step-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
}

/* ========================================================================
   BIG FEATURE SECTIONS
   ======================================================================== */
.big-feature {
  padding: 140px 48px;
}

.big-feature .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.big-feature.reverse .section-inner {
  direction: rtl;
}

.big-feature.reverse .section-inner > * {
  direction: ltr;
}

/* ── PRODUCT MOCKUP ── */
.product-mockup {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 380px;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f2f5;
}

.mockup-topbar-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }

.mockup-body { padding: 24px; }

/* ── TENSION READING ── */
.tension-display {
  text-align: center;
  padding: 32px 0;
}

.tension-value {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--text-primary);
}

.tension-unit {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.tension-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tension-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

.tension-badge.good { background: #e8f8ee; color: #1a8a4a; }
.tension-badge.warn { background: #fff5e6; color: #c47f17; }

.confidence-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.conf-track {
  flex: 1;
  height: 6px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}

.conf-fill {
  height: 100%;
  width: 94%;
  background: linear-gradient(90deg, var(--accent), #6dd5a0);
  border-radius: 3px;
}

.confidence-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── MEASUREMENT META GRID ── */
.measure-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.meta-item {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.meta-item .meta-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-item .meta-key {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── BADGE PILLS ── */
.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.blue { background: #eef3ff; color: var(--accent); }
.badge.green { background: #e8f8ee; color: #1a8a4a; }
.badge.amber { background: #fff5e6; color: #c47f17; }

/* ========================================================================
   INSIGHTS / ADVISOR PANEL
   ======================================================================== */
.insights-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 360px;
}

.insights-tabs {
  display: flex;
  border-bottom: 1px solid #f0f2f5;
}

.insights-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
}

.insights-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.insights-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.insights-body { padding: 20px; }

/* Advisor header */
.advisor-header {
  text-align: center;
  padding: 16px 0 20px;
}

.advisor-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.advisor-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.advisor-unit {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Adjustment factors */
.factors-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.factor-entry {
  margin-bottom: 12px;
}

.factor-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.factor-name { color: var(--text-secondary); }
.factor-value--positive { color: #1a8a4a; font-weight: 600; }
.factor-value--negative { color: #c47f17; font-weight: 600; }

.factor-track {
  height: 4px;
  background: #f0f2f5;
  border-radius: 2px;
  overflow: hidden;
}

.factor-fill {
  height: 100%;
  border-radius: 2px;
}

.factor-fill--green { background: #1a8a4a; }
.factor-fill--amber { background: #c47f17; }

.insight-suggestion {
  background: #eef6ff;
  border: 1px solid #d4e5ff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--accent);
  line-height: 1.55;
  margin-top: 20px;
}

/* ========================================================================
   AUDIENCE SECTION
   ======================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.audience-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.35s;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}

.audience-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(74, 122, 255, 0.2);
}

.audience-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.audience-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================================================
   STATS BAR
   ======================================================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ========================================================================
   USE-CASES BAND
   ======================================================================== */
.use-cases-band {
  padding: 100px 48px;
}

.use-cases-headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 48px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -1.5px;
}

.use-case-muted {
  color: #c8cdd8;
  transition: color 0.5s ease;
}

.use-case-muted.use-case-highlight {
  color: var(--text-primary);
}


/* ========================================================================
   SCIENCE SECTION
   ======================================================================== */
.science-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.science-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  position: relative;
}

.science-step::before {
  content: attr(data-step);
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.science-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 4px;
}

.science-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.science-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================================================
   FAQ
   ======================================================================== */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid #e8ecf2;
}

.faq-question {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  letter-spacing: -0.2px;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  text-align: left;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.35s var(--ease-out-expo), color 0.35s;
  line-height: 1;
}

.faq-question:hover .faq-icon {
  color: var(--text-primary);
}

.faq-item.open .faq-icon,
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.35s var(--ease-out-expo);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

/* ========================================================================
   FINAL CTA
   ======================================================================== */
#final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-start), #e0e8f5);
}

#final-cta .section-subtitle {
  margin: 0 auto 40px;
}

#final-cta .hero-cta-row {
  margin-top: 40px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
footer {
  padding: 48px;
  text-align: center;
  border-top: 1px solid #e8ecf2;
}

footer p {
  font-size: 14px;
  color: var(--text-muted);
}

footer p + p {
  margin-top: 8px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========================================================================
   WHY TENSION MATTERS (Impact Grid)
   ======================================================================== */
.tension-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.impact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.impact-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.impact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(74, 122, 255, 0.2);
}

.impact-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.impact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================================================
   COMPETITIVE CONTEXT (Comparison Grid)
   ======================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.comparison-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  text-align: left;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.comparison-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.comparison-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  text-align: left;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  font-size: 18px;
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-detail {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================================================
   SCIENCE SUMMARY
   ======================================================================== */
.science-summary {
  max-width: 680px;
  margin: 0 auto 40px;
  background: #eef6ff;
  border: 1px solid #d4e5ff;
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: left;
}

.science-summary p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.science-summary strong {
  color: var(--accent);
  font-weight: 700;
}

/* ========================================================================
   CTA TRUST MICRO-TEXT
   ======================================================================== */
.cta-micro-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.cta-micro-text .separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* ========================================================================
   MINI CHART
   ======================================================================== */
.mini-chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 48px;
  margin-top: 12px;
}

.mini-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mini-bar:hover { opacity: 1; }

/* ========================================================================
   SCROLL REVEAL ANIMATIONS
   ======================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.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; }

/* ========================================================================
   BACKGROUND UTILITIES
   ======================================================================== */
.bg-gradient-1 {
  background: linear-gradient(180deg, #f0f4fa 0%, #e6ecf6 50%, #f0f4fa 100%);
}

.bg-gradient-2 {
  background: linear-gradient(180deg, #f0f4fa 0%, #eaf0f8 100%);
}

.bg-accent-subtle {
  background: linear-gradient(180deg, #edf2fe 0%, #f0f4fa 100%);
}

.bg-orb {
  position: relative;
  overflow: hidden;
}

.bg-orb::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 122, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb-left {
  position: relative;
  overflow: hidden;
}

.bg-orb-left::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 122, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }

  .big-feature .section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .big-feature.reverse .section-inner {
    direction: ltr;
  }

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

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

  .product-mockup {
    max-width: 100%;
  }

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

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

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

@media (max-width: 768px) {
  nav {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(240, 244, 250, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(10, 14, 26, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin: 12px 24px;
    width: calc(100% - 48px);
    justify-content: center;
  }

  section {
    padding: 100px 24px;
  }

  /* ── Floating icons: hide on mobile to prevent content overlap ── */
  .float-icon {
    display: none;
  }

  /* ── Hero mobile fixes ── */
  #hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: auto;
  }

  .hero-cycle-wrap {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1.5px;
  }

  .hero-app-preview {
    margin-top: 40px;
    padding: 20px 20px 16px;
  }

  .big-feature {
    padding: 100px 24px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .science-steps {
    grid-template-columns: 1fr;
  }

  .tension-impact-grid {
    grid-template-columns: 1fr;
  }

  .cta-micro-text {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .use-cases-band {
    padding: 80px 24px;
  }

  .use-cases-headline {
    gap: 4px 16px;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .feature-list-grid {
    grid-template-columns: 1fr;
  }

  .settings-mockup {
    width: 100%;
    max-width: 340px;
  }

  .shortcut-mockup {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ── Final CTA mobile fixes ── */
  #final-cta {
    padding: 80px 24px;
  }

  footer {
    padding: 32px 24px;
  }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
