:root {
  color-scheme: dark;
  --bg: #071014;
  --bg-alt: #0d171c;
  --surface: rgba(12, 23, 28, 0.74);
  --surface-strong: rgba(14, 30, 36, 0.9);
  --line: rgba(179, 212, 220, 0.18);
  --line-strong: rgba(245, 182, 96, 0.28);
  --text: #eff4f4;
  --muted: #9eb3b9;
  --teal: #6bffda;
  --cyan: #62c8ff;
  --amber: #f8ba62;
  --coral: #ff7e64;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(98, 200, 255, 0.08), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(248, 186, 98, 0.08), transparent 30%),
    linear-gradient(180deg, #061015 0%, #071014 34%, #0a1518 100%);
  color: var(--text);
}

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

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

button,
.button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: calc(var(--max-width) + 64px);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(6, 15, 19, 0.92), rgba(6, 15, 19, 0.5));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--teal), transparent 44%),
    linear-gradient(135deg, rgba(98, 200, 255, 0.9), rgba(248, 186, 98, 0.95));
  box-shadow:
    0 0 0 4px rgba(98, 200, 255, 0.06),
    0 10px 20px rgba(98, 200, 255, 0.26);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.header-action {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-primary {
  background: linear-gradient(135deg, rgba(107, 255, 218, 0.95), rgba(248, 186, 98, 0.98));
  color: #051014;
  box-shadow: 0 18px 40px rgba(248, 186, 98, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.header-action:hover,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

main {
  display: block;
}

.hero,
.signal-band,
.narrative-section,
.architecture-section,
.feature-section,
.developer-section,
.trust-section,
.cta-section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: min(92svh, 860px);
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.eyebrow,
.panel-kicker,
.band-label,
.feature-index,
.caption-label {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  line-height: 0.98;
}

.hero-summary {
  margin: 1.35rem 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.45;
  color: #d6e2e2;
}

.hero-detail {
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

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

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-signals span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dce7e7;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 28rem;
}

.hero-image {
  width: min(100%, 40rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(19rem, calc(100% - 2.5rem));
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(10, 20, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.caption-copy {
  margin: 0;
  color: #d6e3e3;
  line-height: 1.55;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: -1rem;
  padding-bottom: 5rem;
}

.signal-band > div,
.narrative-panel,
.feature,
.code-block,
.trust-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 23, 28, 0.76), rgba(9, 17, 21, 0.82));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signal-band > div {
  padding: 1.3rem 1.2rem;
}

.signal-band p:last-child,
.narrative-panel p:last-child,
.feature p:last-child,
.trust-grid article p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.section-heading p:last-child,
.developer-copy > p {
  color: var(--muted);
  line-height: 1.7;
}

.narrative-section,
.architecture-section,
.feature-section,
.developer-section,
.trust-section,
.cta-section {
  padding-top: 2rem;
  padding-bottom: 5.5rem;
}

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.narrative-panel,
.feature,
.trust-grid article {
  padding: 1.5rem;
}

.narrative-panel-accent {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(22, 33, 34, 0.92), rgba(13, 23, 28, 0.88)),
    radial-gradient(circle at top right, rgba(248, 186, 98, 0.14), transparent 36%);
}

.narrative-panel h3,
.feature h3,
.flow-list h3,
.trust-grid h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.narrative-panel p,
.feature p,
.flow-list p,
.trust-grid p,
.developer-notes p {
  color: var(--muted);
  line-height: 1.68;
}

.architecture-layout,
.developer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.architecture-visual img {
  width: 100%;
  aspect-ratio: 1280 / 900;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

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

.flow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--amber);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
}

.feature-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.developer-copy {
  display: grid;
  gap: 1.5rem;
}

.developer-notes {
  display: grid;
  gap: 1.1rem;
}

.developer-notes > div {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.developer-notes > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.code-block {
  margin: 0;
  padding: 1.4rem;
  overflow: auto;
  color: #dcf6f1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cta-section {
  padding-bottom: 6rem;
  text-align: center;
}

.cta-section .eyebrow {
  margin-bottom: 1rem;
}

.cta-section .hero-actions {
  justify-content: center;
}

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

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

@media (max-width: 980px) {
  .site-header,
  .hero,
  .signal-band,
  .narrative-grid,
  .architecture-layout,
  .feature-grid,
  .developer-layout,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    justify-content: flex-start;
    min-height: auto;
  }

  .visual-caption {
    right: auto;
    left: 1rem;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .signal-band,
  .narrative-section,
  .architecture-section,
  .feature-section,
  .developer-section,
  .trust-section,
  .cta-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 18vw, 4.4rem);
  }

  .hero-summary {
    font-size: 1.05rem;
  }

  .button,
  .header-action {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-signals span {
    width: 100%;
    text-align: center;
  }

  .flow-list li {
    grid-template-columns: 1fr;
  }

  .flow-step {
    width: 2.1rem;
    height: 2.1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
