:root {
  color-scheme: dark;
  --bg: #070A1C;
  --bg-2: #0B1026;
  --panel: rgba(196, 181, 253, 0.07);
  --panel-2: rgba(196, 181, 253, 0.11);
  --panel-glass: linear-gradient(145deg, rgba(196, 181, 253, 0.10), rgba(196, 181, 253, 0.035));
  --text: #ECE9FB;
  --text-soft: #C8C4E4;
  --muted: #8A86AE;
  --line: rgba(196, 181, 253, 0.16);
  --line-strong: rgba(124, 58, 237, 0.55);
  --violet: #7C3AED;
  --violet-bright: #A78BFA;
  --teal: #0EA5A3;
  --teal-bright: #5EEAD4;
  --gold: #FBBF24;
  --gold-soft: #FDE68A;
  --blue: #7DD3FC;
  --danger: #F472B6;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --body: Avenir, "Avenir Next", Helvetica, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 78% -10%, rgba(124, 58, 237, 0.32), transparent 33rem),
    radial-gradient(circle at 6% 16%, rgba(14, 165, 163, 0.14), transparent 28rem),
    radial-gradient(circle at 96% 70%, rgba(251, 191, 36, 0.07), transparent 24rem),
    linear-gradient(180deg, #05071A 0%, #0B1026 46%, #070A1C 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Starfield base layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.1px 1.1px at 28% 64%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 44% 32%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 62% 78%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.3px 1.3px at 76% 22%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 88% 56%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 18% 88%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.4px 1.4px at 92% 14%, rgba(167,139,250,0.7), transparent),
    radial-gradient(1px 1px at 52% 8%, rgba(94,234,212,0.6), transparent);
  background-repeat: no-repeat;
  mask-image: radial-gradient(ellipse at 50% 14%, black, transparent 82%);
}

/* Constellation grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 181, 253, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.026) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse at 50% 10%, black, transparent 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.stage-light {
  position: fixed;
  z-index: -2;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(46px);
}

.stage-light-a {
  top: -20vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.34), transparent 67%);
}

.stage-light-b {
  left: -24vw;
  bottom: 0vh;
  background: radial-gradient(circle, rgba(14, 165, 163, 0.18), transparent 70%);
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 40;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--violet-bright);
  color: #16092e;
  transition: top 160ms ease;
}

.skip-link:focus { top: 1rem; }

a { color: inherit; }

.site-header,
main,
.footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 10, 28, 0.88), rgba(7, 10, 28, 0.44));
  border-bottom: 1px solid rgba(196, 181, 253, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, var(--gold-soft), transparent 42%),
    conic-gradient(from 200deg, var(--violet), var(--teal), var(--violet-bright), var(--violet));
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.45);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: inherit;
  background: #0B1026;
  box-shadow: inset 0 0 12px rgba(167, 139, 250, 0.4);
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.58rem, 1.28vw, 1.08rem);
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover { color: var(--violet-bright); }

.nav-pill {
  padding: 0.6rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(196, 181, 253, 0.05);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.74fr);
  gap: clamp(2rem, 4.8vw, 4.8rem);
  align-items: center;
  min-height: auto;
  padding: clamp(2.6rem, 6.2vw, 5.4rem) 0 clamp(2.3rem, 4vw, 3.2rem);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.058em;
  text-wrap: balance;
}

h1 {
  max-width: none;
  margin-bottom: 1.05rem;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  line-height: 0.96;
}

h1 span {
  display: block;
  white-space: normal;
}

h1 .grad {
  background: linear-gradient(120deg, var(--gold-soft), var(--violet-bright) 60%, var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5.4vw, 5.1rem);
  line-height: 0.93;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.24rem;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.68;
}

.hero-text {
  max-width: 42rem;
  color: #DEDAF4;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.hero-command {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: min(100%, 40.5rem);
  margin-top: 0.9rem;
  padding: 0.58rem;
  border: 1px solid rgba(124, 58, 237, 0.42);
  border-radius: 999px;
  background: rgba(5, 7, 20, 0.74);
  box-shadow: inset 0 0 26px rgba(124, 58, 237, 0.07);
}

.hero-command code {
  padding-left: 0.75rem;
  overflow: hidden;
  color: #E9E3FF;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-command button {
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.84rem 1.16rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.button.primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--violet-bright));
  box-shadow: 0 18px 54px rgba(124, 58, 237, 0.4);
}

.button.secondary {
  color: var(--text);
  background: rgba(196, 181, 253, 0.06);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
  max-width: 43rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(196, 181, 253, 0.05);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--text);
  font-size: 0.88rem;
}

.hero-proof span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.cinema-card {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
  margin: 0;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.09), rgba(196, 181, 253, 0.035));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cinema-card::before,
.cinema-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema-card::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent 18%, transparent 82%, rgba(255,255,255,0.08));
  mix-blend-mode: overlay;
}

.cinema-card::after {
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
}

.cinema-card img {
  display: block;
  width: 100%;
  height: auto;
}

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 18px;
  background: rgba(14, 165, 163, 0.08);
  color: var(--text-soft);
}

.notice strong {
  color: var(--teal-bright);
  white-space: nowrap;
}

.launch-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 clamp(3.5rem, 8vw, 6.5rem);
}

.launch-strip a {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.16), transparent 10rem),
    rgba(196, 181, 253, 0.055);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.launch-strip a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.launch-strip span,
.launch-strip strong {
  display: block;
}

.launch-strip span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-strip strong {
  margin-top: 0.35rem;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-section,
.setup-section,
.use-section,
.privacy-section,
.agent-section,
.faq-section,
.architecture-section,
.community-section,
.closing {
  margin: clamp(4.5rem, 10vw, 8.5rem) 0;
  scroll-margin-top: 6.5rem;
}

.section-head {
  max-width: 54rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
}

.section-lede {
  max-width: 43rem;
  font-size: 1.08rem;
}

.story-grid,
.prompt-grid,
.privacy-grid,
.faq-grid,
.path-grid {
  display: grid;
  gap: 1rem;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.prompt-card,
.privacy-grid article,
.faq-item,
.path-card,
.setup-card,
.agent-panel,
.community-card,
.closing {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-glass);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-card,
.prompt-card,
.privacy-grid article,
.faq-item {
  padding: 1.45rem;
}

.story-card:hover,
.prompt-card:hover,
.privacy-grid article:hover,
.faq-item:hover,
.path-card:hover,
.setup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
}

.story-card span,
.prompt-card span,
.setup-topline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.74rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--violet);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

#data .story-card:nth-child(1) span {
  background: var(--teal);
}

#data .story-card:nth-child(2) span {
  color: #2a1c02;
  background: var(--gold);
}

#data .story-card:nth-child(3) span {
  color: #2c0b22;
  background: var(--danger);
}

.story-card p,
.prompt-card p,
.privacy-grid p,
.faq-item p { margin-bottom: 0; }

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.10), transparent 45%),
    var(--panel-glass);
}

.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.faq-item summary::marker {
  color: var(--violet-bright);
}

.faq-item p {
  margin-top: 0.9rem;
}

.inline-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.inline-link-row a {
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(196, 181, 253, 0.05);
}

.community-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.55rem, 3.5vw, 2.6rem);
  background:
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(196, 181, 253, 0.12), rgba(196, 181, 253, 0.045));
}

.community-card h2 {
  margin-bottom: 0.8rem;
}

.community-card p {
  max-width: 46rem;
  margin-bottom: 0;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.architecture-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.architecture-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.architecture-points article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(196, 181, 253, 0.05);
}

.architecture-points strong,
.architecture-points span {
  display: block;
}

.architecture-points strong {
  color: var(--violet-bright);
}

.architecture-points span {
  margin-top: 0.35rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.architecture-visual {
  margin: 0;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.09), rgba(196, 181, 253, 0.035));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.architecture-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.path-card {
  position: relative;
  min-height: 100%;
  padding: 1.35rem;
  overflow: hidden;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: auto 1.25rem 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-bright), transparent);
  opacity: 0.75;
}

.path-card span {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.path-card p {
  margin-bottom: 0;
}

.path-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--violet-bright);
  font-weight: 900;
  text-decoration: none;
}

.agent-path {
  border-color: rgba(14, 165, 163, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 163, 0.16), transparent 13rem),
    var(--panel-glass);
}

.agent-path span { color: var(--teal-bright); }
.agent-path a { color: var(--teal-bright); }
.agent-path::before { background: linear-gradient(90deg, var(--teal-bright), transparent); }

.setup-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.setup-card {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2rem);
  overflow: hidden;
}

.setup-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--violet-bright), transparent);
  opacity: 0.65;
}

.command-card {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.copy-list {
  display: grid;
  gap: 0.72rem;
  margin: 1rem 0;
}

.copy-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.22fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(5, 7, 20, 0.5);
}

.copy-list span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.copy-list code {
  overflow-wrap: anywhere;
}

code,
pre {
  font-family: var(--mono);
}

code {
  color: var(--teal-bright);
  font-size: 0.9em;
}

button,
.copy-list button,
.prompt-card button,
.terminal button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.76rem;
  color: var(--text);
  background: rgba(196, 181, 253, 0.08);
  font: 850 0.78rem var(--body);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

button:hover,
button.is-copied {
  border-color: transparent;
  color: #ffffff;
  background: var(--violet);
}

.small-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--violet-bright);
  font-weight: 900;
  text-decoration: none;
}

.terminal {
  position: relative;
  margin-top: 1rem;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius-md);
  background: #05071A;
  overflow: hidden;
}

.terminal button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
}

pre {
  margin: 0;
  padding: 1.25rem;
  padding-top: 3.65rem;
  overflow-x: auto;
  color: #E9E3FF;
  font-size: 0.9rem;
  line-height: 1.65;
}

.client-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin: 1rem 0;
}

.client-pills span {
  padding: 0.54rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(196, 181, 253, 0.05);
  font-size: 0.85rem;
}

.config-details {
  margin-top: 1rem;
}

.config-details summary {
  color: var(--violet-bright);
  cursor: pointer;
  font-weight: 900;
}

.prompt-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prompt-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.prompt-card p { flex: 1; }

.prompt-card button {
  align-self: flex-start;
  margin-top: 1rem;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.privacy-copy {
  position: sticky;
  top: 6rem;
}

.privacy-grid {
  grid-template-columns: 1fr 1fr;
}

.privacy-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--violet-bright);
}

.agent-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 4vw, 2.45rem);
  align-items: start;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.24), transparent 22rem),
    var(--panel-2);
}

.closing h2 { margin-bottom: 0.6rem; }
.closing p { margin-bottom: 0; }

.footer {
  display: grid;
  gap: 0.4rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p { margin: 0; color: var(--muted); }
.footer a { color: var(--text-soft); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1040px) {
  .hero,
  .privacy-section,
  .agent-panel,
  .architecture-section {
    grid-template-columns: 1fr;
  }

  .privacy-copy { position: static; }

  .cinema-card {
    justify-self: center;
    width: min(100%, 580px);
  }

  .hero-proof,
  .launch-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-grid,
  .privacy-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar { display: none; }

  .story-grid,
  .faq-grid,
  .path-grid,
  .community-card,
  .closing {
    grid-template-columns: 1fr;
  }

  .community-actions {
    justify-content: flex-start;
  }

  .closing {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .footer {
    width: min(100% - 1rem, 1200px);
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-copy {
    width: 100%;
    max-width: 23rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10.9vw, 2.58rem);
  }

  h1 span {
    white-space: normal;
  }

  h2 { font-size: clamp(2.2rem, 11.5vw, 3.35rem); }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 23rem;
  }

  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-command {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-command button {
    justify-self: stretch;
  }

  .cinema-card {
    justify-self: start;
    width: min(100%, 23rem);
  }

  .hero-actions,
  .closing-actions,
  .community-actions {
    width: 100%;
  }

  .hero-actions .button,
  .closing-actions .button,
  .community-actions .button {
    width: 100%;
  }

  .prompt-grid,
  .privacy-grid,
  .faq-grid,
  .hero-proof,
  .launch-strip {
    grid-template-columns: 1fr;
  }

  .copy-list div {
    grid-template-columns: 1fr;
  }

  .cinema-card,
  .architecture-visual,
  .setup-card,
  .story-card,
  .path-card,
  .prompt-card,
  .privacy-grid article,
  .faq-item,
  .agent-panel,
  .community-card,
  .closing {
    border-radius: 22px;
  }

  pre { font-size: 0.8rem; }
}
