:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-soft: #121212;
  --panel: #151515;
  --panel-strong: #1b1b1b;
  --border: #2a2a2a;
  --border-soft: #232323;
  --text: #f5f5f5;
  --text-soft: #d4d4d4;
  --muted: #9a9a9a;
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, 0.12);
  --accent-border: rgba(255, 106, 0, 0.28);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1080px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(255, 106, 0, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

code,
pre {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-variant-ligatures: none;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  background: var(--accent);
  color: #100700;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

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

.button-small {
  min-height: 42px;
  padding: 0 16px;
}

.button-primary {
  background: var(--accent);
  color: #130900;
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.24);
}

.button-primary:hover {
  box-shadow: 0 14px 36px rgba(255, 106, 0, 0.3);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  padding: 76px 0 36px;
}

.hero-wrap,
.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.page-hero {
  padding: 72px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.3rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0;
  color: var(--text-soft);
}

.hero-copy,
.page-copy {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.hero-terminal,
.code-card,
.card,
.tabs-shell,
.tab-panel,
.mini-card,
.bullet-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-terminal,
.card,
.tabs-shell,
.tab-panel {
  border-radius: var(--radius-xl);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px 0;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #303030;
}

.terminal-bar span:first-child {
  background: var(--accent);
}

pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #f7f7f7;
  font-size: 0.95rem;
  line-height: 1.75;
}

.code-dim {
  color: #8a8a8a;
}

.code-remove {
  color: #ff9d74;
}

.code-add {
  color: #ffcfad;
}

.section-heading {
  max-width: 660px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  text-align: left;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.text-link:hover {
  color: #ff8b3d;
}

.card-grid,
.split-code,
.mini-grid,
.contact-grid,
.stack-grid,
.bullet-grid {
  display: grid;
  gap: 18px;
}

.card-grid-three,
.mini-grid,
.bullet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-two,
.contact-grid,
.split-code {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.content-card,
.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.principle-card,
.rule-card,
.contact-card,
.content-card {
  display: grid;
  gap: 10px;
}

.card:hover,
.mini-card:hover,
.bullet-card:hover,
.tab-button:hover {
  border-color: var(--accent-border);
}

.example-stack {
  display: grid;
  gap: 20px;
}

.code-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.code-card-head,
.tab-panel-head,
.content-card-head,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.code-label,
.mini-label,
.rule-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-card pre,
.command-block pre {
  margin-top: 10px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #101010;
  border: 1px solid #232323;
}

.split-code > div,
.command-block {
  min-width: 0;
}

.tabs-shell {
  padding: 18px;
}

.tab-list {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.tab-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #130900;
}

.tab-panel {
  padding: 26px;
}

.tab-panel:not(.is-active) {
  display: none;
}

.tab-copy {
  max-width: 640px;
  margin: 12px 0 20px;
}

.mini-card,
.bullet-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.site-footer {
  padding: 26px 0 38px;
}

.footer-row {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-row p {
  color: var(--text);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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

@media (max-width: 920px) {
  .nav-row,
  .section-heading-row,
  .code-card-head,
  .tab-panel-head,
  .content-card-head,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-row {
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .card-grid-three,
  .card-grid-two,
  .contact-grid,
  .split-code,
  .mini-grid,
  .bullet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(1080px, calc(100vw - 24px));
  }

  .hero,
  .page-hero {
    padding-top: 56px;
  }

  .section {
    padding: 34px 0;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav a {
    padding: 9px 12px;
  }

  .card,
  .code-card,
  .tab-panel,
  .tabs-shell {
    padding: 18px;
  }

  .tab-list {
    flex-wrap: wrap;
  }
}
