/* ==========================================================
   ST Crosshair — standalone stylesheet (no Tailwind needed)
   ========================================================== */

:root {
  --bg: #0a0a0e;
  --panel: #111118;
  --panel-2: #16161f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e6e6ee;
  --muted: #9a9aab;
  --purple: #a855f7;
  --purple-dim: #7c3aed;
  --purple-logo: #842e85;
  --pink: #e879f9;
  --gray-ring: #a8a8b3;
  --radius: 20px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0.12em; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 78% 8%, rgba(132, 46, 133, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(124, 58, 237, 0.16), transparent 70%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 14, 0.82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: #fff; }
.brand img { border-radius: 50%; }
.brand-sm { font-size: 1rem; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; border: 1px solid transparent;
  font: 700 0.98rem/1 "Inter", sans-serif; color: #fff; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), var(--purple));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 8px 30px rgba(168, 85, 247, 0.32);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 12px 40px rgba(168, 85, 247, 0.5); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(168, 85, 247, 0.5); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 12px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
  padding-block: 72px 96px;
}

.hero-ring {
  position: absolute; z-index: -1; pointer-events: none;
  right: -140px; top: -90px; width: 720px; max-width: none; opacity: 0.4;
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ring drawing, shared by hero + CTA (matches the app logo: 8 segments) */
.ring-gray, .ring-purple, .ring-dot, .ring-lines { fill: none; }
.ring-gray { stroke: var(--gray-ring); stroke-width: 12; stroke-dasharray: 120 13.5; opacity: 0.5; }
.ring-purple { stroke: var(--purple-logo); stroke-width: 12; stroke-dasharray: 120 13.5 120 13.5 120 13.5 0 667.5; }
.ring-lines { stroke: #fff; stroke-width: 3; opacity: 0.55; }
.ring-dot { fill: var(--purple-logo); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.28);
  color: #d8b4fe; font-size: 0.8rem; font-weight: 600;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; color: #fff;
}
.accent {
  background: linear-gradient(100deg, #c084fc, var(--purple) 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { margin-top: 22px; max-width: 30em; color: var(--muted); font-size: 1.1rem; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* screenshot */
.hero-shot { margin: 0; transition: transform .25s ease-out; will-change: transform; }
.shot-frame {
  position: relative; padding: 10px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(132, 46, 133, 0.28);
}
.shot-frame img { border-radius: 14px; width: 100%; }
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--pink); opacity: 0.85; pointer-events: none; }
.corner.tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.corner.tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.corner.bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.corner.br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.hero-shot figcaption { margin-top: 18px; text-align: center; font-size: 0.72rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.kicker { font-size: 0.74rem; color: var(--purple); font-weight: 700; margin-bottom: 14px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: #fff; }
.sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 34px; height: 34px;
  border-top: 2px solid var(--purple); border-left: 2px solid var(--purple); border-top-left-radius: var(--radius);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.35); box-shadow: 0 24px 60px rgba(132, 46, 133, 0.22); }
.card:hover::before { opacity: 1; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.25); margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: #d8b4fe; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 25px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.step { position: relative; padding-top: 6px; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--purple); color: #d8b4fe; font-weight: 700; font-size: 0.9rem; letter-spacing: 0;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}
.step h3 { margin-top: 20px; font-size: 1.15rem; font-weight: 700; color: #fff; }
.step p { margin-top: 6px; color: var(--muted); font-size: 0.96rem; max-width: 18em; }

/* ---------- Final CTA ---------- */
.cta-wrap { padding-block: 40px 100px; }
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 24px; border-radius: 32px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(132, 46, 133, 0.34), transparent 70%), var(--panel);
  border: 1px solid var(--line-strong);
}
.cta-ring { position: absolute; left: 50%; top: 50%; width: 560px; max-width: none; transform: translate(-50%, -50%); opacity: 0.16; pointer-events: none; }
.cta > *:not(.cta-ring) { position: relative; }
.cta-logo { margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 0 50px rgba(168, 85, 247, 0.45); }
.cta p { margin: 14px 0 32px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer p { color: var(--muted); font-size: 0.85rem; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--muted); font-size: 0.88rem; transition: color .2s; }
.footer nav a:hover { color: #fff; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Crosshair cursor (desktop mouse only) ---------- */
.has-xh, .has-xh * { cursor: none !important; }
.xh { position: fixed; left: 0; top: 0; z-index: 99999; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.xh.on { opacity: 1; }
.xh span { position: absolute; background: #f0abfc; box-shadow: 0 0 8px rgba(232, 121, 249, .9); transition: transform .2s, background .2s; }
.xh .t, .xh .b { width: 2px; height: 9px; left: -1px; }
.xh .l, .xh .r { height: 2px; width: 9px; top: -1px; }
.xh .t { top: -17px; } .xh .b { top: 8px; } .xh .l { left: -17px; } .xh .r { left: 8px; }
.xh .c { width: 3px; height: 3px; left: -1.5px; top: -1.5px; border-radius: 50%; }
.xh.lock span.t { transform: translateY(-7px); } .xh.lock span.b { transform: translateY(7px); }
.xh.lock span.l { transform: translateX(-7px); } .xh.lock span.r { transform: translateX(7px); }
.xh.lock span { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .9); }
.xh.down span.t { transform: translateY(5px); } .xh.down span.b { transform: translateY(-5px); }
.xh.down span.l { transform: translateX(5px); } .xh.down span.r { transform: translateX(-5px); }

.hit { position: fixed; z-index: 99998; width: 0; height: 0; pointer-events: none; }
.hit::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #f0abfc; animation: hit .55s ease-out forwards; }
@keyframes hit { to { transform: scale(5); opacity: 0; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 99999;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--line-strong); color: #fff;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 72px; }
  .hero-ring { width: 520px; right: -200px; top: -60px; opacity: 0.3; }
  .cards, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step p { max-width: none; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-inner { height: 64px; }
  .btn { padding: 13px 20px; }
  .cta { padding: 56px 20px; border-radius: 24px; }
  .section { padding-block: 64px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
