/* ============================================================
   OpticFlow — style.css
   Design system: clean minimal, light bg, dark green CTAs
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg-hero:    #f0f5f2;
  --bg-section: #ffffff;
  --bg-alt:     #f7faf8;
  --bg-footer:  #0d1f14;
  --text:       #0a0f0c;
  --muted:      #6b7280;
  --green:      #1a5c3a;
  --green-hover:#14472d;
  --pill-bg:    #e8f5ee;
  --pill-border:#a8d5bc;
  --card-border:#e5ede8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 860px;
  --r-card: 12px;
  --r-btn:  999px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-section);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Typography ---- */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
p { font-size: 1rem; line-height: 1.7; }
strong { font-weight: 600; color: var(--text); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  text-align: center;
}
.btn-primary:hover { background: var(--green-hover); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text) !important;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  border: 1.5px solid #d1d5db;
  cursor: pointer;
  transition: border-color 0.18s;
  white-space: nowrap;
  text-align: center;
}
.btn-secondary:hover { border-color: var(--text); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}
.lang-toggle button {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.15s;
  border-radius: 4px;
}
.lang-toggle button.active {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-toggle button:hover { color: var(--text); }
.lang-sep { color: #d1d5db; user-select: none; padding: 0 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-hero);
  padding: 92px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 5px 14px;
}
.hero h1 { max-width: 700px; }
.hero .subheadline {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero .subheadline strong { color: var(--text); }
.cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--bg-section);
  padding: 56px 24px;
  border-bottom: 1px solid var(--card-border);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 8px 24px;
}
.stat-number {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 160px;
  margin: 0 auto;
}
.stat-divider {
  width: 1px;
  height: 52px;
  background: var(--card-border);
  flex-shrink: 0;
}

/* ============================================================
   THREE THINGS
   ============================================================ */
.three-things {
  background: var(--bg-section);
  padding: 88px 24px;
  text-align: center;
}
.three-things h2 { margin-bottom: 44px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
  margin-bottom: 36px;
}
.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 28px 24px;
  cursor: default;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--pill-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 9px; }
.card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.reassurance {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   ICP QUALIFIER
   ============================================================ */
.qualifier {
  background: var(--bg-alt);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.qualifier .container { max-width: 660px; }
.qualifier h2 { margin-bottom: 26px; }
.qualifier p  { color: var(--muted); margin-bottom: 14px; }
.qualifier p:last-child { margin-bottom: 0; }
.qualifier strong { color: var(--text); }
.qualifier .geo {
  margin-top: 22px;
  font-size: 0.92rem;
  padding-top: 22px;
  border-top: 1px solid var(--card-border);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--bg-section);
  padding: 88px 24px;
  text-align: center;
}
.final-cta .container {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.final-cta h2 { line-height: 1.25; }
.final-cta .pilot-body { color: var(--muted); max-width: 460px; }
.secondary-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}
.secondary-links a {
  color: var(--green);
  font-weight: 500;
  transition: opacity 0.18s;
}
.secondary-links a:hover { opacity: 0.72; }
.secondary-links .sep { color: #d1d5db; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-footer);
  color: #d1fae5;
  padding: 38px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left  { display: flex; flex-direction: column; gap: 5px; }
.footer-logo  { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.footer-logo-mark {
  width: 27px; height: 27px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(209,250,229,0.5);
  padding-left: 37px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
}
.footer-right a { color: rgba(209,250,229,0.65); transition: color 0.18s; }
.footer-right a:hover { color: #fff; }
.footer-right .copyright { color: rgba(209,250,229,0.3); }

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 13px 18px; }
  .nav-right { gap: 12px; }
  .nav-right .btn-primary { font-size: 0.82rem; padding: 10px 16px; }

  .hero  { padding: 60px 18px 52px; }
  .cta-group { flex-direction: column; width: 100%; }
  .cta-group .btn-primary,
  .cta-group .btn-secondary { width: 100%; }

  .stats { padding: 40px 18px; }
  .stats-grid { flex-direction: column; gap: 0; }
  .stat { padding: 20px 18px; }
  .stat-label { max-width: 220px; }
  .stat-divider { width: 52px; height: 1px; }

  .three-things { padding: 64px 18px; }
  .cards { grid-template-columns: 1fr; }

  .qualifier  { padding: 60px 18px; }
  .final-cta  { padding: 64px 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-right { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 420px) {
  .lang-toggle { display: none; }
}
