:root {
  --bg: #07060d;
  --bg-2: #0d0b1a;
  --panel: rgba(20, 16, 38, 0.72);
  --border: rgba(140, 110, 255, 0.18);
  --text: #e9e6ff;
  --muted: #a49dc9;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #22d3ee 0%, #a855f7 55%, #ec4899 100%);
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Ambient neon backdrop — painted as cheap radial gradients (no blur filter),
   which iOS Safari can composite without exhausting GPU memory. */
.bg-orbs {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(48vw 48vw at 6% -8%, rgba(168,85,247,0.42), transparent 60%),
    radial-gradient(52vw 52vw at 96% 112%, rgba(34,211,238,0.38), transparent 60%);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(140,110,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,110,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,6,13,0.6);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 18px rgba(168,85,247,0.5); }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--grad); color: #0a0713;
  box-shadow: 0 6px 24px rgba(168,85,247,0.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(168,85,247,0.5); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--violet); }

@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; padding: 92px 0 60px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 26px;
  background: var(--panel);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(38px, 7vw, 74px); line-height: 1.03; font-weight: 800; letter-spacing: -1.5px; }
.hero h1 .grad, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-icon {
  width: 128px; height: 128px; border-radius: 28px; margin: 0 auto 30px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55), 0 0 30px rgba(168,85,247,0.22);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Hero device */
.hero-shot { margin: 56px auto 0; max-width: 320px; }
.phone {
  border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #211a3d, #0c0a18);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(168,85,247,0.2);
}
.phone img { border-radius: 34px; width: 100%; }
.phone.empty { aspect-ratio: 9 / 19.5; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--cyan); font-weight: 700; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -1px; margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.5); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(34,211,238,0.18), rgba(168,85,247,0.18));
  border: 1px solid var(--border);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Screenshots */
.shots { display: flex; gap: 26px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots .phone { min-width: 250px; scroll-snap-align: center; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 999px; }

/* Split / stats */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split ul { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.split li b { color: var(--text); }
.check { color: var(--cyan); flex: none; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; text-align: center; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 14px; }
.stat .n { font-size: clamp(30px,5vw,44px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Companion band */
.companion-band {
  background: var(--panel); border: 1px solid var(--border); border-radius: 28px;
  padding: 48px clamp(24px, 4vw, 56px); text-align: center; position: relative; overflow: hidden;
}
.companion-band .eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--cyan); font-weight: 700; }
.companion-band h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -1px; margin-top: 12px; }
.companion-band > p { color: var(--muted); margin: 16px auto 0; max-width: 660px; font-size: 17px; }
.companion-points {
  list-style: none; margin: 30px auto 0; max-width: 940px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left;
}
@media (max-width: 760px) { .companion-points { grid-template-columns: 1fr; } }
.companion-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.companion-points li b { color: var(--text); }

/* CTA band */
.cta-band { text-align: center; }
.cta-inner {
  background: var(--panel); border: 1px solid var(--border); border-radius: 28px;
  padding: 56px 28px; position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(26px,4.5vw,40px); font-weight: 800; letter-spacing: -1px; }
.cta-inner p { color: var(--muted); margin: 14px auto 28px; max-width: 480px; }

/* Invite form */
.invite-form { max-width: 520px; margin: 0 auto; }
.invite-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.invite-form input[type="email"],
.invite-form input[type="text"] {
  flex: 1 1 200px; min-width: 0;
  padding: 13px 16px; border-radius: 999px;
  background: rgba(7,6,13,0.55); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.invite-form input::placeholder { color: var(--muted); }
.invite-form input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.22);
}
.invite-form .btn { width: 100%; justify-content: center; cursor: pointer; border: 0; }
.invite-form .btn[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.invite-status { margin-top: 14px; font-size: 15px; }
.invite-status.ok { color: var(--cyan); }
.invite-status.err { color: var(--pink); }
/* Honeypot: hidden from humans, visible to naive bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); } .foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Reveal is a progressive enhancement: only hide when JS is active, so the
   page is fully visible with JS disabled or before the observer fires. */
:root:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
