:root {
  color-scheme: dark;
  --ink: #f6efe2;
  --muted: #b9ad9a;
  --dim: #7e7569;
  --night: #10100f;
  --charcoal: #171614;
  --panel: rgba(246, 239, 226, 0.07);
  --line: rgba(246, 239, 226, 0.16);
  --hot: #ff6b35;
  --gold: #f4c95d;
  --cyan: #8bd8ff;
  --green: #9be564;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 107, 53, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 24%, rgba(139, 216, 255, 0.16), transparent 34rem),
    linear-gradient(135deg, #10100f 0%, #171614 52%, #0c0c0b 100%);
  font-family: var(--serif);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(246, 239, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 226, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.13;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(27deg, transparent 0 7px, rgba(255, 255, 255, 0.18) 7px 8px);
  mix-blend-mode: overlay;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--night);
  background: var(--gold);
}

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

.site-header,
.site-footer,
.hero,
.section,
.strip,
.cta {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 28px 0;
}

.brand,
.site-header nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold), var(--hot));
  font-weight: 800;
}

.site-header nav {
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: 76vh;
  padding: 56px 0 86px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 11ch;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 12vw, 9.5rem);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

.hero-lede {
  max-width: 680px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

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

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

pre {
  margin: 0;
  overflow-x: auto;
  color: #f7f1e7;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.hero-actions {
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--night);
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--hot));
  box-shadow: 0 18px 60px rgba(255, 107, 53, 0.25);
}

.button.secondary {
  color: var(--ink);
  background: rgba(246, 239, 226, 0.06);
}

.honesty-note {
  max-width: 620px;
  font-size: 0.95rem;
}

.artifact-card,
.code-panel,
.steps article,
.split-panel,
.limit-grid article,
.feature-grid article,
.cta {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(246, 239, 226, 0.09), rgba(246, 239, 226, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.artifact-card {
  position: relative;
  min-height: 570px;
  padding: 1rem;
  border-radius: 34px;
  transform: rotate(1.5deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 16, 15, 0.68);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hot);
}

.terminal-bar span:nth-child(2) { background: var(--gold); }
.terminal-bar span:nth-child(3) { background: var(--green); }
.terminal-bar strong { margin-left: auto; font-weight: 500; }

.preview-frame {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  left: 1.3rem;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 1rem;
  align-items: end;
}

.phone-shell {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.15rem;
  border: 1px solid rgba(246, 239, 226, 0.28);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(139, 216, 255, 0.2), transparent 42%),
    #1e211f;
}

.phone-card,
.phone-button {
  border-radius: 18px;
  background: rgba(246, 239, 226, 0.16);
}

.phone-card.small {
  width: 56%;
  height: 54px;
}

.phone-card.wide {
  height: 88px;
}

.phone-button {
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--hot));
}

.json-chip {
  align-self: center;
  padding: 1rem;
  border: 1px dashed rgba(139, 216, 255, 0.55);
  border-radius: 22px;
  color: var(--cyan);
  background: rgba(139, 216, 255, 0.09);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0 5rem;
}

.strip span {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(246, 239, 226, 0.045);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.section {
  padding: 84px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.feature-grid,
.limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-grid article,
.limit-grid article {
  padding: 1.1rem;
  border-radius: 24px;
  box-shadow: none;
}

.feature-grid p,
.limit-grid p,
.steps p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.code-panel {
  border-radius: 30px;
  overflow: hidden;
}

.code-panel pre,
.steps pre,
.artifact-card > pre {
  padding: 1.1rem;
  background: rgba(3, 3, 3, 0.48);
}

.code-title {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 13ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.steps article {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 28px;
  box-shadow: none;
}

.step-number {
  color: var(--hot);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.steps pre {
  margin-top: 1rem;
  border: 1px solid rgba(246, 239, 226, 0.09);
  border-radius: 18px;
  font-size: 0.72rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 2rem;
  margin-top: 70px;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 34px;
}

.split-panel h2 {
  max-width: 10ch;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(155, 229, 100, 0.12);
}

.limits h2 {
  max-width: 11ch;
}

.cta {
  margin-top: 56px;
  margin-bottom: 54px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 40px;
  text-align: center;
}

.cta h2 {
  max-width: 13ch;
  margin-inline: auto;
}

.cta p {
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.1rem;
}

.site-footer {
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 32px 0 46px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .split-panel {
    grid-template-columns: 1fr;
  }

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

  .artifact-card {
    min-height: 520px;
    transform: none;
  }
}

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

  .site-header nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .feature-grid,
  .limit-grid,
  .steps,
  .preview-frame {
    grid-template-columns: 1fr;
  }

  .artifact-card {
    min-height: 650px;
  }

  .section {
    padding: 58px 0;
  }
}

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