:root {
  --bg: #06070f;
  --panel: #0d1120;
  --panel-2: #121a2e;
  --border: #1e2942;
  --text: #e9edf7;
  --muted: #8f9cb8;
  --neon: #22d3ee;      /* cyan */
  --neon-2: #a855f7;    /* violet */
  --neon-3: #34e0a1;    /* green */
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
svg { display: block; }

/* ---------- animated neon background ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 70% -10%, #0c1430 0%, transparent 60%), var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  animation: drift 24s ease-in-out infinite;
}
.b1 { width: 480px; height: 480px; background: var(--neon); top: -120px; left: -80px; }
.b2 { width: 520px; height: 520px; background: var(--neon-2); top: 22%; right: -140px; animation-delay: -8s; }
.b3 { width: 420px; height: 420px; background: var(--neon-3); bottom: -160px; left: 28%; animation-delay: -15s; opacity: 0.3; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(44px, 30px) scale(1.09); }
  66% { transform: translate(-32px, 22px) scale(0.95); }
}
/* faint neon grid */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(18px, 5vw, 56px);
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.brand-logo { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.55)); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:not(.btn):hover { color: var(--neon); text-shadow: 0 0 10px rgba(34, 211, 238, 0.7); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 9px; padding: 6px; cursor: pointer; line-height: 0;
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, opacity 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #05070f;
  box-shadow: 0 0 18px -2px rgba(34, 211, 238, 0.55), 0 0 34px -6px rgba(168, 85, 247, 0.4);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 26px 0 rgba(34, 211, 238, 0.75), 0 0 50px -4px rgba(168, 85, 247, 0.6); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 16px -4px rgba(34, 211, 238, 0.6); }
.btn.disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }
.neon-btn { position: relative; }

/* ---------- neon text ---------- */
.neon-text {
  text-shadow:
    0 0 8px rgba(34, 211, 238, 0.55),
    0 0 22px rgba(34, 211, 238, 0.35),
    0 0 40px rgba(168, 85, 247, 0.25);
}

/* ---------- hero ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: clamp(46px, 9vw, 104px) 0 66px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #9fe9f5; font-size: 13px; margin-bottom: 20px;
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.5) inset;
}
.pill svg { color: var(--neon); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
.grad {
  display: block;
  background: linear-gradient(110deg, var(--neon), var(--neon-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); margin: 20px 0 28px; max-width: 570px; }
.lead strong { color: var(--text); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; margin-top: 26px; }
.trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.trust i { color: var(--neon); opacity: 0.6; }

/* hero art */
.hero-art { display: flex; justify-content: center; }
.window-card {
  width: 100%; max-width: 390px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 30px 70px -24px rgba(34, 211, 238, 0.35), 0 20px 50px -20px rgba(168, 85, 247, 0.3);
}
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.wc-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.wc-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3855; }
.wc-bar i:first-child { background: #ff5f57; }
.wc-bar i:nth-child(2) { background: #febc2e; }
.wc-bar i:nth-child(3) { background: #28c840; }
.wc-url { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.wc-body { padding: 18px; }
.wc-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: var(--neon-3); box-shadow: 0 0 10px 1px rgba(52, 224, 161, 0.9); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 224, 161, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(52, 224, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 224, 161, 0); } }
.wc-map {
  position: relative; height: 120px; border-radius: 10px; margin-bottom: 16px;
  background:
    radial-gradient(circle at 60% 45%, rgba(34, 211, 238, 0.28), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(34, 211, 238, 0.05) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(34, 211, 238, 0.05) 18px 19px),
    var(--panel-2);
  border: 1px solid var(--border);
}
.ping { position: absolute; top: 45%; left: 60%; width: 12px; height: 12px; background: var(--neon-3); border-radius: 50%; box-shadow: 0 0 12px 2px rgba(52, 224, 161, 0.9); }
.ping::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--neon-3); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.wc-line { height: 9px; border-radius: 5px; background: var(--panel-2); margin-bottom: 9px; }
.wc-line.w80 { width: 80%; } .wc-line.w60 { width: 60%; } .wc-line.w40 { width: 40%; }

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section.alt {
  margin: 0 calc(50% - 50vw);
  padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%);
  background: rgba(13, 17, 32, 0.55);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section h2 { font-size: clamp(26px, 3.5vw, 40px); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 620px; }

/* ---------- use case ---------- */
.usecase { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.uc-side {
  padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
}
.uc-problem { box-shadow: 0 0 0 1px rgba(255, 95, 87, 0.14), 0 0 40px -18px rgba(255, 95, 87, 0.5); }
.uc-solution { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16), 0 0 40px -16px rgba(34, 211, 238, 0.55); }
.uc-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.uc-tag.problem { color: #ff8a84; background: rgba(255, 95, 87, 0.12); border: 1px solid rgba(255, 95, 87, 0.35); }
.uc-tag.solution { color: #9fe9f5; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.4); }
.uc-side h2 { text-align: left; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 10px; }
.uc-side p { color: var(--muted); font-size: 15px; }
.uc-side strong { color: var(--text); }
.uc-arrow { display: flex; align-items: center; color: var(--neon); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.7)); }

/* cards — 3 across on desktop, compact */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 34px -12px rgba(34, 211, 238, 0.6); }
.card .ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 11px; margin-bottom: 12px; color: var(--neon); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.6) inset; }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 13.5px; }

/* steps — 4 across on desktop, compact */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.step { position: relative; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow 0.25s, border-color 0.2s; }
.step:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 0 34px -14px rgba(168, 85, 247, 0.6); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; font-weight: 800; margin-bottom: 12px; font-size: 14px;
  background: linear-gradient(135deg, var(--neon), var(--neon-2)); color: #05070f;
  box-shadow: 0 0 16px -3px rgba(34, 211, 238, 0.7);
}
.step h3 { font-size: 15px; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 13px; }

/* downloads — compact, 2 across */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 38px; max-width: 620px; margin-left: auto; margin-right: auto; }
.dl-card { text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s; }
.dl-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 36px -14px rgba(34, 211, 238, 0.6); }
.dl-ico { display: inline-flex; color: var(--neon); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)); margin-bottom: 8px; }
.dl-ico svg { width: 34px; height: 34px; }
.dl-card h3 { font-size: 17px; }
.dl-meta { color: var(--muted); font-size: 12.5px; margin: 6px 0 14px; min-height: 18px; }
.dl-btn { width: 100%; }
.dl-note { text-align: center; margin-top: 22px; font-size: 12.5px; }
.muted { color: var(--muted); }
.skeleton .dl-meta { opacity: 0.6; }

/* footer */
.foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px clamp(18px, 5vw, 56px); }
.foot-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--muted); } .foot-links a:hover { color: var(--neon); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* tablet: cards/steps go 2-across, use case stacks */
@media (max-width: 900px) {
  .usecase { grid-template-columns: 1fr; }
  .uc-arrow { transform: rotate(90deg); justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---- tablet / mobile nav + layout ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: -1; }
  .hero-art .window-card { max-width: 340px; }

  /* hamburger menu */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 14px clamp(18px, 5vw, 56px) 20px;
    background: rgba(6, 7, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { width: 100%; margin-top: 6px; }
}

/* mobile: keep 2 columns but tighten spacing + type so cards stay compact */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section.alt { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding: 36px 0 44px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .trust { justify-content: center; text-align: center; }
  .uc-side { padding: 20px; }
  .foot-inner { flex-direction: column; text-align: center; }
  .foot-links { justify-content: center; flex-wrap: wrap; }

  /* 2-up compact grids on phones */
  .cards, .steps, .downloads { gap: 12px; margin-top: 28px; }
  .card { padding: 16px; }
  .card .ico { width: 34px; height: 34px; margin-bottom: 10px; }
  .card .ico svg { width: 17px; height: 17px; }
  .card h3 { font-size: 14px; }
  .card p { font-size: 12px; }
  .step { padding: 16px; }
  .step .num { width: 28px; height: 28px; font-size: 13px; margin-bottom: 10px; }
  .step h3 { font-size: 13.5px; }
  .step p { font-size: 12px; }
  .dl-card { padding: 18px 12px; }
  .dl-ico svg { width: 30px; height: 30px; }
  .dl-card h3 { font-size: 15px; }
  .dl-btn { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 28px; }
  .brand { font-size: 16px; }
  .window-card { max-width: 100%; }
  .card p { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .float, .dot.ok, .ping::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
