*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #0A0F1E;
  --bg2:       #0D1526;
  --bg3:       #101B30;
  --blue:      #378ADD;
  --blue-l:    #5BA3F5;
  --blue-d:    #2470C2;
  --blue-glow: rgba(55,138,221,0.18);
  --text:      #F0F4FF;
  --text2:     #8899BB;
  --text3:     #7585A5; /* WCAG AA contrast on #0A0F1E for normal text */
  --border:    rgba(55,138,221,0.12);
  --border-h:  rgba(55,138,221,0.28);
  --grd:       linear-gradient(135deg, #378ADD 0%, #5BA3F5 100%);
  --radius:    14px;
  --radius-lg: 22px;
  --font-h:    'Space Grotesk', sans-serif;
  --font-b:    'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }

/* Keyboard-only focus indicator (won't affect mouse clicks) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-l);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, border-top-color 0.3s;
  padding: 0 24px; border-top: 2px solid transparent;
}
#nav.scrolled {
  background: rgba(10,15,30,0.94); backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border); border-top-color: var(--blue);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 32px; height: 68px; }
.nav-logo { font-family: var(--font-h); font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; flex-shrink: 0; }
.nav-logo .v { background: var(--grd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: auto; }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 8px; flex-shrink: 0; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text2);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(55,138,221,0.08); }

/* Products dropdown — uses native <details> for accessibility */
.nav-links li.nav-has-dropdown { position: relative; }
.nav-dropdown { display: inline-block; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--text2);
  padding: 8px 14px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s, background 0.2s;
  -webkit-user-select: none; user-select: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::marker { content: ''; }
.nav-dropdown summary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s;
  opacity: 0.7;
}
.nav-dropdown[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.nav-dropdown summary:hover { color: #fff; background: rgba(55,138,221,0.08); }
.nav-dropdown[open] summary { color: #fff; background: rgba(55,138,221,0.10); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 240px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  list-style: none;
  z-index: 1000;
  animation: navDropIn 0.18s ease-out;
}
@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(55,138,221,0.10);
  color: #fff;
}
.nav-dropdown-menu .nav-dd-eyebrow {
  display: block;
  padding: 8px 14px 4px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--blue-l);
}
.nav-dropdown-menu hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 6px 0;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-b); font-size: 14px; font-weight: 700; color: #fff;
  background: var(--grd); border: none; padding: 11px 20px; border-radius: 100px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(55,138,221,0.28);
  transition: transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(55,138,221,0.42); }

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ── Mobile Drawer ── */
.mobile-drawer {
  display: flex; position: fixed; top: 0; right: -300px; bottom: 0;
  width: 280px; background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 999; flex-direction: column; padding: 24px;
  transition: right 0.3s ease;
}
.mobile-drawer.open { right: 0; }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998; backdrop-filter: blur(4px); }
.drawer-overlay.visible { display: block; }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--text2); font-size: 24px; cursor: pointer; margin-bottom: 24px; }
.drawer-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.drawer-links a { display: block; font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; padding: 12px 16px; border-radius: 8px; transition: background 0.2s; }
.drawer-links a:hover { background: rgba(55,138,221,0.08); }
.drawer-cta { display: block; margin-top: auto; text-align: center; background: var(--grd); color: #fff; padding: 14px; border-radius: 100px; font-weight: 700; font-size: 15px; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(44px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
h3 { font-size: 20px; }
p { color: var(--text2); }
p strong { color: var(--text); }

/* ── Eyebrow ── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-h); font-size: 13px; font-weight: 500;
  color: var(--blue-l); margin-bottom: 14px;
}
.section-eyebrow::before { content: '·'; color: var(--blue); font-size: 20px; line-height: 0.8; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-b); font-size: 15.5px; font-weight: 700; color: #fff;
  background: var(--grd); border: none; padding: 16px 32px; border-radius: 100px;
  cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  box-shadow: 0 8px 28px rgba(55,138,221,0.28);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(55,138,221,0.44); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-b); font-size: 15px; font-weight: 600;
  color: var(--text2); text-decoration: none;
  transition: color 0.2s;
}
.btn-ghost:hover { color: #fff; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Center CTA ── */
.center-cta { text-align: center; }

/* ── Footer ── */
#footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand .footer-logo { font-family: var(--font-h); font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; display: block; margin-bottom: 14px; }
.footer-brand .footer-logo .v { background: var(--grd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { font-size: 14px; color: var(--text3); line-height: 1.65; margin-bottom: 16px; max-width: 320px; }
.footer-brand a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text2); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-brand a:hover { color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text3);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-bottom .legal a:hover { color: var(--text); }

/* ── Vibe coding footer tagline ── */
.footer-vibe-tag {
  font-family: var(--font-h);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--text2);
  text-align: center;
  margin: 24px auto 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  max-width: 480px;
}
.footer-vibe-tag .accent {
  background: var(--grd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 600;
}

/* ── Mobile Bottom Bar ── */
#mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(10,15,30,0.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); padding: 12px 16px; gap: 10px;
}
#mobile-bar a { flex: 1; display: block; text-align: center; padding: 13px; border-radius: 100px; font-weight: 700; font-size: 14px; text-decoration: none; }
#mobile-bar a.ghost { background: rgba(55,138,221,0.08); color: var(--text); border: 1px solid var(--border-h); }
#mobile-bar a.primary { background: var(--grd); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  section { padding: 72px 0; }
}

/* Mobile drawer — products group */
.drawer-products {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: rgba(55,138,221,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.drawer-products-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--blue-l);
  padding: 2px 4px 8px;
}
.drawer-products ul { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; }
.drawer-products a {
  display: block; padding: 9px 8px; border-radius: 6px;
  font-size: 14.5px; color: var(--text2); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.drawer-products a:hover { background: rgba(55,138,221,0.08); color: #fff; }
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
