/* Subset marketing page -- HUD theme. Self-contained: only this file and
   the Google Fonts stylesheet. All animation is CSS (transform/opacity
   only) and respects prefers-reduced-motion. */

:root {
  --ink: #eaf6f9;
  --muted: #9dc5d1;
  --line: #1c4f5c;
  --paper: #050f13;
  --card: #0a1b21;
  --brand: #2de8ff;
  --brand-strong: #7ff3ff;
  --accent: #37f2c8;
  --warn: #ffcc66;
  --display: "Chakra Petch", Inter, ui-sans-serif, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- backdrop: stage glow + grid + rotating aurora ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 40% at 50% 0%, rgba(45, 232, 255, 0.10), transparent 72%),
    radial-gradient(ellipse 40% 30% at 88% 8%, rgba(55, 242, 200, 0.07), transparent 70%),
    linear-gradient(160deg, #04141a, #062230 70%);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 200, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 200, 220, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
}


.page { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 20px 60px; }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }

.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: #04141a;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  box-shadow: 0 0 22px rgba(45, 232, 255, 0.45);
}

.brand strong { font-family: var(--display); letter-spacing: 0.06em; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; }

.cta-row { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid rgba(45, 232, 255, 0.55);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(10, 27, 33, 0.6);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover { box-shadow: 0 0 22px rgba(45, 232, 255, 0.35); transform: translateY(-1px); }

.btn.primary {
  color: #04141a;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 26px rgba(45, 232, 255, 0.35);
}

/* ---- hero ---- */
.hero {
  display: block;
  padding: 48px 0 12px;
  max-width: 720px;
}

.eyebrow {
  font-family: var(--display);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-shadow: 0 0 30px rgba(45, 232, 255, 0.35);
}

h1 em { font-style: normal; color: var(--brand); }

.lede { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 0 0 26px; }

/* ---- sections ---- */
section { padding: 44px 0; }

h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 8px;
  text-shadow: 0 0 20px rgba(45, 232, 255, 0.25);
}

.section-sub { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

/* HUD cards with corner brackets + scan sweep */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: clip;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(45, 232, 255, 0.30);
  background:
    linear-gradient(90deg, transparent, rgba(45, 232, 255, 0.45), transparent) top 0 center / 46% 2px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) left 7px top 7px / 16px 2px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) left 7px top 7px / 2px 16px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) right 7px top 7px / 16px 2px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) right 7px top 7px / 2px 16px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) left 7px bottom 7px / 16px 2px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) left 7px bottom 7px / 2px 16px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) right 7px bottom 7px / 16px 2px no-repeat,
    linear-gradient(rgba(45, 232, 255, 0.6) 0 0) right 7px bottom 7px / 2px 16px no-repeat,
    rgba(10, 27, 33, 0.82);
  box-shadow: 0 0 0 1px rgba(45, 232, 255, 0.10), 0 12px 34px rgba(0, 0, 0, 0.45);
}



.card .glyph { font-size: 1.5rem; color: var(--brand); }

.card h3 { font-family: var(--display); margin: 10px 0 6px; font-size: 1.05rem; }

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

/* flow strip */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.node {
  position: relative;
  text-align: center;
  padding: 15px 8px;
  border: 1px solid rgba(45, 232, 255, 0.22);
  border-radius: 12px;
  background: rgba(45, 232, 255, 0.05);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
}

.node small { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 0.74rem; margin-top: 3px; }

.node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 38%;
  color: var(--brand-strong);
  font-weight: 700;
}

/* pricing */
.price-card { text-align: center; }

.price-card .amount {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-strong);
  text-shadow: 0 0 18px rgba(45, 232, 255, 0.45);
}

.price-card .per { color: var(--muted); font-size: 0.85rem; }

.price-card ul { list-style: none; padding: 0; margin: 14px 0 18px; color: var(--muted); font-size: 0.9rem; display: grid; gap: 6px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 242, 200, 0.45);
  color: var(--accent);
  font-size: 0.72rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* live dot */
.pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--display); font-size: 0.85rem; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}


/* final cta */
.final-cta {
  text-align: center;
  padding: 60px 20px;
  border-radius: 16px;
  border: 1px solid rgba(45, 232, 255, 0.35);
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(45, 232, 255, 0.10), transparent 70%), rgba(10, 27, 33, 0.8);
  box-shadow: 0 0 0 1px rgba(45, 232, 255, 0.12), 0 0 40px rgba(45, 232, 255, 0.10);
}

footer { color: var(--muted); text-align: center; font-size: 0.82rem; padding: 34px 0 10px; }

footer a { color: var(--brand); text-decoration: none; }


@media (prefers-reduced-motion: reduce) {
    .hero > div, section { animation: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .orb-stage { min-height: 240px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .node:not(:last-child)::after { display: none; }
}

@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
}

/* ---- mobile layout fixes: visible nav, no dead gap, compact pipeline ---- */
@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 14px 0; }
  .topbar .cta-row { width: 100%; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .topbar .btn { min-height: 36px; padding: 0 13px; font-size: 0.82rem; }
  .hero { padding: 20px 0 6px; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .lede { font-size: 1rem; }
  section { padding: 28px 0; }
  .pipeline-section { padding-top: 6px; }
  .pipeline { max-width: 420px; gap: 8px; }
  .pipe-core { width: 104px; height: 104px; }
  .pipe-core span { font-size: 0.9rem; }
  .pipe-beam { height: 20px; }
}

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 10px; max-width: 820px; }

.faq-item {
  border: 1px solid rgba(45, 232, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 27, 33, 0.7);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item summary:hover { color: var(--brand-strong); }

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-item p strong { color: var(--ink); }

@keyframes hub-flow { to { stroke-dashoffset: -20; } }



@media (max-width: 560px) {
  }

@media (prefers-reduced-motion: reduce) {
  .hub-pulses { display: none; }
}

/* ---- AI section ---- */
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ai-card { border-color: rgba(55, 242, 200, 0.4); }
.ai-card h3 { margin-top: 12px; }

.ai-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #04141a;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.ai-help { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(45, 232, 255, 0.16); }
.ai-help strong { color: var(--brand-strong); }

@media (max-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr; } }

/* roadmap marketplaces: honest "soon" state, dimmed + dashed */
/* the pulses to soon nodes (n2,n3,n4 -> indices 2,3,4) dimmed */
/* ---- inputs -> AI core -> outcomes pipeline ---- */
.pipeline-section { padding-top: 20px; }
.pipeline {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1000 / 480;
}
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pipe-in-links path { stroke-dasharray: 3 7; opacity: 0.4; animation: hub-flow 0.9s linear infinite; }
.pipe-out-links path { stroke-dasharray: 3 7; opacity: 0.5; animation: hub-flow-out 0.9s linear infinite; filter: drop-shadow(0 0 3px rgba(55,242,200,0.5)); }
@keyframes hub-flow-out { to { stroke-dashoffset: -20; } }
.pipe-in-pulses circle { filter: drop-shadow(0 0 5px #7ff3ff); }
.pipe-out-pulses circle { filter: drop-shadow(0 0 6px #37f2c8); }

.pipe-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px; color: #04141a;
  background: radial-gradient(circle at 40% 35%, #cdf8ff, #2de8ff 55%, #1b9fb8);
  box-shadow: 0 0 46px rgba(45,232,255,0.8), inset 0 0 24px rgba(255,255,255,0.5);
  animation: hub-core-pulse 3s ease-in-out infinite; z-index: 2;
}
.pipe-core span { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.06em; }
.pipe-core small { font-family: var(--display); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.24em; opacity: 0.85; }

.pipe-node {
  position: absolute; transform: translate(-50%, -50%);
  min-width: 100px; padding: 8px 12px; border-radius: 12px; text-align: center;
  background: rgba(10,27,33,0.92); border: 1px solid rgba(45,232,255,0.4);
  box-shadow: 0 0 16px rgba(45,232,255,0.14); animation: hub-node-breathe 4s ease-in-out infinite; z-index: 1;
}
.pipe-node b { display: block; font-family: var(--display); font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.pipe-node i { font-style: normal; font-size: 0.62rem; letter-spacing: 0.05em; color: var(--muted); }
.pipe-node.out { border-color: rgba(55,242,200,0.45); box-shadow: 0 0 16px rgba(55,242,200,0.16); }
.pipe-node.out b { color: #7ffdd8; }
.pipe-node.soon { opacity: 0.55; border-style: dashed; animation: none; }
.pipe-node.soon i { color: var(--warn); text-transform: uppercase; letter-spacing: 0.12em; }

.pipe-node.i1 { left: 15%; top: 9.4%; }   .pipe-node.i2 { left: 15%; top: 22.9%; }
.pipe-node.i3 { left: 15%; top: 36.5%; }  .pipe-node.i4 { left: 15%; top: 50%; }
.pipe-node.i5 { left: 15%; top: 63.5%; }  .pipe-node.i6 { left: 15%; top: 77.1%; }
.pipe-node.i7 { left: 15%; top: 90.6%; }
.pipe-node.o1 { left: 85%; top: 14.6%; }  .pipe-node.o2 { left: 85%; top: 32.3%; }
.pipe-node.o3 { left: 85%; top: 50%; }    .pipe-node.o4 { left: 85%; top: 67.7%; }
.pipe-node.o5 { left: 85%; top: 85.4%; }


@media (prefers-reduced-motion: reduce) {
  .pipe-in-links path, .pipe-out-links path, .pipe-core, .pipe-node { animation: none; }
  .pipe-in-pulses, .pipe-out-pulses { display: none; }
}


/* the single site animation lives on the pipeline: flowing links, a
   breathing core, gentle node glow -- everything else is now static for a
   lighter, faster page. */
@keyframes hub-core-pulse {
  50% { box-shadow: 0 0 60px rgba(45,232,255,0.95), inset 0 0 26px rgba(255,255,255,0.65); }
}
@keyframes hub-node-breathe { 50% { border-color: rgba(45,232,255,0.75); box-shadow: 0 0 22px rgba(45,232,255,0.28); } }

/* mobile: the pipeline reflows to a vertical flow -- inputs, AI core,
   outcomes stacked -- with the core still breathing (the one animation) and
   a light animated beam showing direction. */
@media (max-width: 760px) {
  .pipeline { aspect-ratio: auto; display: grid; gap: 10px; justify-items: center; }
  .pipe-svg { display: none; }
  .pipe-core, .pipe-node { position: static; transform: none; }
  .pipe-inrow, .pipe-outrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .pipe-node { min-width: 0; padding: 7px 10px; }
  .pipe-node i { display: none; }
  .pipe-beam {
    width: 3px; height: 26px; border-radius: 3px;
    background: linear-gradient(#2de8ff, transparent);
    background-size: 100% 200%; animation: beam 1.1s linear infinite;
  }
  .pipe-beam.out { background: linear-gradient(#37f2c8, transparent); }
}
@keyframes beam { to { background-position: 0 -200%; } }
@media (min-width: 761px) { .pipe-beam, .pipe-inrow, .pipe-outrow { display: contents; } }
