/*
 * SmartHear Website Styling — V2 (All Improvements)
 * Premium dark-mode design system with scroll reveals, stats, testimonials,
 * mobile hamburger, step indicators, scroll progress bar, and accessibility.
 */

:root {
  --h-navy: 215; --s-navy: 45%; --l-navy: 8%;
  --bg-base: hsl(var(--h-navy), var(--s-navy), var(--l-navy));
  --bg-surface: hsl(var(--h-navy), var(--s-navy), calc(var(--l-navy) + 4%));
  --bg-surface-mid: hsl(var(--h-navy), var(--s-navy), calc(var(--l-navy) + 8%));
  --bg-surface-deep: hsl(var(--h-navy), var(--s-navy), calc(var(--l-navy) - 2%));
  --h-teal: 188; --s-teal: 72%; --l-teal: 48%;
  --teal: hsl(var(--h-teal), var(--s-teal), var(--l-teal));
  --teal-lt: hsl(var(--h-teal), var(--s-teal), calc(var(--l-teal) + 12%));
  --teal-dk: hsl(var(--h-teal), var(--s-teal), calc(var(--l-teal) - 12%));
  --teal-deep: hsl(var(--h-teal), 45%, 16%);
  --text-primary: #E2E8F0; --text-secondary: #CBD5E1;
  --text-muted: #94A3B8; --text-inverse: #0B111B;
  --glass-bg: rgba(14, 23, 38, 0.75);
  --glass-border: rgba(34, 178, 200, 0.12);
  --glass-border-hover: rgba(34, 178, 200, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --weight-light: 300; --weight-regular: 400;
  --weight-medium: 500; --weight-semibold: 600;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px; --container-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-base); }
body {
  background: var(--bg-base); color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.625; -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-surface-deep); }
::-webkit-scrollbar-thumb { background: hsl(var(--h-teal),30%,25%); border-radius: 5px; border: 2px solid var(--bg-surface-deep); }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--h-teal),45%,35%); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-lt); outline-offset: 4px;
}
h1,h2,h3,h4 { font-weight: var(--weight-semibold); letter-spacing: -0.015em; line-height: 1.2; color: var(--text-primary); }
strong { font-weight: var(--weight-semibold); color: #E2E8F0; }

/* ── SCROLL PROGRESS BAR ────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1100;
  width: 0; background: linear-gradient(90deg, var(--teal-dk), var(--teal-lt));
  transition: width 0.08s linear;
}

/* ── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ── HEADER & NAV ───────────────────────────────────────────── */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--glass-bg); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}
.main-header.scrolled { background: rgba(8,14,24,0.92); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.nav-container {
  max-width: var(--container-width); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark { width: 44px; height: 24px; display: flex; align-items: center; }
.nav-logo-mark svg { width: 100%; height: 100%; }
.nav-wordmark { font-size: 1.05rem; font-weight: var(--weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.875rem; font-weight: var(--weight-medium); color: var(--text-secondary);
  text-decoration: none; transition: var(--transition-fast); position: relative; padding: 6px 0;
}
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--teal); transition: var(--transition-fast); }
.nav-link:hover { color: var(--teal-lt); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--teal-deep); color: var(--teal-lt); border: 1px solid var(--glass-border);
  font-size: 0.825rem; font-weight: var(--weight-medium); padding: 8px 18px;
  border-radius: var(--border-radius); text-decoration: none; transition: var(--transition-fast);
}
.nav-cta:hover { background: var(--teal); color: var(--text-inverse); box-shadow: 0 0 16px rgba(34,178,200,0.35); border-color: var(--teal); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 1001;
  flex-direction: column; justify-content: space-between; padding: 0;
}
.hamburger-line {
  display: block; width: 100%; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition-fast); transform-origin: center;
}
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: flex-start; position: relative;
  overflow: hidden; padding: 140px 24px 240px;
}
.hero-bg-glows { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.15; mix-blend-mode: screen; }
.orb-primary { width: 450px; height: 450px; background: var(--teal); top: -100px; right: -50px; animation: float-orb 12s infinite alternate ease-in-out; }
.orb-secondary { width: 350px; height: 350px; background: var(--teal-dk); bottom: -50px; left: -50px; animation: float-orb 16s infinite alternate-reverse ease-in-out; }
@keyframes float-orb { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px,-30px) scale(1.1); } }

.hero-waveform-container {
  position: absolute; width: 100%; bottom: 0; left: 0; z-index: 2; opacity: 0.4;
  pointer-events: none; mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
}
#eeg-waveform { width: 100%; height: auto; max-height: 280px; display: block; }
.eeg-dot { opacity: 0.7; filter: drop-shadow(0 0 6px var(--teal)); }

.hero-split {
  max-width: var(--container-width); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 3;
}
.hero-content { max-width: 620px; }
.hero-eyebrow {
  font-size: 0.8rem; font-weight: var(--weight-medium); letter-spacing: 0.18em;
  color: var(--teal-lt); text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--teal-lt); }
.hero-headline { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: var(--weight-semibold); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, var(--teal-lt) 20%, var(--teal-dk) 90%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subline { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: var(--weight-light); color: var(--text-secondary); margin-bottom: 40px; }

.hero-visual { display: flex; justify-content: center; align-items: flex-start; }
.hero-product-img {
  width: 100%; max-width: 460px; height: auto; object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(34,178,200,0.18));
  animation: float-product 6s ease-in-out infinite alternate;
  border-radius: 24px;
  mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 100%);
}
@keyframes float-product { 0% { transform: translateY(0); } 100% { transform: translateY(-14px); } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px; background: var(--teal);
  color: var(--text-inverse); font-size: 0.95rem; font-weight: var(--weight-semibold);
  padding: 14px 28px; border-radius: var(--border-radius); text-decoration: none;
  transition: var(--transition-smooth); box-shadow: 0 4px 16px rgba(34,178,200,0.2);
}
.btn-primary:hover { background: var(--teal-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,178,200,0.45); }
.btn-primary:active { transform: translateY(0); }
.icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn-primary:hover .icon { transform: translateX(4px); }

/* ── PROBLEM ────────────────────────────────────────────────── */
.problem-section { padding: 100px 24px; border-bottom: 1px solid var(--glass-border); }
.section-container { max-width: var(--container-width); margin: 0 auto; }
.problem-headline { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; margin-bottom: 48px; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.problem-text { display: flex; flex-direction: column; gap: 24px; }
.problem-para { font-size: 1.08rem; color: var(--text-secondary); line-height: 1.7; }
.problem-highlight-card {
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  padding: 36px; border-radius: var(--border-radius); display: flex;
  flex-direction: column; gap: 16px; position: relative; overflow: hidden;
}
.problem-highlight-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--teal); }
.problem-pivot { font-size: 1.5rem; font-weight: var(--weight-semibold); color: var(--teal-lt); }
.problem-para-sub { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6; }

/* ── INSIGHT ────────────────────────────────────────────────── */
.insight-section { padding: 140px 24px; text-align: center; }
.insight-container { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.insight-line { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: var(--weight-semibold); line-height: 1.15; letter-spacing: -0.02em; }
.insight-line.text-muted { color: var(--text-muted); opacity: 0.6; }
.insight-line.text-bright { color: var(--text-primary); text-shadow: 0 0 40px rgba(255,255,255,0.08); }
.insight-rule { width: 140px; height: 2px; background: linear-gradient(to right, transparent, var(--teal), transparent); margin: 32px 0; }
.insight-owned { font-size: 1.25rem; font-weight: var(--weight-regular); color: var(--teal-lt); margin-top: 36px; line-height: 1.6; }

/* ── SOLUTION ───────────────────────────────────────────────── */
.solution-section {
  padding: 100px 24px; background: var(--bg-surface-deep);
  border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
}
.solution-header { max-width: 720px; margin-bottom: 64px; }
.solution-headline { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 20px; }
.solution-sub { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.65; }

.solution-grid {
  display: flex; align-items: stretch; gap: 0;
}
.solution-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--border-radius); padding: 44px 32px;
  display: flex; flex-direction: column; flex: 1;
  transition: var(--transition-smooth); position: relative; overflow: hidden;
}
.solution-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: var(--transition-smooth);
}
.solution-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); box-shadow: 0 12px 40px rgba(34,178,200,0.08); }
.solution-card:hover::before { opacity: 1; }
.solution-card:hover .solution-icon path,
.solution-card:hover .solution-icon polyline,
.solution-card:hover .solution-icon circle { filter: drop-shadow(0 0 4px var(--teal)); }

.step-badge {
  font-size: 0.7rem; font-weight: var(--weight-semibold); color: var(--teal);
  letter-spacing: 0.08em; background: var(--teal-deep); border: 1px solid var(--glass-border);
  border-radius: 4px; padding: 4px 10px; width: fit-content; margin-bottom: 20px;
}
.step-connector {
  display: flex; align-items: center; justify-content: center;
  width: 48px; flex-shrink: 0;
}
.step-connector svg { width: 36px; height: auto; }

.solution-icon-wrapper { width: 52px; height: 52px; margin-bottom: 28px; }
.solution-icon { width: 100%; height: 100%; overflow: visible; }
.solution-label { font-size: 1.15rem; font-weight: var(--weight-medium); color: var(--text-primary); margin-bottom: 14px; }
.solution-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ── STATS STRIP ────────────────────────────────────────────── */
.stats-section {
  padding: 72px 24px; background: var(--bg-surface);
  border-bottom: 1px solid var(--glass-border);
}
.stats-grid {
  display: flex; justify-content: center; align-items: center; gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 48px; text-align: center;
}
.stat-number-row { display: flex; align-items: baseline; justify-content: center; }
.stat-value {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--weight-semibold);
  color: var(--teal-lt); letter-spacing: -0.02em; display: inline;
}
.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: var(--weight-semibold);
  color: var(--teal-lt); letter-spacing: -0.02em;
}
.stat-label { font-size: 0.8rem; font-weight: var(--weight-medium); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-divider { width: 1px; height: 48px; background: var(--glass-border); }

/* ── TESTIMONIAL ────────────────────────────────────────────── */
.testimonial-section { padding: 100px 24px; }
.testimonial-card {
  max-width: 820px; margin: 0 auto; background: var(--bg-surface);
  border: 1px solid var(--glass-border); border-radius: var(--border-radius);
  padding: 48px; position: relative; overflow: hidden;
}
.quote-icon { position: absolute; top: 24px; left: 32px; width: 48px; height: auto; }
.testimonial-quote {
  font-size: 1.2rem; font-weight: var(--weight-regular); color: var(--text-primary);
  line-height: 1.7; font-style: italic; margin-bottom: 32px; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal-deep);
  border: 1px solid var(--glass-border); display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; font-weight: var(--weight-semibold);
  color: var(--teal-lt); letter-spacing: 0.05em;
}
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 0.95rem; font-weight: var(--weight-medium); color: var(--text-primary); }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── PROOF & CTA ────────────────────────────────────────────── */
.proof-section { padding: 100px 24px; }
.proof-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.proof-info { display: flex; flex-direction: column; }
.proof-headline { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 40px; line-height: 1.25; }
.proof-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.proof-item { display: flex; align-items: flex-start; gap: 16px; font-size: 1.05rem; color: var(--text-secondary); }
.proof-icon-container { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.check-icon { width: 20px; height: 20px; }
.proof-logos { display: flex; flex-wrap: wrap; gap: 16px; padding: 24px 0; border-top: 1px solid var(--glass-border); }
.logo-badge {
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: var(--border-radius); padding: 10px 24px; font-size: 0.8rem;
  font-weight: var(--weight-semibold); letter-spacing: 0.1em; color: var(--text-secondary);
  text-transform: uppercase;
}

/* SIGNUP CARD */
.signup-container { position: sticky; top: 80px; }
.signup-card {
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: var(--border-radius); padding: 40px; box-shadow: var(--glass-shadow);
  position: relative;
}
.signup-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(34,178,200,0.15), transparent 40%, transparent 60%, rgba(34,178,200,0.15));
  pointer-events: none; z-index: 1;
}
.signup-title { font-size: 1.35rem; margin-bottom: 8px; font-weight: var(--weight-semibold); }
.signup-subtitle { font-size: 0.925rem; color: var(--text-muted); margin-bottom: 32px; }
.signup-form { position: relative; z-index: 2; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.775rem; font-weight: var(--weight-medium); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.optional-tag { color: var(--text-muted); font-weight: var(--weight-regular); text-transform: none; letter-spacing: 0; }
.form-input, .form-select {
  background: var(--bg-surface-deep); border: 1px solid var(--glass-border);
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
  padding: 12px 16px; border-radius: var(--border-radius); transition: var(--transition-fast); width: 100%;
}
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-input:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 12px rgba(34,178,200,0.2); outline: none; }
.form-input::placeholder { color: #4B5E78; }
.error-msg { font-size: 0.775rem; color: #EF4444; margin-top: 2px; display: none; }
.form-input.is-invalid, .form-select.is-invalid { border-color: #EF4444; }
.form-input.is-invalid:focus { box-shadow: 0 0 12px rgba(239,68,68,0.2); }

/* Checkbox */
.form-group-checkbox { margin-top: 4px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
  width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid var(--glass-border);
  border-radius: 4px; background: var(--bg-surface-deep); transition: var(--transition-fast);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--teal); border-color: var(--teal);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓'; color: var(--text-inverse); font-size: 0.7rem; font-weight: 600;
}
.checkbox-text { flex: 1; }

/* Submit Button + Loading */
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--teal); color: var(--text-inverse); border: none;
  font-family: inherit; font-size: 0.95rem; font-weight: var(--weight-semibold);
  padding: 14px; border-radius: var(--border-radius); cursor: pointer;
  transition: var(--transition-smooth); position: relative;
}
.btn-submit:hover { background: var(--teal-lt); box-shadow: 0 6px 20px rgba(34,178,200,0.4); }
.icon-submit { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn-submit:hover .icon-submit { transform: translateX(4px); }
.spinner {
  display: none; width: 18px; height: 18px; border: 2px solid rgba(11,17,27,0.3);
  border-top-color: var(--text-inverse); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .btn-text, .btn-submit.loading .icon-arrow { display: none; }
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading { pointer-events: none; opacity: 0.8; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--bg-surface-deep); border-top: 1px solid var(--glass-border); padding: 56px 24px 32px; }
.footer-container {
  max-width: var(--container-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-size: 0.95rem; font-weight: var(--weight-semibold); color: var(--text-primary); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-tagline { font-size: 0.85rem; color: var(--teal); font-weight: var(--weight-medium); }
.footer-address { font-size: 0.8rem; color: var(--text-muted); }
.footer-heading { font-size: 0.75rem; font-weight: var(--weight-semibold); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.footer-link { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: var(--transition-fast); }
.footer-link:hover { color: var(--teal-lt); }
.social-links { display: flex; gap: 12px; }
.social-link { color: var(--text-muted); transition: var(--transition-fast); display: flex; align-items: center; }
.social-link:hover { color: var(--teal-lt); }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid var(--glass-border);
  padding-top: 24px; margin-top: 16px;
}
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ── DIALOG MODAL ───────────────────────────────────────────── */
.dialog-modal {
  border: 1px solid var(--glass-border); border-radius: var(--border-radius);
  background: var(--bg-surface); color: var(--text-primary); max-width: 480px;
  width: 90%; margin: auto; padding: 40px; box-shadow: var(--glass-shadow);
  position: fixed; inset: 0; z-index: 10000; display: none;
  flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dialog-modal[open] { display: flex; opacity: 1; transform: scale(1); }
.dialog-modal::backdrop { background: rgba(5,8,14,0.85); backdrop-filter: blur(8px); }
.modal-icon-wrapper { width: 64px; height: 64px; margin-bottom: 24px; }
.modal-success-svg { width: 100%; height: 100%; }
.modal-title { font-size: 1.4rem; margin-bottom: 12px; }
.modal-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px; }
.email-highlight { color: var(--teal-lt); }
.btn-close-modal {
  background: var(--teal-deep); color: var(--teal-lt); border: 1px solid var(--glass-border);
  padding: 10px 28px; border-radius: var(--border-radius); font-family: inherit;
  font-size: 0.9rem; font-weight: var(--weight-medium); cursor: pointer; transition: var(--transition-fast);
}
.btn-close-modal:hover { background: var(--teal); color: var(--text-inverse); border-color: var(--teal); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-product-img { max-width: 360px; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .solution-grid { flex-direction: column; gap: 20px; }
  .step-connector { transform: rotate(90deg); width: auto; height: 32px; }
  .proof-grid { grid-template-columns: 1fr; gap: 48px; }
  .signup-container { position: static; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { padding: 16px 32px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-surface); flex-direction: column; padding: 80px 32px 32px;
    gap: 24px; transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 1px solid var(--glass-border); z-index: 999;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .hero { padding-top: 100px; min-height: auto; }
  .hero-headline { font-size: 2rem; }
  .hero-product-img { max-width: 280px; }
  .stats-grid { flex-direction: column; }
  .stat-divider { width: 48px; height: 1px; }
  .footer-container { grid-template-columns: 1fr; }
  .testimonial-card { padding: 32px 24px; }
}

/* ── prefers-reduced-motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb-primary, .orb-secondary { animation: none; }
  .hero-product-img { animation: none; }
  .eeg-dot { animation: none; }
  .scroll-progress { transition: none; }
  .spinner { animation-duration: 1.2s; }
}
