:root {
  --ink-950: #0d1624;
  --ink-900: #121d2d;
  --ink-850: #1a2536;
  --ink-800: #223247;
  --surface-100: #edf1f6;
  --surface-200: #d4dce6;
  --surface-300: #aeb9c8;
  --text-strong: #f4f7fb;
  --text-default: #d7dee8;
  --text-muted: #9eabbb;
  --text-ink: #132030;
  --accent: #e8731a;
  --accent-strong: #ff8d31;
  --accent-deep: #bb5c18;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(232, 115, 26, 0.26);
  --shadow-soft: 0 16px 40px rgba(4, 10, 18, 0.18);
  --shadow-card: 0 24px 60px rgba(4, 10, 18, 0.24);
  --radius-sm: 0.85rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;
  --shell: min(1220px, calc(100vw - 2rem));
  --transition: 260ms cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-default);
  background:
    radial-gradient(circle at top, rgba(232, 115, 26, 0.12), transparent 30%),
    linear-gradient(180deg, #0a1320 0%, #111d2d 45%, #131f30 100%);
  min-height: 100dvh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-strong);
  font-weight: 700;
  transition: top var(--transition);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(10, 19, 32, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img:first-child {
  filter: drop-shadow(0 8px 18px rgba(232, 115, 26, 0.15));
}

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

.site-nav__links {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.site-nav__links a,
.mobile-menu__links a:not(.button) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a.is-active,
.mobile-menu__links a:hover,
.mobile-menu__links a.is-active {
  color: var(--text-strong);
}

.site-nav__cta {
  display: none;
}

.menu-button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-button__line {
  width: 1rem;
  height: 1px;
  margin: 0 auto;
  background: var(--text-strong);
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 19, 32, 0.98);
}

.mobile-menu__inner {
  padding: 1.5rem 0 2rem;
}

.mobile-menu__links {
  display: grid;
  gap: 1rem;
}

.page-hero,
.home-hero {
  position: relative;
  overflow: clip;
}

.home-hero {
  padding: 4.75rem 0 4rem;
}

.home-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.03), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(232, 115, 26, 0.15), transparent 32%);
  pointer-events: none;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero--404 {
  min-height: calc(100dvh - 10rem);
  display: grid;
  align-items: center;
}

.home-hero__grid,
.page-hero__inner,
.split-panel,
.matrix-grid,
.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.home-hero__copy,
.page-hero__copy {
  position: relative;
  z-index: 1;
}

.hero-title,
.page-title {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  text-wrap: balance;
}

.page-title {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
}

.lede,
.section-intro,
.card p,
.stack-card p,
.panel p,
.timeline__content p,
.hero-panel__item p,
.closing-panel h2 + .button-row,
.legal-block p {
  color: var(--text-default);
  line-height: 1.7;
}

.lede {
  max-width: 62ch;
  margin-top: 1.4rem;
  font-size: 1.06rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--accent);
  color: var(--text-strong);
  box-shadow: 0 14px 28px rgba(232, 115, 26, 0.18);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.home-hero__visual {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-panel,
.card,
.stack-card,
.panel,
.matrix-panel,
.closing-panel,
.timeline__item,
.sequence-card {
  position: relative;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(18, 29, 45, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-panel::after,
.card::after,
.stack-card::after,
.panel::after,
.matrix-panel::after,
.closing-panel::after,
.timeline__item::after,
.sequence-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-panel {
  z-index: 1;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.hero-panel__eyebrow,
.hero-panel__label,
.sequence-card__step,
.timeline__marker,
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel__eyebrow,
.sequence-card__step,
.timeline__marker {
  color: var(--accent);
}

.hero-panel__stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-panel__item {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel__label {
  margin-bottom: 0.45rem;
  color: var(--surface-300);
}

.hero-panel__tags,
.chip-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-panel__tags {
  margin-top: 1.2rem;
}

.hero-panel__tags span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-default);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}

.hero-device-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.hero-device-frame img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.6) contrast(1.06);
}

.section {
  padding: 4rem 0;
}

.section--surface {
  background: rgba(237, 241, 246, 0.02);
}

.section--surface-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(11, 18, 29, 0.06));
}

.section--ink {
  background: linear-gradient(180deg, rgba(7, 13, 22, 0.48), rgba(7, 13, 22, 0.2));
}

.section--closing {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.section-header {
  max-width: 48rem;
  margin-bottom: 1.75rem;
}

.section-header h2,
.panel h2,
.matrix-panel h2,
.closing-panel h2,
.legal-block h2 {
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-intro {
  margin-top: 0.9rem;
  max-width: 56ch;
}

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

.card,
.stack-card,
.sequence-card,
.timeline__item,
.panel,
.matrix-panel,
.closing-panel {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.card h3,
.stack-card h3,
.sequence-card h3,
.timeline__content h3 {
  color: var(--text-strong);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card p,
.stack-card p,
.sequence-card p,
.timeline__content p {
  margin-top: 0.75rem;
}

.bullet-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-default);
  line-height: 1.65;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
}

.chip-field {
  margin-top: 1.5rem;
}

.chip-field--tight {
  margin-top: 1rem;
}

.sequence-card__step {
  margin-bottom: 0.85rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline__item {
  display: grid;
  gap: 1rem;
}

.timeline__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-strong);
  background: rgba(232, 115, 26, 0.08);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 700;
  list-style: none;
}

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

.faq-list p {
  margin-top: 0.7rem;
}

.closing-panel {
  padding: 2rem;
}

.closing-panel h2 {
  max-width: 18ch;
  margin-top: 0.35rem;
}

.panel--contact h2 a {
  color: var(--text-strong);
}

.legal-stack {
  display: grid;
  gap: 1.2rem;
}

.legal-block {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.legal-block p {
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 13, 22, 0.42);
}

.site-footer__grid {
  padding: 2.5rem 0;
}

.site-footer__brand p {
  max-width: 28rem;
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-email {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--text-strong);
  font-weight: 700;
}

.footer-heading {
  margin-bottom: 1rem;
  color: var(--accent);
}

.site-footer__nav ul {
  display: grid;
  gap: 0.75rem;
}

.site-footer__nav a {
  color: var(--text-default);
  transition: color var(--transition);
}

.site-footer__nav a:hover,
.footer-email:hover {
  color: var(--accent-strong);
}

.site-footer__bottom {
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__bottom p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

.reveal-delay-3 {
  transition-delay: 240ms;
}

.reveal-delay-4 {
  transition-delay: 320ms;
}

.reveal-delay-5 {
  transition-delay: 400ms;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.8fr 1fr 1fr;
  }

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

  .timeline__item {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

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

@media (min-width: 980px) {
  .site-nav__links,
  .site-nav__cta {
    display: inline-flex;
  }

  .menu-button,
  .mobile-menu {
    display: none;
  }

  .home-hero {
    padding: 6.5rem 0 5.5rem;
  }

  .page-hero {
    padding: 5rem 0 2.75rem;
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: end;
    gap: 2rem;
  }

  .page-hero__inner {
    grid-template-columns: minmax(0, 0.9fr);
  }

  .section {
    padding: 5.5rem 0;
  }

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

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

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

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

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

  .timeline {
    gap: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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