@font-face {
  font-family: "Tektur";
  src: url("assets/fonts/Tektur-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-elevated: rgba(10, 13, 16, 0.94);
  --band: #090d11;
  --band-contrast: #0b1014;
  --surface: #0d1318;
  --surface-2: #121920;
  --line: rgba(129, 149, 161, 0.2);
  --line-strong: rgba(215, 255, 63, 0.34);
  --text: #eef2ec;
  --muted: #9eabb0;
  --accent: #d7ff3f;
  --accent-2: #69e7d6;
  --accent-3: #ffb067;
  --max-width: 1180px;
  --radius: 8px;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 177, 92, 0.04), transparent 18%),
    linear-gradient(180deg, #06080a 0%, #050608 38%, #070a0d 100%);
  color: var(--text);
  font-family: "Instrument Sans", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  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: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
}

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

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

button,
a {
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(5, 6, 8, 0.2);
  backdrop-filter: blur(0);
}

.topbar.is-scrolled {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(16px);
}

.topbar-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

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

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-kicker,
.eyebrow,
.feature-index,
.workflow-tag {
  color: var(--accent);
  font-family: "Tektur", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  overflow: clip;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.84) 42%, rgba(5, 6, 8, 0.35) 78%, rgba(5, 6, 8, 0.82) 100%);
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.08);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.12;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(92vh - 5rem);
  padding: 6.5rem 0 8.5rem;
}

.hero-copy {
  width: min(36rem, 100%);
}

.hero-copy h1,
.section-heading h2,
.two-column h2,
.access-grid h2,
.footer h2 {
  margin: 0;
  font-family: "Tektur", Arial, sans-serif;
  line-height: 0.94;
  font-weight: 500;
}

.hero-copy h1 {
  font-size: 4.9rem;
  max-width: 10ch;
}

.hero-dek {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

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

.button-primary {
  background: var(--accent);
  color: #071006;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 13, 16, 0.6);
}

.hero-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-signal-list dt {
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-signal-list dd {
  margin: 0.4rem 0 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
}

.hero-rail {
  position: relative;
  z-index: 1;
  margin-top: -3rem;
  padding-bottom: 2rem;
}

.rail-shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 12, 0.92);
  box-shadow: var(--shadow);
}

.rail-shell p {
  margin: 0;
  min-height: 4.5rem;
  padding: 1rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
  display: flex;
  align-items: center;
}

.rail-shell p:last-child {
  border-right: 0;
}

.band {
  padding: 5.5rem 0;
  background: transparent;
}

.band-contrast {
  background: linear-gradient(180deg, rgba(13, 18, 24, 0.9), rgba(7, 10, 13, 0.92));
}

.two-column,
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: start;
}

.two-column h2,
.section-heading h2,
.access-grid h2,
.footer h2 {
  font-size: 3rem;
}

.section-copy,
.section-lead {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: end;
}

.feature-grid,
.workflow-grid,
.overview-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.feature-card,
.overview-card,
.workflow-card,
.timeline li,
.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 19, 24, 0.95), rgba(9, 12, 15, 0.96));
  box-shadow: var(--shadow);
}

.feature-card,
.overview-card,
.workflow-card {
  min-height: 15rem;
  padding: 1.35rem;
}

.feature-card h3,
.overview-card h3,
.workflow-card h3,
.timeline h3 {
  margin: 0.8rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.08;
}

.feature-card p:last-child,
.overview-card p:last-child,
.workflow-card p,
.timeline p,
.faq-list p {
  color: var(--muted);
  line-height: 1.72;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

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

.workflow-tag {
  display: inline-flex;
  margin-bottom: 0.6rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline li {
  padding: 1.35rem;
}

.faq-shell {
  display: grid;
  gap: 2rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-list details {
  padding: 1rem 1.1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0.85rem 0 0;
}

.footer {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 10, 0.96);
}

.footer-shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

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

  * {
    transition: none !important;
    animation: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .feature-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 4rem;
  }
}

@media (max-width: 900px) {
  .nav,
  .section-heading,
  .two-column,
  .access-grid,
  .workflow-grid,
  .footer-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar-shell,
  .footer-shell {
    align-items: flex-start;
  }

  .hero-shell {
    min-height: auto;
    padding: 5.5rem 0 8rem;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .hero-poster {
    object-position: 72% center;
  }

  .hero-signal-list,
  .feature-grid,
  .overview-grid,
  .rail-shell {
    grid-template-columns: 1fr;
  }

  .rail-shell p {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .rail-shell p:last-child {
    border-bottom: 0;
  }
}

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

  .topbar-shell {
    min-height: 5.5rem;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-dek,
  .section-copy,
  .section-lead {
    font-size: 1rem;
  }

  .hero-signal-list {
    grid-template-columns: 1fr;
  }

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

  .button {
    justify-content: space-between;
  }

  .two-column h2,
  .section-heading h2,
  .access-grid h2,
  .footer h2 {
    font-size: 2.25rem;
  }

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