:root {
  --ocean-deep: #073e62;
  --ocean: #087ea4;
  --teal: #0d9aa5;
  --success: #24a63a;
  --gold: #f8be42;
  --gold-light: #ffe29a;
  --node-green: #43c756;
  --node-green-dark: #149633;
  --ink: #06263d;
  --paper: #f6f9fb;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #eaf4f8;
  background: radial-gradient(120% 90% at 50% -10%, #0f6f92 0%, var(--ocean-deep) 55%, #041e33 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 34, 55, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.2px;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(248, 190, 66, 0.45);
}

.brand .mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 600px;
  background: radial-gradient(closest-side, rgba(13, 154, 165, 0.35), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--node-green);
  box-shadow: 0 0 0 3px rgba(67, 199, 86, 0.25);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  margin: 20px 0 18px;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-light) 65%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(234, 244, 248, 0.8);
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--node-green), var(--node-green-dark));
  color: #fff;
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 26px rgba(20, 150, 51, 0.4);
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 16px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

.store-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-row {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-row div {
  min-width: 90px;
}

.stat-row .num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.stat-row .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(155deg, #0f3550, #051c2e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone .screen {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 358 / 780;
  background: var(--ocean-deep);
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone .notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 14px;
  background: #051c2e;
  z-index: 2;
}

.phone-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(248, 190, 66, 0.25), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(11, 78, 112, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: float 4.5s ease-in-out infinite;
}

.float-chip.a {
  top: 10%;
  left: -6%;
  animation-delay: 0s;
}

.float-chip.b {
  bottom: 12%;
  right: -8%;
  animation-delay: 1.2s;
}

.float-chip .coin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */

section {
  padding: 84px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.3px;
}

.section-head p {
  color: rgba(234, 244, 248, 0.72);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

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

.feature-card {
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.feature-card p {
  font-size: 13.8px;
  line-height: 1.55;
  color: rgba(234, 244, 248, 0.65);
  margin: 0;
}

.icon-teal { background: linear-gradient(135deg, rgba(13, 154, 165, 0.35), rgba(13, 154, 165, 0.12)); color: #6fe3ea; }
.icon-gold { background: linear-gradient(135deg, rgba(248, 190, 66, 0.35), rgba(248, 190, 66, 0.12)); color: var(--gold-light); }
.icon-green { background: linear-gradient(135deg, rgba(67, 199, 86, 0.35), rgba(67, 199, 86, 0.12)); color: #8bf29c; }

/* ---------- Worlds strip ---------- */

.worlds {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.worlds::-webkit-scrollbar {
  display: none;
}

.world-card {
  flex: 0 0 auto;
  width: 200px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(13, 154, 165, 0.28), rgba(7, 62, 98, 0.4));
  border: 1px solid var(--glass-border);
}

.world-card .n {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.world-card h4 {
  margin: 8px 0 6px;
  font-size: 16px;
  color: #fff;
}

.world-card p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(234, 244, 248, 0.6);
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: 28px;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(13, 154, 165, 0.35), rgba(7, 62, 98, 0.65));
  border: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0 0 12px;
  font-weight: 900;
  color: #fff;
}

.cta-band p {
  color: rgba(234, 244, 248, 0.75);
  margin: 0 0 26px;
  font-size: 15px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0 32px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Legal (privacy) ---------- */

.legal {
  padding: 56px 0 90px;
}

.legal .doc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 40px clamp(20px, 5vw, 56px);
}

.legal h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  margin: 0 0 8px;
  color: #fff;
}

.legal .updated {
  font-size: 13px;
  color: rgba(234, 244, 248, 0.55);
  margin-bottom: 34px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 34px 0 10px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(234, 244, 248, 0.82);
}

.legal ul {
  margin: 10px 0;
  padding-left: 20px;
}

.legal a.inline {
  color: var(--gold-light);
  text-decoration: underline;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 13.8px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(234, 244, 248, 0.82);
}

.legal th {
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}

.back-link:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .phone-stage {
    order: -1;
    margin-bottom: 12px;
  }
  .hero p.lead {
    max-width: 100%;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .float-chip {
    display: none;
  }
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 40px 22px;
  }
  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  /* The full-text store CTA doesn't fit next to the brand + toggle on a
     narrow nav row — it moves into the dropdown (.nav-links) instead of
     forcing the row wider than the viewport. */
  .nav-cta {
    display: none;
  }
  .nav-links .nav-cta-mobile {
    display: inline-flex;
    margin-top: 4px;
  }
}

.nav-links .nav-cta-mobile {
  display: none;
}

body.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(6, 30, 48, 0.98);
  padding: 20px 24px 26px;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
