/* ==========================================================================
   BITSOFT — company site design system
   Shared across all pages. Extends the Clip landing-page brand system:
   Space Grotesk + DM Sans, dark navy ground, Clip red + Beam blue accents,
   plus a company-level red→blue gradient identity.
   ========================================================================== */

:root {
  --bg:          #12121f;
  --bg-raise:    #1A1A2E;
  --bg-alt:      #16213E;
  --surface:     #1e1e3a;
  --surface-2:   #252545;
  --red:         #E63946;
  --red-h:       #c72d38;
  --red-glow:    rgba(230, 57, 70, .28);
  --blue:        #4f8ef7;
  --blue-h:      #3d7ae0;
  --blue-glow:   rgba(79, 142, 247, .28);
  --violet:      #8e6cf0;
  --text:        #F0F0F5;
  --muted:       #9a9ab8;
  --faint:       #70708f;
  --border:      #2a2a50;
  --border-2:    #383870;
  --grad-brand:  linear-gradient(100deg, var(--red) 0%, var(--violet) 52%, var(--blue) 100%);
  --max-w:       1140px;
  --r-sm:        8px;
  --r-md:        14px;
  --r-lg:        22px;
  --r-xl:        30px;
  --z-bg:        0;
  --z-content:   10;
  --z-nav:       200;
  --z-skip:      300;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(79, 142, 247, .35); }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 1.0625rem; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: var(--z-skip);
  padding: .6rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Ambient background — aurora blobs + grid + grain (pure CSS, GPU-cheap)
   -------------------------------------------------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  pointer-events: none;
}
.ambient::before {
  /* faint blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 138, 190, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 138, 190, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
}
.ambient::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob {
  position: absolute;
  width: 46vw;
  min-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.blob--red  { background: radial-gradient(circle at 35% 35%, rgba(230,57,70,.34), transparent 62%); top: -14%; left: -10%; animation: drift-a 26s ease-in-out infinite alternate; }
.blob--blue { background: radial-gradient(circle at 60% 40%, rgba(79,142,247,.32), transparent 62%); top: 4%; right: -14%; animation: drift-b 32s ease-in-out infinite alternate; }
.blob--violet { background: radial-gradient(circle at 50% 50%, rgba(142,108,240,.2), transparent 60%); top: 42%; left: 28%; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 10vh, 0) scale(.94); } }
@keyframes drift-c { to { transform: translate3d(6vw, -8vh, 0) scale(1.08); } }

main, .nav, .footer { position: relative; z-index: var(--z-content); }

/* --------------------------------------------------------------------------
   Wordmark — "Bitsoft." with gradient full stop
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}
.wordmark .dot {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(142, 108, 240, .55));
}
.wordmark--clip .dot { background: none; color: var(--red); filter: none; text-shadow: 0 0 10px var(--red-glow); }
.wordmark--beam .dot { background: none; color: var(--blue); filter: none; text-shadow: 0 0 10px var(--blue-glow); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 68px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(18, 18, 31, .78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .95rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-cta { margin-left: .5rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .07); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .9rem 1.25rem 1.2rem;
    background: rgba(18, 18, 31, .97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-cta { margin: .35rem 0 0; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .875rem 1.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, transform .14s ease, box-shadow .2s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-h); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(230, 57, 70, .38); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-h); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(79, 142, 247, .38); }

.btn--grad {
  background: var(--grad-brand);
  color: #fff;
  position: relative;
}
.btn--grad:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(142, 108, 240, .4); }

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--faint); transform: translateY(-1px); }

.btn--sm { min-height: 44px; padding: .6rem 1.375rem; font-size: .84rem; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4.5vw, 3.25rem); }
.section-head h2 { margin: .8rem 0 .9rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-copy .eyebrow { margin-bottom: 1.2rem; }
.hero-copy h1 { margin-bottom: 1.3rem; }
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2rem;
  color: var(--faint);
  font-size: .875rem;
}
.hero-foot span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-foot svg { color: var(--blue); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* --------------------------------------------------------------------------
   Product visuals — real app screenshots (packages/site/assets/*-app.png,
   rendered from the actual Clip/Beam renderer code)
   -------------------------------------------------------------------------- */
.app-shot {
  height: auto;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, .55));
}
.app-shot--clip { width: min(460px, 100%); }
.app-shot--beam { width: min(260px, 80%); }

.mock-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.mock-stage .app-shot--beam { position: absolute; right: 6%; top: 0; }
.mock-stage .app-shot--clip { position: absolute; left: 0; bottom: 6%; }
@media (max-width: 960px) {
  .mock-stage { min-height: 0; padding: 1rem 0 0; }
  .mock-stage .app-shot--clip { position: static; }
  .mock-stage .app-shot--beam { display: none; }
}

.float-a, .float-b { will-change: transform; }
.float-a { animation: floaty 7s ease-in-out infinite alternate; }
.float-b { animation: floaty 9s ease-in-out infinite alternate-reverse; }
@keyframes floaty { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

/* Clip tray mock */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --------------------------------------------------------------------------
   Marquee strip
   -------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
  padding: .95rem 0;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-track b {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Cards — glow border + pointer spotlight
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 30, 58, .75), rgba(22, 22, 44, .75));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease;
}
.card::before {
  /* pointer spotlight — --mx / --my set by site.js */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(142, 128, 240, .1), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-2);
  margin-bottom: 1.1rem;
}
.icon-chip--red  { color: var(--red);  box-shadow: 0 0 22px rgba(230, 57, 70, .14) inset; }
.icon-chip--blue { color: var(--blue); box-shadow: 0 0 22px rgba(79, 142, 247, .14) inset; }
.icon-chip--violet { color: var(--violet); box-shadow: 0 0 22px rgba(142, 108, 240, .14) inset; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .9875rem; }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.bento .card { grid-column: span 2; }
.bento .card--wide { grid-column: span 3; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--wide { grid-column: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Product showcase cards
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 15% 0%, var(--pc-glow, rgba(230,57,70,.12)), transparent 62%),
    linear-gradient(180deg, rgba(30, 30, 58, .8), rgba(20, 20, 40, .85));
  transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 22px 60px rgba(0, 0, 0, .45); }
.product-card--clip { --pc-glow: rgba(230, 57, 70, .14); }
.product-card--beam { --pc-glow: rgba(79, 142, 247, .14); }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product-head .wordmark { font-size: 2.1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .42rem .9rem;
  border-radius: 999px;
  border: 1px solid;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--live { color: #5dd39e; border-color: rgba(93, 211, 158, .35); background: rgba(93, 211, 158, .08); }
.badge--live::before { animation: pulse 1.8s ease-in-out infinite; }
.badge--soon { color: var(--blue); border-color: rgba(79, 142, 247, .35); background: rgba(79, 142, 247, .08); }
.product-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.product-desc { color: var(--muted); max-width: 46rem; }
.product-points { display: grid; gap: .55rem; list-style: none; }
.product-points li { display: flex; gap: .65rem; align-items: baseline; color: var(--muted); font-size: .96rem; }
.product-points svg { flex: none; transform: translateY(2px); }
.product-card--clip .product-points svg { color: var(--red); }
.product-card--beam .product-points svg { color: var(--blue); }
.product-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .3rem; }
.product-visual { display: grid; justify-items: center; padding: .5rem 0; }

.products-grid { display: grid; gap: 1.4rem; }
@media (min-width: 980px) {
  .products-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02);
}
.stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--faint); font-size: .875rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Steps (how it works)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; }
.step { counter-increment: step; }
.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-2);
  margin-bottom: 1rem;
}
.step .num::before { content: counter(step); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: .3rem; }
.price-card .tier { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.price-card .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: .2rem 0 .1rem;
}
.price-card .note { color: var(--faint); font-size: .875rem; flex: 1; }
.price-card--hot { border-color: rgba(230, 57, 70, .5); }
.price-card--hot::after {
  content: "Launch week";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(230, 57, 70, .4);
  border-radius: 999px;
  padding: .28rem .65rem;
  background: rgba(230, 57, 70, .08);
}
@media (max-width: 1020px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Timeline (about)
   -------------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--violet), var(--blue));
  border-radius: 2px;
  opacity: .55;
}
.tl-item { position: relative; padding: 0 0 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-raise);
  border: 3px solid var(--violet);
  box-shadow: 0 0 12px rgba(142, 108, 240, .4);
}
.tl-item time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.tl-item h3 { margin: .3rem 0 .35rem; }
.tl-item p { color: var(--muted); max-width: 44rem; }

/* --------------------------------------------------------------------------
   Definition strip (B·I·T)
   -------------------------------------------------------------------------- */
.defn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.defn .card { text-align: left; }
.defn .letter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: .7rem;
}
@media (max-width: 820px) { .defn { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 100% at 20% 0%, rgba(230, 57, 70, .13), transparent 60%),
    radial-gradient(60% 100% at 80% 100%, rgba(79, 142, 247, .13), transparent 60%),
    linear-gradient(180deg, rgba(30, 30, 58, .85), rgba(20, 20, 40, .9));
}
.cta-band h2 { margin-bottom: .9rem; }
.cta-band p { color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.cta-band .hero-ctas { justify-content: center; }

/* --------------------------------------------------------------------------
   Prose pages (privacy / terms)
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .6rem; }
.prose .updated { color: var(--faint); font-size: .9375rem; margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.45rem; margin: 2.4rem 0 .8rem; }
.prose h3 { margin: 1.6rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: .45rem; margin: .8rem 0; }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(79, 142, 247, .35); transition: border-color .15s ease; }
.prose a:hover { border-color: var(--blue); }
.prose strong { color: var(--text); }
.prose .callout {
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .025);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}

/* Contact / info cards */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.info-grid .card a { color: var(--blue); font-weight: 600; }
.info-grid .card a:hover { text-decoration: underline; }
.info-grid address { font-style: normal; color: var(--muted); line-height: 1.7; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; }
.legal-card dt { color: var(--faint); font-size: .9375rem; }
.legal-card dd { color: var(--text); font-size: .9375rem; }
@media (max-width: 560px) {
  .legal-card dl { grid-template-columns: 1fr; gap: .1rem; }
  .legal-card dd { margin-bottom: .7rem; color: var(--muted); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 22, .6);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--faint); font-size: .9375rem; max-width: 20rem; margin-top: 1rem; }
.footer h4 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer ul a { color: var(--muted); font-size: .9375rem; transition: color .15s ease; }
.footer ul a:hover { color: var(--text); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: grid;
  gap: .5rem;
  color: var(--faint);
  font-size: .8125rem;
  line-height: 1.7;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound p { color: var(--muted); margin: 1rem 0 2rem; }

/* --------------------------------------------------------------------------
   Reduced motion — kill all decorative animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .float-a, .float-b, .marquee-track,
  .badge--live::before, .pulse-dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
