:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(15, 23, 42, 0.92);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --surface: rgba(15, 23, 42, 0.72);
  --shadow: 0 24px 60px rgba(2, 8, 23, 0.35);
  --shell-width: 560px;
  --shell-width-wide: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.2), transparent 35%),
    linear-gradient(180deg, #020617 0%, #08111f 100%);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a {
  color: var(--accent);
}

.trust-shell {
  min-height: 100vh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--panel-border);
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(var(--shell-width), calc(100% - 20px));
  margin: 0 auto;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(2, 6, 23, 0.88);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 0 10px;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav--utility {
  gap: 8px;
}

.site-nav--footer {
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.5);
}

.site-nav a,
.brand-mark {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.brand-mark,
.site-nav a:hover {
  color: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav--utility a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav--footer a {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.site-nav--footer a[aria-current="page"],
.site-nav--footer a:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

.page-shell {
  padding: 14px 0 0;
}

.page-shell--app {
  padding-top: 10px;
}

.hero-card,
.info-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
  margin-bottom: 16px;
}

.hero-card h1,
.info-card h2 {
  margin: 0 0 12px;
  line-height: 1.1;
}

.hero-card h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.hero-copy,
.info-card p,
.info-card li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid--two {
  grid-template-columns: 1fr;
}

.grid--three {
  grid-template-columns: 1fr;
}

.stack {
  display: grid;
  gap: 24px;
}

.info-card {
  padding: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

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

.button--secondary {
  background: var(--accent-soft);
  color: var(--text);
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.app-preview {
  margin-bottom: 24px;
}

#root {
  margin-top: 0;
}

.no-script-message {
  width: min(var(--shell-width), calc(100% - 20px));
  margin: 16px auto 32px;
  color: var(--muted);
}

@media (min-width: 860px) {
  .site-header__inner,
  .site-footer__inner,
  .page-shell,
  .no-script-message {
    width: min(var(--shell-width-wide), calc(100% - 32px));
  }

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

@media (min-width: 1100px) {
  .grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .site-header__inner,
  .site-footer__inner {
    padding: 10px 0;
  }

  .site-nav--utility a,
  .brand-mark {
    min-height: 40px;
  }

  .site-nav--footer {
    gap: 6px;
    padding: 7px;
  }

  .site-nav--footer a {
    padding: 10px 4px;
    font-size: 0.68rem;
  }
}
