/* ───────────────────────────────────────────────────────────
   XWiZ landing — design tokens
   ─────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0b12;
  --bg-2: #0e1019;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --muted: #9aa1b8;
  --faint: #6b7290;
  --accent: #5ee7ff;     /* wifi cyan */
  --accent-2: #8b7cff;   /* violet */
  --accent-glow: rgba(94, 231, 255, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ── Background ambience ──────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%),
    radial-gradient(circle at 50% -10%, rgba(94,231,255,0.10), transparent 45%);
}
.bg-glow {
  position: fixed; z-index: -1;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(139,124,255,0.18), transparent 60%);
  filter: blur(40px); pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--primary {
  color: #04121a; background: linear-gradient(135deg, var(--accent), #7be9ff);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent-glow); }
.btn--ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 18, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 18px -2px var(--accent-glow);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: clamp(60px, 12vw, 130px) 24px 70px; text-align: center; position: relative; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface);
}
.hero__title {
  margin: 0 auto; max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1.04;
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #b9c0db);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin: 22px auto 0; max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* hero motion visual */
.hero__visual {
  position: relative; margin: 64px auto 0; width: min(520px, 90%); height: 200px;
  display: grid; place-items: center;
}
.wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; }
.wave span {
  display: block; width: 3px; height: 40px; border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.55; animation: pulse 1.8s var(--ease) infinite;
}
.wave span:nth-child(2) { animation-delay: .15s; }
.wave span:nth-child(3) { animation-delay: .30s; }
.wave span:nth-child(4) { animation-delay: .45s; }
.wave span:nth-child(5) { animation-delay: .60s; }
@keyframes pulse { 0%,100% { height: 24px; opacity:.35 } 50% { height: 150px; opacity:.9 } }
.figure {
  position: relative; width: 70px; height: 150px; border-radius: 40px;
  background: radial-gradient(circle at 50% 28%, rgba(94,231,255,0.35), transparent 70%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 50px -10px var(--accent-glow);
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  display: grid; gap: 18px; padding-bottom: 30px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(94,231,255,0.16), rgba(139,124,255,0.16));
  border: 1px solid var(--border-strong);
}
.card__icon::before { content: ""; width: 22px; height: 22px; background: var(--accent); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.card__icon[data-icon="wifi"]::before    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13a10 10 0 0 1 14 0'/%3E%3Cpath d='M8.5 16.5a5 5 0 0 1 7 0'/%3E%3Cpath d='M2 8.8a15 15 0 0 1 20 0'/%3E%3Cline x1='12' y1='20' x2='12.01' y2='20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13a10 10 0 0 1 14 0'/%3E%3Cpath d='M8.5 16.5a5 5 0 0 1 7 0'/%3E%3Cpath d='M2 8.8a15 15 0 0 1 20 0'/%3E%3Cline x1='12' y1='20' x2='12.01' y2='20'/%3E%3C/svg%3E"); }
.card__icon[data-icon="eye-off"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cpath d='M6.6 6.6A18.5 18.5 0 0 0 2 12s3 8 10 8a9 9 0 0 0 5.4-1.6'/%3E%3Cline x1='2' y1='2' x2='22' y2='22'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cpath d='M6.6 6.6A18.5 18.5 0 0 0 2 12s3 8 10 8a9 9 0 0 0 5.4-1.6'/%3E%3Cline x1='2' y1='2' x2='22' y2='22'/%3E%3C/svg%3E"); }
.card__icon[data-icon="zap"]::before     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); }
.card__icon[data-icon="users"]::before   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.card__title { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.card__body { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ── Section heading ──────────────────────────────────────── */
.section__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 8px; text-align: center;
}

/* ── How it works ─────────────────────────────────────────── */
.how { padding: 70px 24px; }
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; font-weight: 800; font-size: 1.1rem; color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--border-strong);
}
.step__title { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.step__body { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ── Waitlist ─────────────────────────────────────────────── */
.waitlist { padding: 40px 24px 90px; }
.waitlist__card {
  max-width: 680px; margin-inline: auto; text-align: center;
  padding: clamp(30px, 5vw, 54px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.waitlist__card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .7;
}
.waitlist__lead { color: var(--muted); margin: 10px auto 26px; max-width: 48ch; }

/* email form */
.wl-form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-input {
  flex: 1 1 220px; min-width: 0;
  padding: 14px 18px; border-radius: 999px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 1rem; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.wl-input::placeholder { color: var(--faint); }
.wl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(94,231,255,0.12); }
.wl-form__hint { min-height: 1.2em; margin: 12px 0 0; font-size: 0.88rem; color: #ff8b8b; text-align: left; padding-left: 18px; }
.wl-form.is-loading .btn--primary { opacity: .7; pointer-events: none; }

/* survey */
.survey { margin-top: 8px; text-align: left; animation: dropdown .5s var(--ease) both; }
@keyframes dropdown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.survey__intro { text-align: center; color: var(--text); font-weight: 600; margin: 0 0 22px; }
.survey__q { border: 0; margin: 0 0 22px; padding: 0; }
.survey__label { font-weight: 600; font-size: 0.98rem; margin-bottom: 12px; padding: 0; }
.survey__opts { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted);
  font-size: 0.9rem; transition: all .18s var(--ease);
}
.chip:hover span { color: var(--text); border-color: var(--accent); }
.chip input:checked + span {
  color: #04121a; background: linear-gradient(135deg, var(--accent), #7be9ff);
  border-color: transparent; font-weight: 600;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(94,231,255,0.3); }
.survey__text {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--border-strong);
  color: var(--text); font-family: inherit; font-size: 0.96rem; resize: vertical;
}
.survey__text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(94,231,255,0.12); }
.survey__actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }

/* thank-you */
.wl-done { animation: dropdown .5s var(--ease) both; }
.wl-done__check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; box-shadow: 0 0 40px -8px var(--accent-glow);
}
.wl-done__check::after {
  content: ""; width: 26px; height: 14px; margin-top: -4px;
  border-left: 3px solid #04121a; border-bottom: 3px solid #04121a;
  transform: rotate(-45deg);
}
.wl-done__title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.wl-done__body { margin: 0; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: 40px 24px 56px; text-align: center; border-top: 1px solid var(--border); }
.footer__tag { color: var(--text); font-weight: 600; margin: 0 0 6px; }
.footer__meta { color: var(--faint); font-size: 0.88rem; margin: 0; }
.footer__meta a { color: var(--muted); }
.footer__meta a:hover { color: var(--accent); }

/* ── Motion-reduced ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
