/* Magic Beamer — landing page styles. No build step; plain CSS. */

:root {
  --bg: #08080d;
  --bg-raise: #101018;
  --bg-card: #0d0d15;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f0ea;
  --muted: #a09db0;
  --faint: #6c6980;
  --beam-a: #4be1ff;
  --beam-b: #8b5cf6;
  --beam-c: #ff4bd8;
  --beam: linear-gradient(100deg, var(--beam-a), var(--beam-b) 55%, var(--beam-c));
  --radius: 14px;
  --content: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

p { margin: 0 0 1em; }

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

section { padding: 96px 0; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--beam);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.lede { color: var(--muted); font-size: 1.15rem; max-width: 640px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 13, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.wordmark img { width: 22px; height: 22px; }

.nav a.navlink {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a.navlink:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--beam);
  border: none;
  color: #0a0a10;
}

.btn-primary:hover { box-shadow: 0 6px 30px rgba(139, 92, 246, 0.45); }

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  /* ambient haze behind the (transparent) WebGL canvas */
  background:
    radial-gradient(55% 70% at 72% 22%, rgba(75, 225, 255, 0.06), transparent 65%),
    radial-gradient(45% 60% at 22% 78%, rgba(255, 75, 216, 0.05), transparent 65%),
    var(--bg);
}

.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fallback {
  display: none;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(75, 225, 255, 0.10), transparent 60%),
    radial-gradient(50% 70% at 20% 80%, rgba(255, 75, 216, 0.08), transparent 60%),
    linear-gradient(rgba(8, 8, 13, 0.62), rgba(8, 8, 13, 0.62)),
    url("simple_wall.jpg") center / cover no-repeat,
    var(--bg);
}

.no-webgl .hero-canvas { display: none; }
.no-webgl .hero-fallback { display: block; }

.hero-canvas { z-index: 0; }

/* scrim above the canvas so the headline stays readable over the lit wall */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(58% 64% at 32% 52%, rgba(8, 8, 13, 0.78), transparent 72%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 800;
  max-width: 12em;
}

.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 560px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 16px;
}

.fineprint { color: var(--faint); font-size: 0.9rem; }

/* soft floor fade so the hero blends into the next section */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ---------- calibrate / detect / map ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--beam);
  color: #0a0a10;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.25rem; }

.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.demo-slot {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
}

.demo-slot .placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 0.95rem;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(139, 92, 246, 0.08), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.02) 22px 44px);
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease;
}

.card:hover { border-color: rgba(139, 92, 246, 0.45); }

.card h3 { font-size: 1.12rem; }

.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th { white-space: nowrap; }

tbody tr:last-child td { border-bottom: none; }

thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-raise);
}

td:first-child { color: var(--muted); }

.col-magicbeamer {
  background: rgba(139, 92, 246, 0.08);
  font-weight: 600;
}

.yes { color: var(--beam-a); }
.no { color: var(--faint); }

.table-note { color: var(--faint); font-size: 0.85rem; margin-top: 14px; }

/* ---------- trust ---------- */

.trust { background: var(--bg-raise); border-block: 1px solid var(--line); }

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.trust-points h3 { font-size: 1.05rem; }

.trust-points p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-image: linear-gradient(140deg, var(--beam-a), var(--beam-b), var(--beam-c)) 1;
  border-width: 1px;
  border-style: solid;
}

.plan .price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  color: var(--muted);
  flex: 1;
}

.plan li { padding: 6px 0 6px 26px; position: relative; }

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--beam-a);
  font-weight: 700;
}

.plan li.dim::before { content: "·"; color: var(--faint); }

.pricing-notes { text-align: center; color: var(--faint); font-size: 0.9rem; margin-top: 28px; }

/* ---------- faq ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }

.faq details[open] summary::after { content: "–"; }

.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 700px; }

/* ---------- footer / signup ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 48px;
}

.signup { max-width: 520px; }

.signup form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text);
  font-size: 0.98rem;
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--beam-b);
}

.signup .form-success {
  margin-top: 20px;
  color: var(--beam-b);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 56px;
  color: var(--faint);
  font-size: 0.9rem;
}

.footer-links a { color: var(--faint); text-decoration: none; }

.footer-links a:hover { color: var(--text); }

.copyright { margin-left: auto; }

/* ---------- reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .steps, .grid, .trust-points { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: minmax(0, 420px); }
  .nav a.navlink { display: none; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .steps, .grid, .trust-points { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .signup form { flex-direction: column; }
}
