:root {
  --bg: #0a0b0e;
  --bg-soft: #0e1014;
  --panel: rgba(18, 20, 25, 0.78);
  --panel-solid: #121419;
  --panel-hover: #171a20;
  --text: #f4f1ec;
  --text-soft: #b7b7bc;
  --text-muted: #797c84;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #c52c4a;
  --accent-bright: #e14a67;
  --accent-soft: rgba(197, 44, 74, 0.13);
  --accent-glow: rgba(197, 44, 74, 0.24);
  --future: #555861;
  --future-bg: rgba(255, 255, 255, 0.025);
  --green: #72d29a;
  --amber: #d3aa68;
  --shell: 1180px;
  --radius-large: 26px;
  --radius-medium: 18px;
  --radius-small: 12px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(197, 44, 74, 0.09), transparent 38rem),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

pre,
code {
  font-family:
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}

::selection {
  color: white;
  background: var(--accent);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.page-glow {
  position: fixed;
  z-index: -3;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.12;
}

.page-glow-left {
  top: 22rem;
  left: -24rem;
  background: var(--accent);
}

.page-glow-right {
  top: 70rem;
  right: -25rem;
  background: #59687f;
}

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

.section {
  padding: 108px 0;
}

.section-tight {
  padding: 12px 0 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(10, 11, 14, 0.74);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: block;
  width: 58px;
  height: 38px;
  flex: 0 0 58px;
  object-fit: cover;
  object-position: center top;
  filter:
    drop-shadow(0 6px 16px rgba(197, 44, 74, 0.22));
}

.brand-name {
  font-size: 1.13rem;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.91rem;
  font-weight: 600;
}

.nav a {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.nav-github {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text) !important;
}

.nav-github:hover {
  border-color: rgba(225, 74, 103, 0.45);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 92px;
  padding-bottom: 82px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 13% 34%,
      rgba(225, 45, 78, 0.19),
      transparent 28rem
    ),
    radial-gradient(
      ellipse at 88% 24%,
      rgba(197, 44, 74, 0.13),
      transparent 31rem
    ),
    linear-gradient(
      115deg,
      transparent 0 24%,
      rgba(225, 74, 103, 0.045) 40%,
      transparent 58%
    );
}

.hero::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: 8%;
  left: -15%;
  z-index: -1;
  height: 170px;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(225, 45, 78, 0.12),
      transparent 64%
    );
  filter: blur(24px);
  transform: rotate(-4deg);
}

.hero-layout {
  position: relative;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(500px, 1.1fr);
  gap: 70px;
  align-items: center;
}

.hero-logo-panel {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.hero-logo-panel::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(197, 44, 74, 0.15);
  filter: blur(70px);
}

.hero-logo {
  position: relative;
  display: block;
  width: min(100%, 450px);
  height: auto;
  margin: 0;
  filter:
    drop-shadow(0 28px 55px rgba(197, 44, 74, 0.24));
}

.hero-message {
  max-width: 940px;
  margin-top: 54px;
}

.hero-message h1 {
  max-width: none;
  white-space: nowrap;
}

.hero .hero-message h1 span {
  display: inline;
  margin-left: 0.12em;
}

.hero-message .hero-lead {
  max-width: 790px;
  margin-top: 25px;
}

.eyebrow,
.section-kicker {
  color: var(--accent-bright);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 18px var(--accent);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4.2rem, 8vw, 7.9rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--accent-bright);
}

.hero-lead {
  max-width: 660px;
  margin: 34px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.07rem, 1.8vw, 1.3rem);
  line-height: 1.72;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.91rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), #9d2139);
  box-shadow: 0 14px 35px rgba(197, 44, 74, 0.2);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(197, 44, 74, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.hero-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot-live {
  background: var(--green);
  box-shadow: 0 0 15px rgba(114, 210, 154, 0.4);
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
    rgba(14, 16, 20, 0.92);
  box-shadow: var(--shadow);
}

.code-window-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #33363d;
}

.window-controls span:first-child {
  background: rgba(197, 44, 74, 0.74);
}

.code-file {
  color: var(--text-muted);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.73rem;
}

.code-live {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
  color: var(--text-muted);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.code-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.code-block {
  min-height: 354px;
  margin: 0;
  padding: 30px 29px 24px;
  color: #d8d8dc;
  font-size: clamp(0.76rem, 1.18vw, 0.91rem);
  line-height: 1.83;
  white-space: pre;
  overflow: auto;
}

.code-block .kw {
  color: #e87087;
  font-weight: 700;
}

.code-block .str {
  color: #c4aa83;
}

.code-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 17px 17px;
  border-top: 1px solid var(--line);
}

.code-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.67rem;
  font-weight: 700;
}

.code-status-live {
  color: #c8e8d5;
  background: rgba(114, 210, 154, 0.055);
}

.code-status-live b {
  color: var(--green);
}

.code-status-future {
  color: #777b84;
  background: rgba(255, 255, 255, 0.015);
}

.progress-panel {
  padding: 31px 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(105deg, rgba(197, 44, 74, 0.08), transparent 32%),
    var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.progress-heading {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
}

.progress-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.progress-count {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 6px;
  align-items: baseline;
  color: var(--text-muted);
  text-align: right;
}

.progress-count strong {
  color: var(--text);
  font-size: 1.3rem;
}

.progress-count small {
  grid-column: 1 / -1;
  font-size: 0.72rem;
}

.progress-track {
  position: relative;
  height: 12px;
  margin-top: 27px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #922039, var(--accent-bright));
  box-shadow: 0 0 28px rgba(197, 44, 74, 0.4);
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-meta {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 650;
}

.progress-meta a {
  color: var(--text-muted);
}

.progress-meta a:hover {
  color: var(--text);
}

.progress-explainer {
  max-width: 780px;
  margin: 19px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 60px;
  align-items: end;
  margin-bottom: 45px;
}

.section-heading h2,
.api-copy h2,
.cta-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p,
.api-copy > p,
.cta-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.section-kicker-muted {
  color: #80838b;
}

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

.feature-card {
  position: relative;
  min-height: 315px;
  padding: 26px;
  border-radius: var(--radius-medium);
}

.active-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.active-card:hover {
  z-index: 1;
  transform: translateY(-5px);
  border-color: rgba(225, 74, 103, 0.26);
  background:
    linear-gradient(145deg, rgba(197, 44, 74, 0.08), transparent 42%),
    var(--panel-hover);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  color: var(--text-muted);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.72rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid;
  border-radius: 999px;
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.badge-live {
  border-color: rgba(114, 210, 154, 0.22);
  color: var(--green);
  background: rgba(114, 210, 154, 0.055);
}

.badge-next {
  border-color: rgba(211, 170, 104, 0.2);
  color: #a88d66;
  background: rgba(211, 170, 104, 0.035);
}

.badge-future {
  border-color: rgba(255, 255, 255, 0.075);
  color: #666972;
  background: rgba(255, 255, 255, 0.018);
}

.feature-card h3 {
  margin: 45px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.metric-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 26px;
}

.metric-row strong {
  color: var(--accent-bright);
  font-size: 1.1rem;
}

.metric-row span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.card-link {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  transition: color 160ms ease;
}

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

.pipeline-section {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.009);
}

.pipeline {
  display: grid;
  grid-template-columns:
    minmax(100px, 1fr) auto
    minmax(100px, 1fr) auto
    minmax(100px, 1fr) auto
    minmax(100px, 1fr) auto
    minmax(100px, 1fr) auto
    minmax(100px, 1fr) auto
    minmax(100px, 1fr);
  gap: 9px;
  align-items: center;
}

.pipeline-step {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pipeline-index {
  margin-bottom: 18px;
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.62rem;
}

.pipeline-step strong {
  font-size: 0.92rem;
}

.pipeline-step small {
  margin-top: 4px;
  font-size: 0.65rem;
}

.pipeline-step-live {
  border-color: rgba(197, 44, 74, 0.22);
  background: rgba(197, 44, 74, 0.055);
}

.pipeline-step-live .pipeline-index,
.pipeline-step-live small {
  color: var(--accent-bright);
}

.pipeline-step-next {
  border-color: rgba(211, 170, 104, 0.13);
  color: #a6a19a;
  background: rgba(211, 170, 104, 0.025);
}

.pipeline-step-next .pipeline-index,
.pipeline-step-next small {
  color: #8e795e;
}

.pipeline-step-future {
  border-color: rgba(255, 255, 255, 0.045);
  color: #5f626a;
  background: rgba(255, 255, 255, 0.015);
}

.pipeline-step-future .pipeline-index,
.pipeline-step-future small {
  color: #4c4f56;
}

.pipeline-arrow {
  color: #3c3f46;
  font-size: 1.15rem;
}

.pipeline-arrow-live {
  color: var(--accent);
}

.pipeline-arrow-next {
  color: #806b4f;
}

.future-section {
  background:
    linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.008), transparent);
}

.future-card {
  border: 1px solid rgba(255, 255, 255, 0.045);
  color: #6d7078;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.014), transparent 40%),
    var(--future-bg);
  filter: saturate(0.45);
}

.future-card h3 {
  color: #747780;
}

.future-card p {
  color: #5f6269;
}

.next-card {
  border-color: rgba(211, 170, 104, 0.1);
}

.future-label {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  color: #4e5158;
  font-size: 0.71rem;
  font-weight: 700;
}

.api-section {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 78px;
  align-items: center;
}

.api-copy h2 {
  margin-bottom: 25px;
}

.api-copy > p + p {
  margin-top: 15px;
}

.api-badge {
  margin-top: 25px;
}

.api-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: stretch;
}

.api-side {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.017);
}

.api-side > span {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #62656c;
  font-size: 0.68rem;
  font-weight: 750;
}

.api-side pre {
  margin: 0;
  padding: 22px 18px 25px;
  color: #777a82;
  font-size: 0.72rem;
  line-height: 1.8;
  overflow: auto;
}

.api-side-now b {
  color: #777a82;
}

.api-side-future b {
  color: #9b727b;
}

.api-transform {
  display: grid;
  place-items: center;
  color: #494c53;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
  padding-top: 15px;
}

.principle {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.principle > span {
  color: var(--accent);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.68rem;
}

.principle h3 {
  margin: 36px 0 10px;
  font-size: 1.3rem;
}

.principle p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.75;
}

.phases-section {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.008);
}

.phase-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(13, 15, 18, 0.72);
}

.phase-row {
  display: grid;
  grid-template-columns: 280px 1fr 90px;
  gap: 32px;
  align-items: center;
  min-height: 91px;
  padding: 18px 27px;
}

.phase-row + .phase-row {
  border-top: 1px solid var(--line);
}

.phase-name {
  display: grid;
  grid-template-columns: 67px 1fr;
  align-items: center;
}

.phase-name strong {
  color: var(--accent-bright);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.7rem;
}

.phase-name span {
  font-size: 0.85rem;
  font-weight: 680;
}

.phase-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.phase-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #98233c, var(--accent-bright));
  transition: width 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phase-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.phase-value b {
  font-size: 0.77rem;
}

.phase-value small {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.phase-row-muted {
  color: #676a72;
}

.phase-row-muted .phase-name strong {
  color: #62656d;
}

.phase-row-muted .phase-bar span {
  background: #555861;
}

.phase-bar-future {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 8px,
      transparent 8px 15px
    );
}

.final-cta {
  padding-top: 80px;
}

.cta-panel {
  display: flex;
  gap: 50px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 52px;
  border: 1px solid rgba(197, 44, 74, 0.18);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 0 0, rgba(197, 44, 74, 0.13), transparent 32rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.cta-panel > div:first-child {
  max-width: 670px;
}

.cta-panel h2 {
  margin-bottom: 20px;
}

.cta-actions {
  min-width: 200px;
  flex-direction: column;
}

.cta-actions .button {
  width: 100%;
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-inner > div:first-child {
  display: flex;
  gap: 13px;
  align-items: baseline;
}

.footer-inner strong {
  color: var(--text);
}

.footer-meta {
  display: flex;
  gap: 22px;
}

.footer-meta a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

@media (max-width: 1080px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-logo-panel {
    min-height: 330px;
  }

  .hero-logo {
    width: min(100%, 380px);
  }

  .code-window {
    width: min(100%, 760px);
    max-width: none;
    margin: 0 auto;
  }

  .hero-message {
    max-width: 820px;
    margin: 44px auto 0;
    text-align: center;
  }

  .hero-message .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

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

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

  .pipeline-arrow {
    display: none;
  }

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

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

  .cta-actions {
    min-width: 0;
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .section {
    padding: 76px 0;
  }

  .section-tight {
    padding-bottom: 64px;
  }

  .nav a:not(.nav-github) {
    display: none;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero-top {
    gap: 26px;
  }

  .hero-logo-panel {
    min-height: 250px;
  }

  .hero-logo {
    width: min(86vw, 320px);
  }

  .hero-message {
    margin-top: 34px;
  }

  .hero-message h1 {
    white-space: normal;
    font-size: clamp(3.25rem, 16vw, 5.4rem);
  }

  .hero .hero-message h1 span {
    display: block;
    margin-left: 0;
  }

  .hero-lead {
    margin-top: 22px;
  }

  .code-block {
    min-height: 0;
    padding: 23px 18px;
    font-size: 0.69rem;
  }

  .progress-panel {
    padding: 25px 21px;
  }

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

  .progress-count {
    text-align: left;
  }

  .progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .feature-card {
    min-height: 300px;
  }

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

  .api-comparison {
    grid-template-columns: 1fr;
  }

  .api-transform {
    transform: rotate(90deg);
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .phase-row {
    grid-template-columns: 1fr 70px;
    gap: 12px 18px;
    padding: 21px 18px;
  }

  .phase-name {
    grid-template-columns: 62px 1fr;
  }

  .phase-bar {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .phase-value {
    grid-column: 2;
    grid-row: 1;
  }

  .cta-panel {
    padding: 34px 23px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-inner,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    gap: 7px;
  }
}

@media (max-width: 470px) {
  .hero-actions {
    flex-direction: column;
  }

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

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

  .pipeline-step {
    min-height: 104px;
  }

  .code-statuses {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.button-coffee {
  border-color: rgba(255, 205, 86, 0.19);
  color: #eadfb9;
  background:
    linear-gradient(
      135deg,
      rgba(255, 205, 86, 0.075),
      rgba(255, 205, 86, 0.025)
    );
}

.button-coffee:hover {
  border-color: rgba(255, 205, 86, 0.34);
  background:
    linear-gradient(
      135deg,
      rgba(255, 205, 86, 0.12),
      rgba(255, 205, 86, 0.045)
    );
  box-shadow: 0 16px 34px rgba(255, 205, 86, 0.07);
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  background: transparent;
}

.button-quiet:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-actions-primary {
  gap: 10px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.hero-quick-links a {
  transition: color 160ms ease;
}

.hero-quick-links a:hover {
  color: var(--text);
}

.hero-quick-links span {
  color: #41444b;
}

.hero-star-count {
  color: var(--text-muted);
}

.hero-star-count strong {
  color: var(--text-soft);
}

.action-strip-section {
  padding: 6px 0 42px;
}

.action-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(
      110deg,
      rgba(197, 44, 74, 0.055),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.014);
}

.action-strip-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.action-strip-intro strong {
  max-width: 330px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.action-strip-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.action-chip {
  display: flex;
  min-height: 70px;
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.action-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 74, 103, 0.22);
  background: rgba(255, 255, 255, 0.032);
}

.action-chip-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(225, 74, 103, 0.16);
  border-radius: 9px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  font-size: 0.75rem;
}

.action-chip > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.action-chip b {
  font-size: 0.76rem;
}

.action-chip small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.62rem;
}

.contribute-section {
  padding-top: 58px;
}

.contribute-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 76px;
  padding: 45px;
  border: 1px solid rgba(197, 44, 74, 0.16);
  border-radius: var(--radius-large);
  background:
    radial-gradient(
      circle at 0 0,
      rgba(197, 44, 74, 0.11),
      transparent 31rem
    ),
    var(--panel);
}

.contribute-copy h2 {
  margin: 9px 0 22px;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contribute-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.contribute-copy .contribute-note {
  margin-top: 17px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.contribute-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contribute-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.contribute-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 74, 103, 0.27);
  background: rgba(255, 255, 255, 0.035);
}

.contribute-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(197, 44, 74, 0.2);
  border-radius: 11px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-weight: 800;
}

.contribute-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.contribute-card b {
  font-size: 0.82rem;
}

.contribute-card small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.contribute-arrow {
  color: #555861;
}

.contribute-card-star {
  border-color: rgba(197, 44, 74, 0.13);
}

.cta-star-note {
  max-width: 550px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.cta-star-note span {
  margin-right: 6px;
  color: var(--accent-bright);
}

.cta-actions-expanded {
  min-width: 225px;
}

@media (max-width: 1080px) {
  .action-strip {
    grid-template-columns: 1fr;
  }

  .contribute-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .action-strip-links {
    grid-template-columns: 1fr;
  }

  .contribute-panel {
    padding: 31px 22px;
  }

  .contribute-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 470px) {
  .hero-actions-primary {
    flex-direction: column;
  }

  .hero-actions-primary .button {
    width: 100%;
  }
}
/* LATNE PAGES V2 — AUDIENCE */

.audience-section {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.008),
      transparent
    );
}

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

.audience-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.028),
      transparent 48%
    ),
    var(--panel);
}

.audience-card-build {
  border-color: rgba(197, 44, 74, 0.18);
  background:
    linear-gradient(
      145deg,
      rgba(197, 44, 74, 0.065),
      transparent 46%
    ),
    var(--panel);
}

.audience-card-learning {
  border-color: rgba(211, 170, 104, 0.12);
}

.audience-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.audience-index {
  color: var(--text-muted);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.7rem;
}

.audience-card h3 {
  max-width: 520px;
  margin: 13px 0 17px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.audience-card p {
  max-width: 580px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.audience-card small {
  display: block;
  margin-top: auto;
  padding-top: 28px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.audience-link {
  display: block;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent-bright);
  font-size: 0.76rem;
  font-weight: 700;
}

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

.phase-row-next {
  background:
    linear-gradient(
      90deg,
      rgba(211, 170, 104, 0.055),
      transparent 42%
    );
}

.phase-row-next .phase-name strong {
  color: #c7a674;
}

.phase-row-next .phase-bar span {
  background:
    linear-gradient(
      90deg,
      #806743,
      #c7a674
    );
}

@media (max-width: 760px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 310px;
    padding: 24px;
  }

  .audience-card small,
  .audience-link {
    padding-top: 24px;
  }
}
/* LATNE LANGUAGE SWITCH */

.nav {
  margin-left: auto;
}

.language-switch {
  display: inline-flex;
  min-height: 36px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.018);
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 0.69rem;
  font-weight: 750;
}

.language-switch a {
  color: var(--text-soft);
  transition: color 160ms ease;
}

.language-switch a:hover {
  color: var(--accent-bright);
}

.language-current {
  color: var(--accent-bright);
}

.language-separator {
  color: #454850;
}

@media (max-width: 760px) {
  .header-inner {
    gap: 10px;
  }

  .language-switch {
    margin-left: 0;
  }
}

@media (max-width: 470px) {
  .brand-name {
    display: none;
  }

  .nav-github {
    padding-right: 11px;
    padding-left: 11px;
  }
}
