:root {
  --bg: #10131f;
  --bg-deep: #080b14;
  --surface: #1d1f2c;
  --surface-high: #272937;
  --surface-top: #323442;
  --text: #e1e1f4;
  --muted: #b8bbcf;
  --soft: #8d93aa;
  --line: rgba(225, 225, 244, 0.13);
  --line-strong: rgba(0, 228, 117, 0.34);
  --primary: #00e475;
  --primary-dark: #003918;
  --primary-soft: rgba(0, 228, 117, 0.12);
  --gold: #fdd400;
  --cyan: #81cfff;
  --danger: #ffb4ab;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: var(--primary);
  font-weight: 800;
  text-decoration-color: rgba(0, 228, 117, 0.58);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  left: 16px;
  position: absolute;
  top: -56px;
  z-index: 20;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: rgba(16, 19, 31, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 14px 20px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 228, 117, 0.14);
  height: 36px;
  width: 36px;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.developer-hero .hero-inner {
  min-height: 58vh;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.8fr);
  margin: 0 auto;
  max-width: 1120px;
  min-height: 76vh;
  padding: 56px 20px 48px;
}

code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  padding: 0.08em 0.35em;
}

.hero-inner > * {
  min-width: 0;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 6.2rem);
  font-weight: 950;
  margin: 0;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  margin: 0 0 20px;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  font-weight: 650;
  margin: 22px 0 28px;
  max-width: 720px;
  overflow-wrap: break-word;
}

.actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  margin-top: 24px;
}

.chip {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 12px;
}

.button {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

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

.button:hover {
  filter: brightness(1.05);
}

.phone-panel {
  background: #090c15;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 80px var(--shadow);
  padding: 14px;
  width: 100%;
}

.resource-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px var(--shadow);
  padding: 28px;
}

.resource-icon {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 228, 117, 0.14);
  display: block;
  height: 72px;
  margin-bottom: 20px;
  width: 72px;
}

.resource-panel h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 18px;
}

.resource-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.resource-list strong,
.resource-list a {
  display: block;
}

.resource-list strong {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.resource-list a {
  overflow-wrap: anywhere;
}

.phone-screen {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  color: var(--text);
  min-height: 474px;
  overflow: hidden;
  padding: 22px;
  width: 100%;
}

.screen-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.app-icon {
  border-radius: 18px;
  display: block;
  height: 64px;
  width: 64px;
}

.status-pill {
  background: var(--primary-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.screen-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  margin: 0 0 8px;
}

.amount {
  color: var(--primary);
  font-size: clamp(3rem, 7vw, 4.05rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 10px;
  max-width: 100%;
  white-space: nowrap;
}

.screen-copy {
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 22px;
  min-height: 3.1em;
  overflow-wrap: break-word;
}

.meter {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  height: 10px;
  margin: 0 0 18px;
  overflow: hidden;
}

.meter span {
  background: var(--primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 140ms linear;
  width: 62%;
}

.mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.mini-stat,
.feature,
.notice,
.policy-layout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-stat {
  padding: 13px;
}

.mini-stat strong {
  color: var(--text);
  display: block;
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.mini-stat span {
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.app-nav {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  padding-top: 14px;
}

.app-nav span {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--soft);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 8px 4px;
  text-align: center;
}

.app-nav span:first-child {
  background: var(--primary-soft);
  color: var(--primary);
}

.section {
  margin: 0 auto;
  max-width: 1120px;
  padding: 64px 20px;
}

.section.narrow {
  max-width: 920px;
}

.privacy-main {
  padding-top: 42px;
}

.policy-hero {
  margin-bottom: 18px;
}

.policy-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  margin: 0 0 14px;
}

.policy-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 650;
  margin: 0;
  max-width: 760px;
}

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

.section-head p {
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 28px;
}

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

.feature,
.notice {
  padding: 22px;
}

.feature p,
.notice p {
  color: var(--muted);
  font-weight: 620;
  margin: 0;
}

.feature h3 {
  color: var(--text);
}

.feature mark {
  background: var(--primary-soft);
  border-radius: 6px;
  color: var(--primary);
  font-weight: 950;
  padding: 1px 5px;
}

.notice {
  background: #151927;
  border-left: 5px solid var(--gold);
  margin-top: 18px;
}

.theme-rail {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 22px;
}

.theme-dot {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
}

.theme-dot.dark { background: #10131f; border-color: #00e475; }
.theme-dot.light { background: #f8fafc; }
.theme-dot.cyber { background: #020617; border-color: #22d3ee; }
.theme-dot.vault { background: #1a1a2e; border-color: #c9b037; }
.theme-dot.casino { background: #0d3b21; border-color: #fdd400; }
.theme-dot.pixel { background: #10142b; border-color: #ffc107; }
.theme-dot.gazette { background: #efe9da; border-color: #1a5e3a; }

.policy-layout {
  background: var(--surface);
  box-shadow: 0 24px 70px var(--shadow);
  padding: 34px;
  min-width: 0;
}

.policy-layout .policy-title {
  border-top: 0;
  color: var(--primary);
  font-size: 1.35rem;
  margin-top: 0;
  padding-top: 0;
}

.policy-layout h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 10px;
}

.policy-layout h2 {
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-top: 34px;
  padding-top: 28px;
}

.policy-layout h3 {
  color: var(--primary);
  margin-top: 24px;
}

.policy-layout p,
.policy-layout li {
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.policy-layout a {
  overflow-wrap: anywhere;
}

.policy-layout li + li {
  margin-top: 6px;
}

.policy-layout strong {
  color: var(--text);
}

.missing {
  background: rgba(255, 180, 171, 0.1);
  border: 1px solid rgba(255, 180, 171, 0.32);
  border-radius: 8px;
  color: var(--danger);
  padding: 14px 16px;
}

.site-footer {
  background: rgba(8, 11, 20, 0.72);
  border-top: 1px solid var(--line);
  color: var(--soft);
  margin-top: 24px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 20px 22px;
}

.footer-identity {
  display: grid;
  gap: 4px;
  max-width: 430px;
}

.footer-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 950;
}

.footer-copy,
.footer-meta {
  margin: 0;
}

.footer-copy {
  font-size: 0.9rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  text-align: center;
  text-decoration: none;
}

.footer-button:hover,
.footer-button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(225, 225, 244, 0.28);
}

.footer-button.is-emphasized {
  background: var(--primary-soft);
  border-color: var(--line-strong);
  color: var(--primary);
}

.footer-meta {
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  margin: 0 auto;
  max-width: 1120px;
  padding: 14px 20px 22px;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    max-width: 100vw;
    overflow: hidden;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .nav-links a {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
  }

  .hero-inner {
    max-width: 100vw;
    padding-top: 42px;
    width: 100vw;
  }

  .hero-inner > div {
    max-width: min(320px, calc(100vw - 40px));
    width: 100%;
  }

  .lead {
    font-size: 1rem;
    max-width: 30ch;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chip {
    text-align: center;
  }

  .phone-panel {
    border-radius: 22px;
    max-width: min(320px, calc(100vw - 40px));
    padding: 10px;
  }

  .resource-panel {
    max-width: min(320px, calc(100vw - 40px));
    padding: 22px;
    width: 100%;
  }

  .phone-screen {
    min-height: auto;
    padding: 18px;
  }

  .amount {
    font-size: clamp(2.2rem, 10.8vw, 2.75rem);
  }

  .status-pill {
    font-size: 0.72rem;
    padding: 6px 8px;
  }

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

  .app-nav {
    grid-template-columns: 1fr 1fr;
  }

  .theme-rail {
    grid-template-columns: repeat(4, 1fr);
  }

  .policy-layout {
    max-width: min(320px, calc(100vw - 40px));
    padding: 22px;
    width: 100%;
  }

  .policy-hero {
    max-width: min(320px, calc(100vw - 40px));
    width: 100%;
  }

  .policy-layout h1 {
    font-size: clamp(1.9rem, 10vw, 2.4rem);
  }

  .policy-hero h1 {
    font-size: clamp(2.15rem, 12vw, 2.8rem);
  }
}
