:root {
  color-scheme: dark;
  --ink: #030712;
  --deep: #071426;
  --panel: rgba(8, 23, 45, .68);
  --panel-solid: #0a1930;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --text: #f8fafc;
  --muted: #a5b4ca;
  --line: rgba(125, 211, 252, .18);
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% -10%, rgba(59, 130, 246, .18), transparent 34rem),
    radial-gradient(circle at 15% 25%, rgba(139, 92, 246, .11), transparent 28rem),
    linear-gradient(180deg, #030712 0%, #061222 55%, #030712 100%);
  font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(34, 211, 238, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

.protected-site, .protected-site * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.protected-site input, .protected-site textarea {
  -webkit-user-select: text;
  user-select: text;
}

.ambient-field {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.ambient-field::before,
.ambient-field::after {
  content: ""; position: absolute; width: 46rem; aspect-ratio: 1; border-radius: 50%;
  filter: blur(90px); opacity: .13; animation: aurora-drift 18s ease-in-out infinite alternate;
}
.ambient-field::before { top: -20rem; right: -12rem; background: var(--cyan); }
.ambient-field::after { left: -18rem; bottom: -20rem; background: var(--violet); animation-delay: -8s; }
.ambient-field i {
  --size: calc(2px + (var(--i) % 3) * 1px);
  position: absolute; left: calc((var(--i) * 37) % 100 * 1%); top: calc((var(--i) * 53) % 100 * 1%);
  width: var(--size); height: var(--size); border-radius: 50%; background: #a5f3fc;
  box-shadow: 0 0 14px rgba(103, 232, 249, .9); opacity: .2;
  animation: data-rise calc(11s + (var(--i) % 7) * 1s) linear infinite;
  animation-delay: calc(var(--i) * -.85s);
}

.capture-shield {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: #020611;
  transition: opacity .12s ease, visibility .12s ease;
}
.capture-shield div { display: grid; gap: .4rem; text-align: center; }
.capture-shield strong { color: var(--cyan); font-size: clamp(2rem, 7vw, 5rem); letter-spacing: -.05em; }
.capture-shield span { color: var(--muted); font: 750 .78rem/1.4 ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; }
.capture-guard .capture-shield { opacity: 1; visibility: visible; }

.protection-mark {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; pointer-events: none;
  color: rgba(165, 243, 252, .23); font: 700 .62rem/1 ui-monospace, monospace;
  letter-spacing: .14em; transform: rotate(-2deg); text-shadow: 0 0 12px rgba(34, 211, 238, .25);
}
.security-toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 10000;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  padding: .72rem 1rem; border: 1px solid rgba(103, 232, 249, .3); border-radius: 999px;
  color: #dffcff; background: rgba(3, 12, 26, .94); box-shadow: 0 18px 60px rgba(0,0,0,.55);
  font: 750 .75rem/1 ui-monospace, monospace; letter-spacing: .05em;
  transition: transform .25s ease, opacity .25s ease;
}
.security-toast.show { transform: translate(-50%, 0); opacity: 1; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-140%); padding: .7rem 1rem; border-radius: 10px;
  color: #001018; background: var(--cyan); font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 7, 18, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(130%);
}
.header-inner {
  width: min(1180px, calc(100% - 32px)); margin: auto; min-height: 76px;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: baseline; gap: .55rem; font-weight: 900; letter-spacing: -.04em; font-size: 1.15rem; }
.brand small { color: var(--cyan); font-size: .69rem; letter-spacing: .16em; font-weight: 800; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.desktop-nav a { padding: .55rem .72rem; border-radius: 10px; color: #cbd5e1; font-size: .9rem; font-weight: 650; }
.desktop-nav a[aria-current="page"] { color: var(--text); background: rgba(34, 211, 238, .1); }
.nav-contact, .footer-contact, .text-contact {
  border: 0; color: inherit; background: none; cursor: pointer; font: inherit;
}
.nav-contact {
  min-height: 40px; margin-left: .35rem; padding: .55rem .9rem; border: 1px solid rgba(103, 232, 249, .32);
  border-radius: 999px; color: #001018; background: linear-gradient(135deg, #67e8f9, #60a5fa);
  font-size: .84rem; font-weight: 850; box-shadow: 0 0 0 rgba(34,211,238,0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34,211,238,.18); }
.footer-contact { padding: 0; color: var(--muted); text-align: left; font-size: .88rem; }
.footer-contact:hover { color: var(--cyan); }
.text-contact { padding: 0; color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
.menu-toggle, .motion-toggle {
  border: 1px solid var(--line); color: var(--text); background: rgba(14, 34, 58, .72);
  border-radius: 999px; min-height: 40px; padding: .5rem .8rem; cursor: pointer;
}
.menu-toggle { display: none; font-size: 1.15rem; }
.motion-toggle { font-size: .78rem; color: var(--muted); white-space: nowrap; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
main { min-height: 70vh; }

.hero {
  position: relative; min-height: 690px; display: grid; align-items: center;
  isolation: isolate; padding: 6rem 0 4.5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { color: var(--cyan); font-size: .78rem; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.hero p { color: #cbd5e1; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }
.gradient-text { background: linear-gradient(100deg, #fff 15%, #67e8f9 52%, #a78bfa); background-clip: text; color: transparent; }
.gradient-text { background-size: 220% 100%; animation: spectrum-flow 7s ease-in-out infinite; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .78rem 1.15rem; border: 1px solid rgba(103, 232, 249, .28); border-radius: 14px;
  font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); color: var(--text); box-shadow: 0 12px 36px rgba(34, 211, 238, .16); }
.button.primary { color: #001018; border-color: transparent; background: linear-gradient(135deg, #67e8f9, #60a5fa); }
.button.secondary { background: rgba(12, 30, 55, .64); }

.core-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
#origin-core { width: min(560px, 100%); aspect-ratio: 1; filter: drop-shadow(0 0 42px rgba(34, 211, 238, .2)); }
.core-label {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  padding: .55rem .9rem; color: #bff7ff; background: rgba(3, 12, 26, .72);
  border: 1px solid rgba(103, 232, 249, .25); border-radius: 999px;
  font: 750 .74rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em;
  backdrop-filter: blur(12px); white-space: nowrap;
}

.section { padding: 5.5rem 0; }
.section.compact { padding: 3.5rem 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p, .lede, .muted { color: var(--muted); }
.lede { font-size: 1.15rem; max-width: 72ch; }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; padding: 1.45rem; overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 38, 67, .72), rgba(5, 16, 34, .7));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: perspective(900px) translateY(-5px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  border-color: rgba(103, 232, 249, .34);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), 0 0 36px rgba(34, 211, 238, .08);
}
.card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(103,232,249,.13), transparent 45%);
  transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.055), transparent 32%);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .kicker { color: var(--cyan); font: 750 .72rem/1.3 ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.card.featured { min-height: 260px; display: flex; flex-direction: column; justify-content: end; }
.status {
  display: inline-flex; align-items: center; gap: .42rem; width: fit-content;
  padding: .36rem .58rem; border: 1px solid var(--line); border-radius: 999px;
  color: #cdeefa; background: rgba(14, 38, 65, .7); font-size: .72rem; font-weight: 750;
}
.status::before { content: ""; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.status.roadmap::before { background: var(--warning); box-shadow: 0 0 12px rgba(251, 191, 36, .65); }

.page-hero { padding: 6rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); max-width: 14ch; }
.breadcrumbs { color: var(--muted); font-size: .82rem; margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--cyan); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; align-items: start; }
.article { max-width: 800px; }
.article section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: .5rem; }
.article h3 { margin-top: 1.25rem; }
.article p, .article li { color: #c6d2e2; }
.article li + li { margin-top: .45rem; }
.article a { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
.aside-card { position: sticky; top: 96px; }
.aside-card nav { display: grid; gap: .35rem; }
.aside-card a { color: var(--muted); padding: .35rem 0; font-size: .9rem; }
.aside-card a:hover { color: var(--cyan); }

.steps { counter-reset: step; display: grid; gap: .8rem; }
.step { position: relative; padding: 1.2rem 1.2rem 1.2rem 4rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 24, 44, .62); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem;
  display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1; border-radius: 50%;
  color: #001018; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-weight: 900;
}

.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.filter {
  cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .8rem;
  color: var(--muted); background: rgba(8, 23, 45, .65);
}
.filter[aria-pressed="true"] { color: #001018; background: var(--cyan); border-color: var(--cyan); }
.app-card[hidden] { display: none; }

.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--cyan); background: rgba(34, 211, 238, .075); border-radius: 0 14px 14px 0; color: #d9f8fd; }
.legal-date { font: 700 .76rem/1.4 ui-monospace, monospace; letter-spacing: .08em; color: var(--cyan); }
.footer {
  margin-top: 5rem; padding: 3rem 0 2rem; border-top: 1px solid var(--line);
  background: rgba(2, 7, 18, .74);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
.footer h3 { font-size: .85rem; letter-spacing: .06em; }
.footer nav { display: grid; gap: .55rem; }
.footer a, .footer p { color: var(--muted); font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); color: #718096; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes spectrum-flow { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes aurora-drift { to { transform: translate3d(7rem, 4rem, 0) scale(1.15); } }
@keyframes data-rise {
  0% { transform: translate3d(0, 18vh, 0) scale(.7); opacity: 0; }
  15%, 75% { opacity: .36; }
  100% { transform: translate3d(4vw, -32vh, 0) scale(1.25); opacity: 0; }
}

@media print {
  body > * { display: none !important; }
  body::after {
    content: "Printing is disabled for protected ReelOrigin™ content.";
    display: grid; min-height: 100vh; place-items: center; color: #000; background: #fff;
    font: 700 18pt/1.4 sans-serif; text-align: center;
  }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; padding: .75rem; flex-direction: column; align-items: stretch; background: #071426; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .desktop-nav.open { display: flex; }
  .desktop-nav.open .nav-contact { margin: .35rem 0 0; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .motion-toggle { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 1rem; }
  .core-stage { min-height: 420px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .aside-card { position: relative; top: auto; order: -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { width: min(100% - 22px, 1180px); }
  .container { width: min(100% - 24px, 1120px); }
  .brand small { display: none; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .core-stage { min-height: 340px; }
  .grid.two, .grid.three, .grid.four, .section-head, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .page-hero { padding-top: 4rem; }
  .card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

body.reduce-motion .reveal { opacity: 1; transform: none; }
body.reduce-motion #origin-core { opacity: .7; }
body.reduce-motion .ambient-field *, body.reduce-motion .gradient-text { animation: none !important; }
