:root {
  --bg-top: #091224;
  --bg-bottom: #0f172a;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --text-dark: #0f172a;
  --muted: #94a3b8;
  --muted-dark: #475569;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --accent-strong: #1d4ed8;
  --line: rgba(255, 255, 255, 0.08);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --card-shadow: 0 24px 60px rgba(2, 8, 23, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(37, 99, 235, 0.16), transparent 24%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

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

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

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

button {
  cursor: pointer;
}

.ambient-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb,
.ambient-grid {
  position: absolute;
}

.ambient-orb {
  border-radius: 50%;
  filter: blur(10px);
}

.ambient-orb-one {
  top: 100px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
}

.ambient-orb-two {
  right: -80px;
  bottom: 120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 70%);
}

.ambient-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 80%);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header,
.hero,
.section,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding-top: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(236, 242, 255, 0.14), rgba(191, 219, 254, 0.08)),
    rgba(30, 41, 59, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #eff6ff, #bfdbfe);
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 11px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link-active {
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
}

.hero,
.page-hero {
  padding: 54px 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 42px;
  align-items: center;
}

.page-hero {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
  color: #93c5fd;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

h3,
.light-heading {
  font-size: 1.18rem;
  color: var(--text-dark);
}

.hero-text,
.page-hero p,
.section-heading p,
.feature-card p,
.compare-card li,
.timeline-card p,
.process-card p,
.stack-card p,
.principle-card p,
.proof-copy p,
.proof-list li,
.cta-band p,
.panel-card p,
.value-card p,
.stat-card p,
.detail-card p,
.spec-card p,
.savings-card p,
.demo-list li,
.record-summary p,
.pricing-table td,
.pricing-table th,
.mini-list li {
  line-height: 1.7;
  font-size: 1.01rem;
}

.hero-text {
  color: #dbeafe;
  max-width: 46rem;
  margin: 20px 0 26px;
}

.hero-actions,
.cta-actions,
.action-row,
.chip-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.26);
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(191, 219, 254, 0.22);
  box-shadow: none;
}

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

.hero-points li,
.badge,
.chip-button,
.token {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  font-weight: 600;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.chip-button {
  background: rgba(255, 255, 255, 0.05);
  color: #dbeafe;
}

.chip-button-active {
  background: rgba(37, 99, 235, 0.24);
  color: #ffffff;
}

.badge {
  background: rgba(37, 99, 235, 0.14);
  color: #dbeafe;
}

.token {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  font-size: 0.92rem;
  padding: 8px 12px;
}

.hero-visual,
.browser-frame {
  border-radius: var(--radius-xl);
}

.browser-frame {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--panel-border);
  box-shadow: var(--card-shadow);
}

.browser-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.section {
  padding: 44px 0 28px;
}

.section-contrast {
  margin-top: 24px;
  padding: 36px;
  border: 1px solid rgba(191, 219, 254, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.section-heading {
  max-width: 760px;
}

.section-heading p {
  margin: 18px 0 0;
  color: #cbd5e1;
}

.stats-grid,
.interactive-grid,
.value-grid,
.walkthrough-grid,
.spec-grid,
.savings-grid,
.proof-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.interactive-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: start;
}

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

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

.detail-card-wide {
  grid-column: 1 / -1;
}

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

.proof-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.stat-card,
.panel-card,
.value-card,
.detail-card,
.spec-card,
.savings-card,
.proof-copy {
  background: var(--panel);
  color: var(--text-dark);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.stat-card,
.panel-card,
.value-card,
.detail-card,
.spec-card,
.savings-card,
.proof-copy {
  padding: 24px;
}

.panel-card {
  background: var(--panel-strong);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.stat-label,
.spec-kicker {
  display: block;
  color: var(--muted-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.stat-value,
.spec-card strong,
.savings-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--text-dark);
}

.stat-card p,
.value-card p,
.detail-card p,
.spec-card p,
.savings-card p,
.record-summary p,
.proof-copy p {
  margin: 12px 0 0;
  color: var(--muted-dark);
}

.demo-screen,
.record-shell,
.pricing-box,
.data-box,
.storage-box,
.verify-box {
  display: grid;
  gap: 16px;
}

.demo-box,
.code-panel,
.mini-panel,
.pricing-table-wrap,
.storage-table-wrap,
.memory-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #eff6ff;
}

.demo-box,
.mini-panel,
.pricing-table-wrap,
.storage-table-wrap,
.memory-card {
  padding: 18px;
}

.code-panel {
  margin: 0;
  padding: 18px;
  overflow: auto;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #0f172a;
  white-space: pre-wrap;
}

.mini-panel h4,
.demo-box h4 {
  margin: 0 0 12px;
  color: var(--text-dark);
}

.demo-list,
.mini-list,
.proof-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-dark);
}

.mini-list li + li,
.demo-list li + li,
.proof-list li + li {
  margin-top: 8px;
}

.status-grid,
.info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-dark);
}

.status-chip strong {
  font-size: 1.1rem;
}

.issue-list {
  display: grid;
  gap: 12px;
}

.issue-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--accent);
  background: #ffffff;
}

.issue-card strong,
.storage-name {
  color: var(--text-dark);
}

.issue-blocking {
  border-left-color: var(--danger);
}

.issue-warning {
  border-left-color: var(--warning);
}

.issue-info {
  border-left-color: var(--accent);
}

.severity-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.severity-blocking {
  color: var(--danger);
}

.severity-warning {
  color: var(--warning);
}

.severity-info {
  color: var(--accent-strong);
}

.action-row {
  margin-top: 18px;
}

.record-summary {
  display: grid;
  gap: 10px;
}

.memory-grid {
  display: grid;
  gap: 14px;
}

.memory-card h4 {
  margin: 0 0 10px;
  color: var(--text-dark);
}

.memory-card p {
  margin: 0;
  color: var(--muted-dark);
}

.memory-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-dark);
}

.memory-card li + li {
  margin-top: 8px;
}

.record-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.record-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.walkthrough-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.step-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.step-button {
  text-align: left;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.56);
  color: #dbeafe;
  font-weight: 700;
}

.step-button-active {
  background: rgba(37, 99, 235, 0.28);
  color: #ffffff;
  border-color: rgba(147, 197, 253, 0.42);
}

.walkthrough-panel {
  min-height: 640px;
}

.walkthrough-title {
  color: var(--text-dark);
}

.walkthrough-copy {
  margin: 0 0 20px;
  color: var(--muted-dark);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-dark);
}

.pricing-table th,
.pricing-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  text-align: right;
}

.pricing-table tr:last-child td,
.pricing-table tr:last-child th {
  border-bottom: 0;
}

.pricing-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.pricing-total strong {
  font-size: 1.65rem;
  color: var(--text-dark);
}

.storage-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-dark);
}

.storage-table th,
.storage-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: top;
}

.storage-table th {
  background: rgba(255, 255, 255, 0.66);
}

.storage-table tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.82rem;
}

.pill-muted {
  background: rgba(148, 163, 184, 0.16);
  color: #334155;
}

.pill-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.pill-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.pill-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 48px auto 72px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.76)),
    rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(191, 219, 254, 0.16);
}

.cta-band p {
  margin: 12px 0 0;
  color: #dbeafe;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.38);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .interactive-grid,
  .value-grid,
  .proof-grid,
  .walkthrough-layout,
  .stats-grid,
  .savings-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .section,
  .page-hero {
    width: min(100% - 20px, 1180px);
  }

  .site-nav {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section-contrast,
  .cta-band {
    padding: 22px;
  }

  .walkthrough-grid,
  .status-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

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