:root {
  --page-bg: #0a141d;
  --page-bg-soft: #122232;
  --paper: #f3ecdf;
  --paper-strong: #fff8ef;
  --paper-glass: rgba(255, 248, 239, 0.08);
  --ink: #131b21;
  --ink-soft: #43505b;
  --line: rgba(255, 248, 239, 0.14);
  --line-soft: rgba(19, 27, 33, 0.12);
  --accent: #d27242;
  --accent-soft: #efb36f;
  --teal: #3eb7a2;
  --teal-soft: rgba(62, 183, 162, 0.18);
  --shadow: 0 26px 80px rgba(3, 10, 18, 0.34);
  --hero-shadow: 0 40px 120px rgba(2, 7, 12, 0.42);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at top left, rgba(227, 156, 92, 0.16), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(62, 183, 162, 0.11), transparent 24%),
    linear-gradient(180deg, #0a141d 0%, #101c28 52%, #152432 100%);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
}

.background-grid,
.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-grid {
  opacity: 0.22;
  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: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 92%);
}

.background-glow {
  filter: blur(28px);
}

.background-glow-one {
  background: radial-gradient(circle at 14% 18%, rgba(239, 179, 111, 0.18), transparent 22%);
}

.background-glow-two {
  background: radial-gradient(circle at 84% 22%, rgba(62, 183, 162, 0.2), transparent 19%);
}

.site-header,
.site-footer,
.section {
  width: min(var(--max-width), calc(100vw - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 20, 29, 0.72);
  box-shadow: 0 18px 40px rgba(2, 8, 15, 0.22);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(239, 179, 111, 0.32), rgba(210, 114, 66, 0.48)),
    rgba(255, 255, 255, 0.04);
  color: var(--paper-strong);
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.brand-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-copy small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 248, 239, 0.66);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a,
.footer-links a {
  text-decoration: none;
  color: rgba(255, 248, 239, 0.78);
  transition: color 0.2s ease;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.nav-cta {
  border: 1px solid rgba(255, 248, 239, 0.16);
  color: var(--paper-strong);
  background: rgba(255, 248, 239, 0.04);
}

.nav-cta:hover,
.button:hover,
.command-tab:hover {
  transform: translateY(-1px);
}

.section {
  padding: 72px 0;
}

.section[id] {
  scroll-margin-top: 132px;
}

.section-framed {
  padding: 60px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding-top: 54px;
}

.eyebrow,
.card-label,
.product-tag,
.panel-kicker,
.window-label {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.floating-card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.9;
}

.hero-lead,
.section-note {
  color: rgba(255, 248, 239, 0.76);
  font-size: 18px;
  line-height: 1.75;
}

.hero-lead {
  max-width: 700px;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #10161a;
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(210, 114, 66, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 248, 239, 0.16);
  color: var(--paper-strong);
  background: rgba(255, 248, 239, 0.04);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.signal-strip li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.04);
  color: rgba(255, 248, 239, 0.86);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: center;
}

.hero-halo {
  position: absolute;
  inset: 32px 22px auto;
  z-index: -1;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 179, 111, 0.18), rgba(62, 183, 162, 0.12), transparent 72%);
  filter: blur(18px);
}

.workspace-window,
.floating-card,
.feature-card,
.pipeline-step,
.product-card,
.command-panel {
  box-shadow: var(--shadow);
}

.workspace-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(243, 236, 223, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(6, 15, 22, 0.92);
  box-shadow: var(--hero-shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.28);
}

.window-body {
  display: grid;
  gap: 14px;
  padding: 22px 24px 28px;
}

.console-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 248, 239, 0.86);
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 13px;
}

.console-command {
  color: var(--accent-soft);
  justify-content: flex-start;
}

.console-key {
  color: rgba(255, 248, 239, 0.5);
}

.console-value {
  color: var(--paper-strong);
  text-align: right;
}

.meter-stack {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 248, 239, 0.84);
  font-size: 13px;
}

.meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
}

.meter-fill-reference {
  width: 100%;
  background: linear-gradient(90deg, rgba(62, 183, 162, 0.8), rgba(62, 183, 162, 1));
}

.meter-fill-translation {
  width: 100%;
  background: linear-gradient(90deg, rgba(239, 179, 111, 0.78), rgba(210, 114, 66, 1));
}

.floating-card {
  min-width: 0;
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(243, 236, 223, 0.96), rgba(255, 248, 239, 0.88)),
    rgba(255, 248, 239, 0.88);
  color: var(--ink);
}

.floating-card h2 {
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.06;
}

.floating-card p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.floating-card-summary {
  margin-right: 96px;
}

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

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.95;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.6fr);
  gap: 28px;
  align-items: end;
}

.section-note {
  margin: 0;
}

.feature-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.product-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.92);
  color: var(--ink);
}

.feature-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-card h3,
.pipeline-step h3,
.product-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-size: 28px;
  line-height: 1.05;
}

.feature-card p,
.pipeline-step p,
.product-card p {
  color: var(--ink-soft);
}

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

.pipeline-step {
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.1), rgba(255, 248, 239, 0.04));
  backdrop-filter: blur(14px);
}

.pipeline-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 179, 111, 0.8), rgba(62, 183, 162, 0));
}

.pipeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 14px;
  background: rgba(239, 179, 111, 0.12);
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

.pipeline-step h3 {
  color: var(--paper-strong);
  font-size: 24px;
}

.pipeline-step p {
  color: rgba(255, 248, 239, 0.72);
}

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

.product-card-primary {
  background:
    radial-gradient(circle at top right, rgba(62, 183, 162, 0.18), transparent 28%),
    rgba(255, 248, 239, 0.94);
}

.product-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.command-lab {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(255, 248, 239, 0.08), rgba(255, 248, 239, 0.02)),
    rgba(8, 16, 24, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.command-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.command-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 248, 239, 0.08);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.04);
  color: rgba(255, 248, 239, 0.8);
  font: inherit;
  cursor: pointer;
}

.command-tab.is-active {
  border-color: rgba(239, 179, 111, 0.4);
  background: rgba(239, 179, 111, 0.14);
  color: var(--paper-strong);
}

.command-panel-wrap {
  position: relative;
}

.command-panel {
  display: none;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.04);
}

.command-panel.is-active {
  display: block;
}

.command-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(3, 10, 18, 0.76);
  color: var(--paper-strong);
}

.command-panel p {
  margin: 16px 0 0;
  color: rgba(255, 248, 239, 0.72);
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 8px 0 48px;
  color: rgba(255, 248, 239, 0.72);
}

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

.footer-note {
  color: rgba(255, 248, 239, 0.48);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .hero h1 {
    max-width: 11ch;
  }

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

  .split-heading {
    grid-template-columns: 1fr;
  }

  .floating-card-summary {
    margin-right: 0;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-grid,
  .feature-grid,
  .pipeline-track {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .section {
    width: min(var(--max-width), calc(100vw - 24px));
  }

  .section {
    padding: 56px 0;
  }

  .section-framed {
    padding: 28px 18px;
    border-radius: 28px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(40px, 12vw, 68px);
  }

  .hero-lead,
  .section-note {
    font-size: 16px;
  }

  .window-body,
  .feature-card,
  .pipeline-step,
  .product-card,
  .command-lab {
    padding: 20px;
  }

  .command-panel pre {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .floating-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    gap: 14px;
    padding: 14px;
  }

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

  .nav-cta,
  .button,
  .command-tab {
    width: 100%;
  }

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

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 54px);
  }

  .section[id] {
    scroll-margin-top: 190px;
  }

  .console-line {
    flex-direction: column;
    align-items: flex-start;
  }
}
