:root {
  --bg: #0b0b0c;
  --bg-soft: #141416;
  --paper: #f3eee4;
  --muted: #8a857c;
  --rule: rgba(243, 238, 228, 0.12);
  --ember: #e8a35a;
  --ember-deep: #c97a2a;
  --ember-bright: #ffce6b;
  --cold: #86d7ff;
  --social: #7ddfbd;
  --max: 1440px;
}

@font-face {
  font-family: "Inferno Orbitron";
  src: url("./assets/fonts/Orbitron-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: 0;
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-nav.is-elevated {
  background: rgba(11, 11, 12, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand,
.nav-links,
.cta-row,
.product-meta,
.site-footer .footer-grid div {
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-est {
  color: var(--muted);
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  color: var(--muted);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ember);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-action {
  padding: 10px 22px;
  border: 1px solid var(--paper);
  font-size: 13px;
}

.nav-reserve {
  min-height: 1px;
}

.menu-toggle {
  display: none;
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu {
  position: sticky;
  top: 82px;
  z-index: 19;
  display: none;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 56px) 22px;
  border-bottom: 1px solid var(--rule);
  background: rgba(11, 11, 12, 0.96);
  backdrop-filter: blur(14px);
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  color: var(--paper);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 56px) 96px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.ember-glow {
  position: absolute;
  top: -32%;
  right: -18%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 122, 42, 0.24) 0%, transparent 62%);
}

.eyebrow,
.product-domain,
.product-index,
.product-meta,
.facts dt,
.memo,
.legal {
  font: 500 11px/1.35 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.product-domain,
.facts dt,
.memo,
.legal {
  color: var(--muted);
}

.hero h1,
.section-heading h2,
.principle-argument h2,
.standard h2,
.site-footer h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.hero h1 {
  position: relative;
  max-width: 11ch;
  margin-top: 0;
  font-size: clamp(72px, 11.5vw, 152px);
  line-height: 0.9;
  text-wrap: balance;
}

.hero h1 span,
.section h2 span,
.site-footer h2 span {
  display: block;
  color: var(--ember);
  font-style: italic;
}

.hero-lower {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-top: clamp(44px, 6vw, 72px);
}

.hero-lower p,
.section-heading p,
.product-card p,
.argument-lede,
.argument-grid p,
.standard-grid p,
.site-footer p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
}

.hero-lower p {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.cta-row {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--rule);
  font-size: 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--paper);
  color: var(--bg);
  border-color: var(--paper);
}

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

.button.secondary:hover {
  border-color: var(--ember);
}

.metrics {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0 0 32px;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.metrics div {
  min-width: 0;
}

.metrics dt {
  color: var(--paper);
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.platform-icons {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
}

.platform-icons img {
  width: clamp(28px, 3vw, 42px);
  height: clamp(28px, 3vw, 42px);
  opacity: 0.96;
}

.platform-icons span {
  color: var(--ember);
  font: 300 clamp(18px, 1.8vw, 26px)/1 "Cormorant Garamond", Georgia, serif;
  opacity: 0.78;
}

.platform-icons img[src*="linux"] {
  width: clamp(31px, 3.4vw, 48px);
  height: clamp(31px, 3.4vw, 48px);
}

.metrics dd {
  margin: 14px 0 0;
  color: var(--muted);
  font: 500 10px/1.35 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.platform-metric {
  justify-self: start;
}

.section {
  padding: clamp(84px, 9vw, 128px) clamp(20px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section h2,
.site-footer h2 {
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.98;
}

.section-heading p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.product-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.product-index,
.product-domain {
  color: var(--ember);
}

.product-card h3 {
  margin: 0;
  font-size: clamp(56px, 6.2vw, 88px);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.product-tag {
  max-width: 24ch;
  margin: 16px 0 0;
  color: var(--ember) !important;
  font-size: 24px;
  font-style: italic;
  line-height: 1.25;
}

.product-card p:not(.product-domain, .product-tag) {
  max-width: 56ch;
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.product-link,
.back-link {
  display: inline-flex;
  width: fit-content;
  color: var(--ember);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.product-link {
  margin-top: 28px;
}

.product-link:hover,
.back-link:hover {
  color: var(--ember-bright);
  transform: translateX(2px);
}

.visual-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: flex-end;
  min-height: 260px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, var(--bg-soft) 0 14px, var(--bg) 14px 28px);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(201, 122, 42, 0.28), transparent 56%);
}

.coldstream-panel::before {
  background: radial-gradient(ellipse at 70% 30%, rgba(134, 215, 255, 0.22), transparent 56%);
}

.sovereign-panel::before {
  background: radial-gradient(ellipse at 70% 30%, rgba(125, 223, 189, 0.2), transparent 56%);
}

.visual-panel span {
  position: relative;
  color: var(--muted);
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-logo {
  position: relative;
  width: min(76%, 260px);
  margin: auto auto 38px;
}

.inferno-logo {
  filter: drop-shadow(0 18px 42px rgba(232, 163, 90, 0.18));
}

.product-meta {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.product-meta span:first-child {
  color: var(--ember);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 12px;
}

.inferno-wordmark {
  color: #ff6600;
  font-family: "Inferno Orbitron", "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.12em;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 102, 0, 0.32);
}

.principle-argument {
  border-top: 1px solid var(--rule);
  background:
    radial-gradient(circle at 18% 12%, rgba(134, 215, 255, 0.08), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.principle-argument > .eyebrow,
.principle-argument > h2 {
  max-width: 980px;
}

.argument-lede {
  max-width: 780px;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.48;
}

.argument-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 72px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.argument-grid article {
  min-height: 340px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--bg);
}

.argument-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--cold);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
}

.argument-grid h3 {
  margin: 0;
  color: var(--ember);
  font-size: clamp(28px, 2.8vw, 42px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.argument-grid p {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.standard {
  background: var(--bg-soft);
}

.standard > .eyebrow,
.standard > h2 {
  max-width: 900px;
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--rule);
}

.standard-grid article {
  padding: 40px 32px 0;
  border-right: 1px solid var(--rule);
}

.standard-grid article:first-child {
  padding-left: 0;
}

.standard-grid article:last-child {
  border-right: 0;
}

.standard-grid .standard-number,
.standard-grid h3 {
  display: inline;
  vertical-align: baseline;
}

.standard-grid .standard-number {
  margin-right: 10px;
  color: var(--ember);
  font-size: 34px;
  line-height: 1;
  font-style: italic;
}

.standard-grid .standard-number::after {
  content: "·";
  margin-left: 10px;
  color: var(--muted);
  font-size: 20px;
  font-style: normal;
}

.standard-grid h3 {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.standard-grid p {
  max-width: 34ch;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(48px, 7vw, 96px);
}

blockquote {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.22;
  font-weight: 300;
  letter-spacing: -0.018em;
}

.memo {
  margin-top: 32px;
}

.facts {
  margin: 0;
  padding-left: 40px;
  border-left: 1px solid var(--rule);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dd {
  margin: 0;
  text-align: right;
  font-size: 17px;
}

.availability-strip {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: clamp(44px, 6vw, 88px);
  justify-content: center;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 56px) clamp(84px, 9vw, 128px);
  background: var(--bg);
}

.availability-strip h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.availability-strip p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--muted);
  font: 500 10px/1.35 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  padding: 100px clamp(20px, 4vw, 56px) 76px;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
}

.site-footer > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.site-footer h2 {
  max-width: 12ch;
  font-size: clamp(48px, 6vw, 78px);
}

.site-footer p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
}

.site-footer .cta-row {
  justify-content: flex-start;
}

.site-footer .button {
  min-height: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.footer-grid div {
  flex-direction: column;
  gap: 10px;
}

.footer-contact {
  align-items: center;
}

.footer-contact h3 {
  width: 100%;
  text-align: center;
}

.footer-grid h3 {
  margin: 0 0 8px;
  color: var(--ember);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a {
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
}

.footer-grid .footer-contact-pill {
  align-self: center;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--paper);
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.site-footer .legal {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: max-content;
  max-width: none;
  margin: 0;
  color: rgba(243, 238, 228, 0.34);
  font: 500 8px/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 1;
}

.detail-page {
  background:
    radial-gradient(circle at 86% 10%, rgba(201, 122, 42, 0.12), transparent 28%),
    var(--bg);
}

.detail-hero {
  min-height: calc(78svh - 82px);
  padding: clamp(64px, 8vw, 118px) clamp(20px, 4vw, 56px) 80px;
  border-bottom: 1px solid var(--rule);
}

.detail-hero .eyebrow,
.detail-hero .back-link {
  margin: 0 0 28px;
}

.detail-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.detail-hero h1 span {
  display: block;
  color: var(--ember);
  font-style: italic;
}

.detail-hero > p {
  max-width: 760px;
  margin: 44px 0 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.5;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: clamp(84px, 9vw, 128px) clamp(20px, 4vw, 56px);
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}

.detail-panel {
  min-height: 360px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--bg);
}

.detail-panel span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--cold);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
}

.detail-panel h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.detail-panel p {
  margin: 26px 0 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
}

.detail-statement {
  padding: clamp(84px, 9vw, 128px) clamp(20px, 4vw, 56px);
}

.detail-statement blockquote {
  max-width: 980px;
}

.compact-footer {
  padding-top: 64px;
}

.compact-footer .footer-grid {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .nav-reserve {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-lower,
  .section-heading,
  .architecture,
  .site-footer > div:first-child {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-index {
    margin-bottom: -18px;
  }

  .argument-grid,
  .standard-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .argument-grid article,
  .detail-panel {
    min-height: auto;
  }

  .standard-grid article,
  .standard-grid article:first-child {
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .facts {
    padding-left: 24px;
    border-left: 1px solid var(--rule);
  }
}

@media (max-width: 620px) {
  .site-nav {
    gap: 16px;
    padding-block: 18px;
  }

  .nav-action {
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: start;
  }

  .facts {
    padding-left: 28px;
  }

  .metrics dd {
    text-align: left;
  }

  .platform-metric {
    justify-self: center;
  }

  .availability-strip {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .availability-strip p {
    margin-inline: auto;
  }

  .availability-strip .platform-icons {
    max-width: 100%;
  }

  .hero .cta-row,
  .hero .button {
    width: 100%;
  }

  .site-footer .cta-row {
    width: auto;
    justify-content: flex-start;
  }

  .site-footer .button {
    width: auto;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

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