:root {
  --bg: #06101f;
  --bg-2: #0e1a2e;
  --surface: rgba(12, 24, 42, 0.76);
  --surface-strong: rgba(17, 31, 53, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 199, 94, 0.28);
  --text: #f5f7fb;
  --text-soft: #b8c3d8;
  --text-faint: #8e9cb4;
  --navy: #09111f;
  --gold: #ffc85e;
  --gold-deep: #dba12d;
  --red: #f44f3d;
  --blue: #5fb5ff;
  --mint: #77efce;
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.3);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(95, 181, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(244, 79, 61, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 200, 94, 0.08), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, #091729 52%, #040913 100%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

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

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

.site-page {
  position: relative;
  overflow-x: hidden;
}

.page-noise,
.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
}

.page-noise {
  opacity: 0.18;
  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: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent 90%);
}

.page-glow {
  z-index: -3;
}

.page-glow-left {
  background: radial-gradient(circle at 10% 12%, rgba(95, 181, 255, 0.14), transparent 26%);
}

.page-glow-right {
  background: radial-gradient(circle at 88% 18%, rgba(244, 79, 61, 0.12), transparent 22%);
}

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

.shell-top {
  padding-top: 1rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 31, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brandmark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff0be);
  color: #1f1a12;
  font-size: 0.8rem;
  box-shadow: 0 10px 24px rgba(255, 200, 94, 0.35);
}

.topbar-links,
.topbar-actions,
.footer-links,
.legal-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-links a,
.footer-links a,
.legal-link {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.topbar-links a:hover,
.footer-links a:hover,
.legal-link:hover,
.legal-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), #ffe8aa);
  color: #23180a;
  box-shadow: 0 16px 34px rgba(255, 200, 94, 0.28);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 2.5rem;
}

.eyebrow,
.legal-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--blue);
  background: rgba(95, 181, 255, 0.11);
}

.eyebrow-gold {
  color: #1d1607;
  background: linear-gradient(135deg, var(--gold), #ffe3a1);
}

.eyebrow-red {
  color: #fff1ef;
  background: rgba(244, 79, 61, 0.18);
}

.hero-copy h1,
.section-heading h2,
.story-block h2,
.download-band h2,
.legal-sidebar h1 {
  margin: 1rem 0 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
}

.hero-body,
.section-heading p,
.story-block p,
.download-band p,
.legal-sidebar p,
.footer-copy,
.feature-card p,
.timeline-card p,
.dashboard-card strong,
.hero-metrics span,
.panel-status,
.data-strip small,
.legal-preview-body,
.legal-rich,
.about-meta-card p,
.error-text {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-body {
  max-width: 62ch;
  margin-top: 1.25rem;
  font-size: 1.06rem;
}

.hero-actions,
.download-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 220px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, border-color 180ms ease;
}

.store-button:hover {
  border-color: rgba(255, 200, 94, 0.3);
}

.store-button span:last-child {
  display: flex;
  flex-direction: column;
}

.store-button strong {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-button small {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.store-button-wide {
  width: min(320px, 100%);
}

.store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.store-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--text);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics article,
.dashboard-card,
.feature-card,
.timeline-card,
.download-band,
.legal-sidebar,
.legal-content-wrap,
.about-meta-card,
.legal-preview-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 27, 46, 0.9), rgba(9, 17, 31, 0.82));
  box-shadow: var(--shadow-md);
}

.hero-metrics article,
.dashboard-card,
.feature-card,
.timeline-card article,
.download-band,
.legal-sidebar,
.legal-content-wrap,
.about-meta-card,
.legal-preview-card {
  border-radius: var(--radius-lg);
}

.hero-metrics article {
  padding: 1.2rem;
}

.hero-metrics strong,
.feature-card h3,
.timeline-card strong,
.dashboard-card p,
.data-strip strong,
.about-meta-card strong,
.error-title {
  color: var(--text);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.4rem;
}

.hero-panel {
  position: relative;
}

.panel-screen {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, rgba(255, 200, 94, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(13, 23, 39, 0.96), rgba(6, 12, 23, 0.96));
  box-shadow: var(--shadow-lg);
}

.panel-screen-top,
.data-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-pill,
.panel-status {
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.live-pill {
  background: rgba(119, 239, 206, 0.12);
  color: var(--mint);
  font-weight: 700;
}

.panel-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.dashboard-card {
  padding: 1.2rem;
}

.dashboard-card p {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-card strong {
  font-size: 1rem;
}

.data-strip {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.data-strip div {
  min-width: 0;
}

.data-strip small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-strip strong {
  font-size: 0.95rem;
  word-break: break-word;
}

.content-section {
  padding: 3rem 0;
}

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

.section-heading h2,
.story-block h2,
.download-band h2,
.legal-sidebar h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

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

.feature-card {
  padding: 1.3rem;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0.8rem 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: stretch;
}

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

.timeline-card article {
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
}

.timeline-card span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: center;
  margin: 1rem auto 3rem;
  padding: 1.6rem;
}

.download-stack {
  justify-content: flex-end;
}

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

.footer-brand {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
}

.footer-copy {
  margin: 0.35rem 0 0;
}

.legal-page .topbar {
  margin-bottom: 1.5rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.2rem;
  padding-bottom: 2.5rem;
}

.legal-sidebar,
.legal-content-wrap {
  padding: 1.4rem;
}

.legal-nav {
  flex-direction: column;
  align-items: stretch;
  margin-top: 1.25rem;
}

.legal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-pill.status-ok {
  background: rgba(119, 239, 206, 0.14);
  color: var(--mint);
}

.status-pill.status-error {
  background: rgba(244, 79, 61, 0.14);
  color: #ffb1a8;
}

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

.legal-preview-card {
  padding: 1.2rem;
}

.legal-preview-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-preview-body {
  margin: 0.9rem 0 1.1rem;
}

.legal-preview-link {
  display: inline-flex;
  color: var(--text);
  font-weight: 700;
}

.legal-article {
  min-height: 420px;
}

.legal-rich {
  color: var(--text-soft);
}

.legal-rich h1,
.legal-rich h2,
.legal-rich h3 {
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.1;
}

.legal-rich p,
.legal-rich li,
.legal-rich blockquote {
  line-height: 1.75;
}

.legal-rich blockquote {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 16px 16px 0;
}

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

.about-meta-card {
  height: fit-content;
  padding: 1.1rem;
}

.about-meta-card small {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-meta-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
}

.about-meta-card p {
  margin: 0.4rem 0 1rem;
}

.loading-line,
.loading-card {
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.loading-line {
  height: 16px;
  margin-bottom: 1rem;
}

.loading-line.short {
  width: 45%;
}

.loading-line.medium {
  width: 72%;
}

.loading-card {
  min-height: 180px;
}

.error-card {
  padding: 1.1rem;
  border: 1px solid rgba(244, 79, 61, 0.18);
  border-radius: 22px;
  background: rgba(244, 79, 61, 0.08);
}

.error-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.error-text {
  margin: 0;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-section,
  .download-band,
  .legal-shell,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .legal-grid,
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-stack {
    justify-content: flex-start;
  }
}

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

  .topbar,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-links,
  .topbar-actions,
  .footer-links {
    flex-wrap: wrap;
  }

  .hero-grid {
    padding-top: 2.6rem;
  }

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

  .feature-grid,
  .legal-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .store-button,
  .store-button-wide {
    width: 100%;
  }
}
