:root {
  --bg: #0b0d0f;
  --bg-alt: #111519;
  --panel: #171c21;
  --line: #2a3138;
  --text: #dbe2e8;
  --text-dim: #9ca8b3;
  --steel: #6f7c88;
  --accent: #d97c2b;
  --accent-soft: #ffad67;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #1a2128 0%, var(--bg) 50%), var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  left: -1000px;
  top: -1000px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #000;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, black 10%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent 50%);
}

.brand-block {
  display: grid;
}

.brand-name {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9f4f17);
  color: #130b06;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: clamp(4rem, 8vw, 8rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 4.3rem);
  line-height: 0.95;
  max-width: 16ch;
}

.hero-lead {
  color: var(--text-dim);
  max-width: 62ch;
  margin: 1.2rem 0 1.4rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #151a1f, #111519);
  padding: 1.1rem;
}

.panel-title {
  margin: 0 0 0.8rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero-panel li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #232a31;
}

.hero-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-panel span {
  color: var(--steel);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel b {
  font-size: 0.9rem;
}

.section {
  padding: clamp(3.1rem, 7vw, 5rem) 0;
  border-top: 1px solid #1d2329;
}

.section-contrast {
  background: linear-gradient(180deg, #0e1216, #13191e);
}

.section-head {
  max-width: 72ch;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
}

.section-head p {
  color: var(--text-dim);
  margin: 0.9rem 0 0;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0.65rem 0 0;
}

.engine-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.engine-flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
}

.step {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-soft);
}

.engine-flow p,
.doctrine-grid p,
.origin p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0.55rem 0 0;
}

.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.doctrine-grid article {
  border: 1px solid var(--line);
  padding: 1rem;
}

.origin {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 0.8rem 0 0.8rem 1.1rem;
  max-width: 72ch;
}

.gateway {
  background: linear-gradient(180deg, #181e24, #13181d);
}

.gateway-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: #0a0c0f;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.small {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 1000px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .card-grid.three,
  .doctrine-grid,
  .gateway-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gateway-inner {
    gap: 1.25rem;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel,
  .section {
    animation: rise 700ms ease both;
  }

  .hero-panel {
    animation-delay: 130ms;
  }

  .section:nth-of-type(2) {
    animation-delay: 170ms;
  }

  .section:nth-of-type(3) {
    animation-delay: 220ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
