/* ═══ OCULOSENSE — SHARED DESIGN SYSTEM ══════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy:      #F8F7F4;
  --surface:   #FFFFFF;
  --surface2:  #F1EFE9;
  --blue:      #2563EB;
  --blue-dim:  rgba(37,99,235,0.09);
  --blue-glow: rgba(37,99,235,0.2);
  --blue-dark: #DBEAFE;
  --text:      #111218;
  --muted:     #6B7280;
  --border:    #E5E2D9;
  --r:         12px;
  --r-lg:      20px;
  --r-xl:      28px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.dot-bg { position: relative; }
.dot-bg::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(37,99,235,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}
.dot-bg > * { position: relative; z-index: 1; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1 { font-size: clamp(2.8rem,7vw,5.5rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem,4vw,3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p  { line-height: 1.72; color: var(--muted); }

.gradient-text {
  background: linear-gradient(140deg, #111218 0%, #2563EB 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-dim); border: 1px solid rgba(59,130,246,0.28);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  padding: 13px 28px; border-radius: 100px; border: none;
  cursor: pointer; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 0 28px rgba(59,130,246,0.28); }
.btn-blue:hover { background: #2563EB; box-shadow: 0 0 48px rgba(59,130,246,0.42); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: rgba(0,0,0,0.05); color: var(--text); }
.btn-ghost:hover { background: rgba(0,0,0,0.1); }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ─── NAV ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.solid {
  background: rgba(248,247,244,0.96);
  border-color: var(--border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.025em; display: flex; align-items: center; gap: 10px;
}
.nav-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 12px var(--blue);
}
.nav-logo span { font-weight: 400; opacity: 0.65; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(0,0,0,0.06); }
.nav-links a.active { color: var(--blue); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.98); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 8px;
  padding-top: 22px; margin-top: 0;
  display: none; flex-direction: column; gap: 2px; min-width: 160px;
  backdrop-filter: blur(30px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.1);
}
/* bridge the gap so hover doesn't break mid-travel */
.nav-dropdown-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px;
}
.nav-dropdown:hover .nav-dropdown-panel { display: flex; }
.dd-item {
  display: block; padding: 9px 14px; border-radius: var(--r);
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.dd-item:hover { background: rgba(37,99,235,0.07); color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px;
  background: var(--navy); z-index: 999; padding: 24px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.05rem; font-weight: 600; padding: 16px 12px;
  border-bottom: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .mm-cta { margin-top: 20px; text-align: center; border-bottom: none !important; border-radius: 100px !important; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px; background: var(--navy);
}
.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 52px;
}
.footer-brand p { font-size: 0.85rem; margin: 10px 0 20px; max-width: 260px; color: var(--muted); }
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted);
}
.footer-col h5 {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* ─── GLASS CARD ─────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: rgba(59,130,246,0.38);
  box-shadow: 0 0 48px rgba(59,130,246,0.1);
}

/* ─── PLACEHOLDER VISUAL ─────────────────────────────────── */
.ph {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.ph-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 24px,
    rgba(59,130,246,0.03) 24px, rgba(59,130,246,0.03) 25px
  );
}
.ph-icon {
  font-size: 2.2rem; position: relative; z-index: 1;
  width: 64px; height: 64px;
  background: var(--blue-dim); border: 1px solid rgba(59,130,246,0.28);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ph-label {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em;
  position: relative; z-index: 1; font-weight: 500;
  font-family: 'Inter', monospace;
}

/* ─── FEATURE PILL ───────────────────────────────────────── */
.fp {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color 0.2s;
}
.fp:hover { border-color: rgba(59,130,246,0.3); }
.fp-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.fp strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.fp span { font-size: 0.8rem; color: var(--muted); }

/* ─── STATS ROW ──────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.stat-card { background: var(--surface); padding: 36px 24px; text-align: center; transition: background 0.2s; }
.stat-card:hover { background: rgba(37,99,235,0.06); }
.stat-val { font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: var(--blue); letter-spacing: -0.03em; display: block; line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ─── USECASE ROW ────────────────────────────────────────── */
.uc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.uc-row:first-child { padding-top: 0; }
.uc-row:last-child { border-bottom: none; padding-bottom: 0; }
.uc-row.flip { direction: rtl; }
.uc-row.flip > * { direction: ltr; }
.uc-text .badge { margin-bottom: 14px; }
.uc-text h3 { margin-bottom: 14px; }
.uc-text p { font-size: 0.95rem; margin-bottom: 20px; }
.uc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  background: var(--blue-dim); border: 1px solid rgba(59,130,246,0.2); color: var(--blue);
}
.uc-num {
  font-size: 6rem; font-weight: 900; color: rgba(59,130,246,0.07);
  position: absolute; bottom: 8px; right: 16px;
  line-height: 1; font-variant-numeric: tabular-nums;
}

/* ─── COMPARE TABLE ──────────────────────────────────────── */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; font-size: 0.9rem;
}
table.compare th, table.compare td { padding: 16px 22px; text-align: left; }
table.compare thead th {
  background: var(--surface); font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
table.compare thead th.hl { color: var(--blue); }
table.compare tbody tr { border-bottom: 1px solid var(--border); }
table.compare tbody tr:last-child { border-bottom: none; }
table.compare tbody tr:hover td { background: rgba(37,99,235,0.05); }
table.compare td:first-child { color: var(--muted); }
table.compare td.hl { color: var(--blue); font-weight: 700; }
.chk { color: var(--blue); font-weight: 700; }
.cx  { color: #4B5563; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none;
  padding: 22px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; cursor: pointer; text-align: left;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--text); transition: color 0.2s;
}
.faq-btn:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted); transition: all 0.25s;
}
.faq-item.open .faq-icon { border-color: var(--blue); color: var(--blue); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-body { max-height: 280px; padding-bottom: 22px; }
.faq-body p { font-size: 0.9rem; line-height: 1.75; }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(37,99,235,0.08), transparent 60%);
}
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { max-width: 600px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 14px 0;
  background: rgba(241,239,233,0.8);
}
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 28px;
  white-space: nowrap; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.ticker-sep { color: var(--blue); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
/* Only hide elements when JS is confirmed ready — prevents blank flash */
body.js-ready .reveal { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in  { opacity: 1 !important; transform: translateY(0) !important; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .uc-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .uc-row.flip { direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
}
