:root {
  --bg: #0a0d12;
  --bg-soft: #121824;
  --bg-elevated: rgba(18, 24, 36, 0.82);
  --panel: rgba(14, 18, 27, 0.92);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f5f1e8;
  --text-soft: #b6bdc9;
  --text-dim: #8690a1;
  --gold: #ffb546;
  --gold-strong: #ffd27a;
  --blue: #74b0ff;
  --blue-soft: rgba(116, 176, 255, 0.18);
  --success: #7de3b1;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 181, 70, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(116, 176, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #090c11 0%, #0e121b 42%, #0a0d12 100%);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.93em;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: 140ms ease;
}

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

main,
.page-stack {
  display: grid;
  gap: 28px;
}

.hero,
.split-callout,
.media-split,
.timeline-step {
  display: grid;
  gap: 28px;
}

.hero {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 78vh;
  padding: 28px 0 8px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text,
.page-hero p,
.section-heading p,
.feature-card p,
.info-card p,
.principle-card p,
.callout-card p,
.timeline-copy p,
.release-summary,
.archive-copy,
.site-footer p {
  color: var(--text-soft);
}

.hero-actions,
.release-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #14110c;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  box-shadow: 0 10px 30px rgba(255, 181, 70, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points,
.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.hero-points li,
.bullet-list li {
  margin: 8px 0;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(160deg, rgba(255, 181, 70, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(13, 18, 28, 0.92), rgba(7, 10, 15, 0.98));
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.orb-gold {
  inset: 28px auto auto 28px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 181, 70, 0.52), transparent 70%);
}

.orb-blue {
  inset: auto 10px 30px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(116, 176, 255, 0.42), transparent 72%);
}

.phone-stack {
  position: absolute;
  inset: 0;
}

.phone-card {
  position: absolute;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f141e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-card.featured {
  top: 56px;
  left: 56px;
  width: 310px;
  height: 570px;
}

.phone-card.offset {
  top: 132px;
  right: 36px;
  width: 220px;
  height: 410px;
}

.phone-card.narrow {
  bottom: 42px;
  right: 110px;
  width: 180px;
  height: 330px;
}

.phone-card.slim {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1080 / 2340;
}

.panel,
.feature-card,
.info-card,
.principle-card,
.callout-card,
.archive-card,
.asset-card,
.version-nav-card,
.loading-card,
.error-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
}

.section-heading {
  margin-bottom: 20px;
}

.eyebrow,
.mono-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.timeline-copy h2,
.media-copy h2,
.feature-card h3,
.info-card h2,
.principle-card h3,
.archive-card h3,
.release-spotlight h3,
.version-page h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.04;
}

.release-spotlight,
.version-page {
  padding: 28px;
}

.release-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.release-date {
  margin: 0;
  color: var(--text-dim);
}

.release-badge {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
}

.release-badge-primary {
  color: #1b1408;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  border-color: transparent;
}

.asset-grid,
.feature-grid,
.info-grid,
.principles-grid,
.release-archive,
.shot-grid,
.version-nav-grid {
  display: grid;
  gap: 18px;
}

.asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

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

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

.shot-card,
.asset-card {
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-card figcaption {
  padding: 14px 14px 18px;
  color: var(--text-soft);
}

.shot-card.tall {
  grid-column: span 1;
}

.feature-card,
.info-card,
.principle-card,
.archive-card,
.version-nav-card,
.loading-card,
.error-card {
  padding: 22px;
}

.feature-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255, 181, 70, 0.14);
  color: var(--gold-strong);
  font-family: "IBM Plex Mono", monospace;
}

.asset-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  transition: transform 140ms ease, border-color 140ms ease;
}

.asset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 181, 70, 0.36);
}

.asset-card p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.split-callout,
.media-split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.callout-card {
  padding: 28px;
}

.media-wall,
.dual-phones {
  display: grid;
  gap: 18px;
}

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

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-step {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.timeline-step.reverse {
  grid-template-columns: auto 1fr;
}

.timeline-step.reverse .timeline-copy {
  order: 2;
}

.timeline-step.reverse .phone-card,
.timeline-step.reverse .dual-phones {
  order: 1;
}

.page-hero {
  padding: 12px 0 6px;
}

.page-hero.compact {
  padding: 0;
}

.markdown-body {
  color: var(--text-soft);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--text);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body table {
  margin: 0 0 1em;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.2rem;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
}

.markdown-table th,
.markdown-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.markdown-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  color: var(--text-soft);
}

.footer-copy {
  color: var(--text-dim);
}

@media (max-width: 1100px) {
  .hero,
  .split-callout,
  .media-split,
  .timeline-step,
  .timeline-step.reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone-card.featured {
    width: 270px;
    height: 500px;
  }

  .phone-card.offset {
    width: 210px;
    height: 390px;
  }

  .phone-card.narrow {
    width: 170px;
    height: 310px;
    right: 56px;
  }

  .feature-grid,
  .info-grid,
  .principles-grid,
  .release-archive,
  .shot-grid,
  .media-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 100vw - 28px);
  }

  .site-shell {
    padding-top: 14px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    border-radius: 24px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.9rem);
  }

  .panel,
  .release-spotlight,
  .version-page,
  .timeline-step {
    padding: 22px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .phone-card.featured {
    top: 34px;
    left: 24px;
    width: 220px;
    height: 404px;
  }

  .phone-card.offset {
    top: 74px;
    right: 20px;
    width: 154px;
    height: 286px;
  }

  .phone-card.narrow {
    bottom: 26px;
    right: 74px;
    width: 128px;
    height: 236px;
  }

  .feature-grid,
  .info-grid,
  .principles-grid,
  .release-archive,
  .shot-grid,
  .media-wall,
  .version-nav-grid,
  .asset-grid,
  .dual-phones {
    grid-template-columns: 1fr;
  }

  .release-meta-row {
    flex-direction: column;
  }
}
