/* Boongle IDE — dark black & white site shell */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --black: #000000;
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --bg-card: #111111;
  --text: #ffffff;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --header-height: 4rem;
  --display: var(--font);
  --body: var(--font);
  --serif: var(--font);
  /* Legacy token aliases — mapped to dark palette */
  --ink: var(--text);
  --paper: var(--bg);
  --white: #ffffff;
  --muted: var(--bg-raised);
  --muted-text: var(--text-muted);
  --orange: var(--text);
  --sky: var(--bg-raised);
  --acid: var(--bg-raised);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.brand img,
.footer-brand img {
  filter: invert(1);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

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

/* Header */

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  color: var(--muted-text);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.35rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta {
  justify-self: end;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--white);
  border-radius: 0.4rem;
  color: var(--black);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-cta:hover {
  color: var(--white);
  background: transparent;
}

.menu-toggle {
  display: none;
}

/* Buttons & links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-dark {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.button-dark:hover {
  color: var(--white);
  background: transparent;
}

.button-light {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--muted-text);
}

/* Hero */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  grid-template-rows: 1fr auto;
  gap: 3rem;
  padding: calc(var(--header-height) + 3rem) var(--pad) 2.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-text);
}

.release-pill span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ink);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  font-style: normal;
  font-weight: 600;
}

.hero-bottom p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.hero-stage {
  align-self: center;
  display: grid;
  place-items: center;
}

.product-window {
  width: min(100%, 48rem);
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--muted);
}

.product-window img {
  width: 100%;
  border-radius: 0.25rem;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2rem;
  padding: 0 0.35rem;
  color: var(--muted-text);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.window-bar span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #444444;
}

.window-bar b {
  margin-left: 0.5rem;
  font-weight: 500;
}

.hero-proof {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-proof span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-text);
}

/* Hide decorative elements from the old design */

.orbit,
.agent-chip,
.hero-logo,
.cursor-note,
.ticker,
.giant-logo,
.privacy-orbit,
.sub-hero-mark,
.bench-hero-mark,
.application-mark,
.pricing-hero > img,
.changelog-hero > img,
.blog-hero-mark {
  display: none !important;
}

/* Sections */

.section-pad {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
}

.section-label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.section-label::before {
  content: none;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.25fr 1.75fr;
  gap: 2rem;
  align-content: center;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.manifesto h2 {
  max-width: 48rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.manifesto h2 span {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
}

.manifesto-note {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  max-width: 28rem;
  margin-top: 2rem;
}

.manifesto-note span {
  color: var(--muted-text);
}

.manifesto-note p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.workspace {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.3fr 1.2fr 0.5fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.dashboard-card {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--muted);
}

.dash-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.25rem 0.75rem;
  color: var(--muted-text);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--border);
}

.feature-grid article {
  padding: 1.5rem;
  background: var(--paper);
}

.feature-grid article + article {
  border-left: 1px solid var(--border);
}

.feature-key {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted-text);
}

.feature-grid h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.55;
}

.workflow {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  color: var(--ink);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.workflow-intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.workflow h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.workflow h2 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.workflow-list li > span {
  color: var(--muted-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.workflow-list h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.workflow-list p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.workflow-list b {
  color: var(--muted-text);
  font-size: 1.25rem;
  font-weight: 400;
}

.local-first {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.local-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.local-copy p {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  color: var(--muted-text);
  line-height: 1.65;
}

.models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.section-heading.compact {
  display: block;
  margin: 0;
}

.section-heading.compact h2 {
  margin-bottom: 1rem;
}

.section-heading.compact > p:last-child {
  max-width: 32rem;
  color: var(--muted-text);
}

.model-stack {
  display: flex;
  flex-direction: column;
}

.model-stack div {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

.model-stack div:last-child {
  border-bottom: 1px solid var(--border);
}

.model-stack div:hover {
  background: var(--paper);
}

.model-stack span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.model-stack b {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.model-stack i {
  color: var(--muted-text);
  font-family: var(--body);
  font-style: normal;
  font-size: 0.9rem;
}

/* Pricing */

.pricing {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.pricing-intro {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.pricing-lead {
  margin: 1.25rem 0 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pricing-head {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.pricing-head h1,
.pricing-intro h1,
.pricing h2,
.faq h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pricing-head > p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.price-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--bg-card);
}

.price-grid article + article {
  border-left: 1px solid var(--border);
}

.price-grid article.featured {
  background: var(--bg-raised);
}

.plan-flag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.price-grid header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.price-grid header span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.price-grid header b {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.price-grid header b small {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--muted-text);
}

.price-grid ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.price-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted-text);
}

.price-grid li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.25 8.25L6.5 11.5L12.75 4.75' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.65rem;
}

.price-grid article > a,
.price-grid footer a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.price-grid article > a span,
.price-grid footer a span {
  transition: transform 0.15s ease;
}

.price-grid article > a:hover span,
.price-grid footer a:hover span {
  transform: translateX(0.2rem);
}

.price-grid article.featured > a {
  color: var(--text);
}

.price-grid footer {
  margin-top: 1.15rem;
}

.pricing-note {
  margin: 0;
  padding-top: 0;
  color: var(--muted-text);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion details {
  border-bottom: 1px solid var(--border);
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
}

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

.accordion summary span {
  color: var(--muted-text);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.15s ease;
}

.accordion details[open] summary span {
  transform: rotate(45deg);
}

.accordion details p {
  max-width: 40rem;
  margin: -0.25rem 0 1.25rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* Final CTA */

.final-cta {
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.final-cta-inner {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-card);
}

.final-cta-inner .section-label {
  margin-bottom: 1rem;
}

.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.final-cta-copy {
  max-width: 28rem;
  margin: 1rem auto 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem var(--pad) 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.site-footer > p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.55;
}

.site-footer nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.site-footer nav a {
  width: max-content;
  color: var(--muted-text);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-text);
  font-size: 0.75rem;
}

.footer-meta a.footer-credit {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mobile-cta {
  display: none;
}

/* Legal & error pages */

.legal-page,
.error-page {
  min-height: 100svh;
  padding: calc(var(--header-height) + 2rem) var(--pad) 4rem;
}

.legal-page {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-page h1,
.error-page h1 {
  margin: 0 0 2rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-copy {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.65;
}

.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--muted);
}

.error-page > p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
}

/* Subpages */

.subpage {
  min-height: 100svh;
  background: var(--paper);
}

.subpage h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subpage h1 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
}

.subpage input,
.subpage textarea,
.subpage button {
  font: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.compact-footer {
  padding-top: 2rem;
}

.sub-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: calc(var(--header-height) + 3rem) var(--pad) 4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.sub-hero-copy > p:last-child {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.download-console {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text);
  overflow: hidden;
}

.console-head {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.access-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.access-form label,
.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.field-row input,
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.35rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.field-row button,
.access-form .form-submit {
  padding: 0.85rem 1rem;
  border: 1px solid var(--white);
  border-radius: 0.35rem;
  color: var(--black);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.field-row button:hover,
.form-submit:hover {
  opacity: 0.9;
}

.form-hint {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

.form-status.error {
  color: #ff8080;
}

.form-status.success {
  color: rgba(255, 255, 255, 0.85);
}

.platform-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-list article:last-child {
  border-bottom: 0;
}

.platform-list h2 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.platform-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.platform-list article > span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.system-strip span {
  padding: 1rem var(--pad);
  border-right: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted-text);
}

.system-strip span:last-child {
  border-right: 0;
}

.split-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  background: var(--paper);
}

.split-info h2,
.pricing-faq h2,
.release-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.split-info > div:last-child p {
  max-width: 32rem;
  margin: 0 0 1.5rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* Beta page */

.beta-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--paper);
}

.beta-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) var(--pad) 4rem;
  border-right: 1px solid var(--border);
}

.beta-intro > p:not(.section-label) {
  max-width: 30rem;
  margin: 1.5rem 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cohort-note {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  max-width: 28rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cohort-note span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.application-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) var(--pad) 4rem;
  background: var(--muted);
}

.application-count {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field input,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  color: var(--text);
  background: var(--bg-card);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--border-strong);
  outline: none;
}

.form-field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-text);
  text-align: right;
  font-size: 0.8rem;
}

.application-card .form-submit {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--white);
  border-radius: 0.35rem;
  background: var(--white);
  color: var(--black);
}

.application-card .form-submit:hover {
  background: transparent;
  color: var(--white);
}

/* Pricing page */

.pricing-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: end;
  min-height: 72svh;
  padding: calc(var(--header-height) + 3rem) var(--pad) 4rem;
  border-bottom: 1px solid var(--border);
}

.pricing-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pricing-hero h1 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
}

.pricing-hero-side p {
  max-width: 28rem;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pricing-hero-side span {
  display: block;
  margin-top: 2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted-text);
}

.plan-table {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--paper);
}

.plan-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.4fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.plan-row:last-child {
  border-bottom: 1px solid var(--border);
}

.plan-row header {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
}

.plan-row header > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.plan-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.plan-row header b {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plan-row header small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted-text);
}

.plan-row ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-row li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.plan-row li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.25 8.25L6.5 11.5L12.75 4.75' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.65rem;
}

.plan-row > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.plan-row > a span {
  transition: transform 0.15s ease;
}

.plan-row > a:hover span {
  transform: translateX(0.2rem);
}

.featured-row {
  margin: 0 calc(var(--pad) * -1);
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: var(--bg-raised);
}

.pricing-faq {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 4rem;
  background: var(--muted);
}

/* Changelog (legacy page shell) */

.changelog-page {
  color: var(--ink);
  background: var(--paper);
}

.changelog-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  padding: calc(var(--header-height) + 3rem) var(--pad) 4rem;
  border-bottom: 1px solid var(--border);
}

.changelog-hero .section-label {
  position: static;
  margin-bottom: 1rem;
}

.changelog-hero h1 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
}

.changelog-hero > div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.changelog-hero > div span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.changelog-hero > div b {
  display: block;
  margin: 0.75rem 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.changelog-hero > div p {
  color: var(--muted-text);
}

.release-feed {
  background: var(--paper);
}

.release-entry {
  display: grid;
  grid-template-columns: 0.35fr 1.65fr;
  gap: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.release-entry:last-child {
  border-bottom: 1px solid var(--border);
}

.release-entry aside {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.release-entry aside span,
.release-entry aside i {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-style: normal;
  color: var(--muted-text);
}

.release-entry aside b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.release-entry aside i {
  width: max-content;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.release-entry h2 {
  max-width: 48rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.release-lead {
  max-width: 42rem;
  margin: 1.25rem 0 2rem;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.change-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.change-columns h3 {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.change-columns ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
  line-height: 1.5;
  color: var(--muted-text);
}

.latest-release {
  margin: 0 calc(var(--pad) * -1);
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: var(--muted);
}

.release-cta {
  display: grid;
  grid-template-columns: 0.4fr 1.2fr auto;
  gap: 2rem;
  align-items: end;
  color: var(--black);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* Misc */

body {
  overflow-x: hidden;
}

a,
button {
  touch-action: manipulation;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

section[id],
h1[id],
h2[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.orange-page,
.sky-page {
  background: var(--paper);
}

/* Responsive */

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-card);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 0.8rem;
    cursor: pointer;
  }

  .menu-lines {
    position: relative;
    width: 1.1rem;
    height: 1px;
    background: var(--text);
  }

  .menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.1rem;
    height: 1px;
    background: var(--text);
  }

  .header-actions .header-cta {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .sub-hero,
  .beta-layout,
  .manifesto,
  .section-heading,
  .workflow,
  .models,
  .faq,
  .pricing-head,
  .pricing-hero,
  .pricing-faq,
  .split-info,
  .changelog-hero,
  .release-entry,
  .release-cta,
  .bench-callout {
    grid-template-columns: 1fr;
  }

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

  .feature-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .beta-intro {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .manifesto-note {
    grid-column: 1;
  }

  .plan-row {
    grid-template-columns: 1fr 1fr;
  }

  .plan-row > a {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-bottom: 2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row button {
    min-height: 2.75rem;
  }

  .system-strip {
    grid-template-columns: 1fr 1fr;
  }

  .system-strip span:nth-child(2) {
    border-right: 0;
  }

  .system-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .plan-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .plan-row header {
    grid-template-columns: 1.25rem 1fr;
  }

  .plan-row header b {
    grid-column: 2;
  }

  .plan-row > a {
    grid-column: 1;
  }

  .release-entry {
    grid-template-columns: 1fr;
    padding: 2.5rem 0;
  }

  .release-entry aside {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .release-entry aside i {
    grid-column: 1 / -1;
  }

  .change-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mobile-cta {
    position: fixed;
    z-index: 40;
    left: 1rem;
    right: 1rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    border: 1px solid var(--ink);
    border-radius: 0.45rem;
    color: var(--white);
    background: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .compact-footer {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
