:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f0;
  --muted: #a4a49f;
  --soft: #d6d6cf;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #0a0a0a 0%, var(--bg) 40%, #020202 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  pointer-events: none;
  opacity: 0.45;
}

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

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

::selection {
  background: #efefea;
  color: #040404;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.24);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle,
.muted {
  color: var(--muted);
}

.brand-subtitle {
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.button,
.button-ghost {
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.button:hover,
.button-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.nav-links .active {
  color: var(--text);
  background: var(--panel);
}

.hero {
  padding: 96px 0 48px;
}

.hero-grid,
.split-grid,
.author-grid,
.screens-grid,
.policy-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

h1,
h2,
h3 {
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
}

.hero p,
.section-copy,
.lead {
  color: var(--soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-copy {
  max-width: 620px;
}

.hero-actions,
.button-row,
.meta-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  font-weight: 600;
}

.button {
  background: var(--text);
  color: #050505;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.meta-row {
  margin-top: 28px;
}

.meta-pill,
.tag,
.mini-stat {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.meta-pill {
  padding: 10px 16px;
  color: var(--soft);
}

.hero-stage,
.panel,
.feature-card,
.screen-card,
.note-card,
.quote-card,
.list-panel,
.policy-card,
.author-card,
.dedication-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 8, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.phone-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 560px;
}

.phone-frame {
  width: clamp(200px, 24vw, 250px);
  padding: 14px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #171717, #090909);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.phone-frame.offset {
  margin-bottom: 72px;
}

.phone-frame img {
  width: 100%;
  border-radius: 24px;
}

.section {
  padding: 34px 0 18px;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.feature-grid,
.card-grid,
.screens-grid,
.policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.screen-card,
.note-card,
.policy-card,
.author-card,
.dedication-card {
  padding: 24px;
}

.feature-card h3,
.screen-card h3,
.policy-card h3,
.author-card h2,
.dedication-card h2,
.quote-card h3 {
  font-size: 1.35rem;
}

.list-panel h2,
.note-card h2,
.policy-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.feature-card p,
.screen-card p,
.policy-card p,
.note-card p,
.list-panel p,
.author-card p,
.dedication-card p,
.quote-card p,
li {
  color: var(--soft);
  line-height: 1.75;
}

.feature-card .feature-index,
.screen-card .screen-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.screen-card img {
  margin-top: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.split-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.list-panel,
.quote-card {
  padding: 28px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-stat {
  padding: 16px 18px;
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.mini-stat span {
  color: var(--muted);
}

.tag-cloud {
  margin-top: 16px;
}

.tag {
  padding: 10px 14px;
  color: var(--soft);
}

.author-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  align-items: stretch;
  gap: 36px;
}

.portrait-shell {
  position: relative;
  padding: 16px;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  height: 100%;
  transform: translateY(-18px);
}

.portrait-shell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  filter: saturate(0.1) contrast(1.08);
}

.author-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 100%;
  padding: 32px;
}

.author-meta {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stack-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.stack-list p {
  margin: 0;
}

.stack-list strong {
  color: var(--text);
  font-size: 0.98rem;
}

.author-card .muted-line,
.policy-card .muted-line {
  display: block;
  color: var(--muted);
  margin-top: 0;
}

.quote-card {
  position: relative;
  overflow: hidden;
}

.quote-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.dedication-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 8, 0.82);
}

.dedication-card p strong {
  color: var(--text);
}

.policy-grid {
  gap: 18px;
}

.policy-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.policy-card li + li {
  margin-top: 10px;
}

.credits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}

.credits-offset {
  margin-top: 22px;
}

.footnote {
  padding: 42px 0 60px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-line {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.fade-up {
  animation: fade-up 0.7s ease both;
  will-change: transform;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

@keyframes fade-up {
  from {
    transform: translateY(16px);
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .author-grid,
  .feature-grid,
  .screens-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .phone-stack {
    min-height: 0;
    flex-wrap: wrap;
  }

  .phone-frame.offset {
    margin-bottom: 0;
  }

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

  .credits-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .credits-offset {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    border-radius: 24px;
    padding: 14px;
  }

  .brand {
    width: 100%;
  }

  .topbar,
  .footer-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .page-shell {
    width: min(var(--max-width), calc(100% - 22px));
  }

  .hero-stage,
  .feature-card,
  .screen-card,
  .note-card,
  .policy-card,
  .author-card,
  .dedication-card,
  .quote-card,
  .list-panel {
    border-radius: 24px;
  }
}
