:root {
  --bg: #0d0d0f;
  --bg-2: #16161a;
  --text: #f0ede8;
  --muted: #b6b6c4;
  --accent: #c8f55a;
  --gold: #ffd166;
  --border: #2a2a35;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(200, 245, 90, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 40%, rgba(255, 209, 102, 0.06), transparent 50%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-mark img {
  display: block;
  height: 40px;
  width: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(22, 22, 26, 0.8);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #0d0d0f;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font: 700 14px/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #0d0d0f !important;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  min-width: min(100%, 320px);
}

.urgency {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.16), rgba(200, 245, 90, 0.14));
  border-bottom: 1px solid rgba(255, 209, 102, 0.35);
  text-align: center;
}

.urgency p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 52ch;
}

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

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 245, 90, 0.7);
  animation: pulse 1.6s ease infinite;
  flex-shrink: 0;
}

.hero {
  position: relative;
  padding: 28px 22px 48px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px 40px;
  align-items: center;
  min-height: auto;
}

.hero-split::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 245, 90, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  animation: rise 0.7s ease both;
}

.hero-preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: rise 0.85s ease both;
}

.hero-phone {
  width: min(100%, 280px);
  min-height: 0;
}

.ph-photo-sm {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}

.hero-preview-cap {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-platform {
  margin: 0 0 14px;
  color: var(--muted);
  font: 500 15px/1.35 var(--font-body);
  max-width: 36ch;
}

.hero h1,
.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.28em;
  row-gap: 0;
  max-width: 14ch;
}

.hero-title-more {
  white-space: nowrap;
}

.lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.stack {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 42ch;
}

.stack li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(22, 22, 26, 0.65);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.stack li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
}

.stack strong {
  color: var(--accent);
  font-weight: 800;
}

.code-loading {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.code-card {
  margin: 0 0 20px;
  padding: 18px 16px;
  max-width: 42ch;
  border: 1px solid rgba(200, 245, 90, 0.35);
  border-radius: 16px;
  background: rgba(22, 22, 26, 0.85);
  animation: rise 0.7s ease both;
}

.code-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.code-value {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  line-height: 1.1;
}

.code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
}

.code-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.code-meta strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.code-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.code-full {
  margin: 0 0 16px;
  padding: 12px 14px;
  max-width: 42ch;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(22, 22, 26, 0.7);
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

#founding-copy {
  min-width: auto;
  padding: 10px 16px;
  font-size: 13px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cta-row .btn-ghost {
  min-width: auto;
}

.offer {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.top-cta {
  display: none;
  padding: 10px 16px;
  font-size: 13px;
  min-width: auto;
}

@media (min-width: 721px) {
  .top-cta {
    display: inline-flex;
  }
}

.how,
.preview,
.why,
.faq,
.final-cta,
.download {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 22px;
}

.how h2,
.preview h2,
.why h2,
.faq h2,
.final-cta h2,
.download h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

/* App preview phones */
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.phone {
  margin: 0;
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #1a1a22 0%, #121218 100%);
  padding: 18px 16px 20px;
  min-height: 280px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d0d0f;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 99px;
}

.ph-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(200, 245, 90, 0.25), transparent 55%),
    linear-gradient(320deg, #2a3140, #1a1f28);
  background-size: cover;
  background-position: center top;
}

.ph-photo-cordelia {
  background-image: url("assets/demo-cordelia.jpg");
  background-color: #1a1f28;
}

.ph-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.ph-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.ph-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.ph-stake,
.ph-note {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 99px;
  background: var(--accent);
  color: #0d0d0f;
  font-size: 13px;
  font-weight: 800;
}

.ph-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ph-ghost {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.why-card {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(22, 22, 26, 0.7);
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent);
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.why-cost {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(200, 245, 90, 0.35);
  background: rgba(200, 245, 90, 0.07);
  font-size: 14px;
  line-height: 1.45;
}

.why-earn {
  margin: 0 0 22px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rules-details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(22, 22, 26, 0.55);
  padding: 0 16px;
}

.rules-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 4px;
  font-weight: 700;
  color: var(--text);
}

.rules-details > summary::-webkit-details-marker {
  display: none;
}

.rules-details > summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}

.rules-details[open] > summary::after {
  content: "–";
}

.rules-panel {
  padding: 0 4px 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(22, 22, 26, 0.65);
  padding: 0 14px;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p,
.faq-list details [data-i18n-html] {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.faq-list-bullets {
  margin: 0 0 14px;
  padding: 0 0 0 1.15em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  gap: 8px;
}

.faq-list-bullets li {
  padding-left: 2px;
}

.final-cta {
  text-align: left;
  padding-bottom: 40px;
}

.final-cta .btn {
  margin-bottom: 12px;
}

.credits-note {
  margin: 0 0 28px;
  max-width: 62ch;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(200, 245, 90, 0.06);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.credits-note strong {
  color: var(--accent);
}

.rules-h {
  margin: 36px 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.table-swipe-hint {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(22, 22, 26, 0.72);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

@media (min-width: 640px) {
  .table-swipe-hint {
    display: none;
  }

  .table-wrap {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14px;
}

.rules-table-2 {
  min-width: 480px;
}

.rules-table th,
.rules-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.rules-table th {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
}

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

.rules-table td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.rules-table-2 td:not(:first-child) {
  font-weight: 500;
  white-space: normal;
  color: var(--muted);
}

.rules-table-2 td:first-child {
  white-space: nowrap;
  color: var(--accent);
}

.stake-line {
  margin: 0 0 14px;
  max-width: 58ch;
  color: var(--muted);
}

.stake-line strong {
  color: var(--text);
}

.stake-rungs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.stake-rungs span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(22, 22, 26, 0.8);
}

.rules-foot {
  margin-bottom: 8px;
  max-width: 62ch;
}

.foot-disclaimer {
  flex-basis: 100%;
  margin: 4px 0 0;
  max-width: 72ch;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.section-lede {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 48ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  animation: rise 0.8s ease both;
}

.steps li:nth-child(2) { animation-delay: 0.08s; }
.steps li:nth-child(3) { animation-delay: 0.16s; }

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.download {
  text-align: left;
  padding-bottom: 100px;
}

.how-cta {
  margin-top: 28px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.legal-links a {
  color: var(--muted);
}

.legal-links a:hover {
  color: var(--accent);
}

.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 22px 100px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(13, 13, 15, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-inner p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.sticky-inner .btn {
  flex-shrink: 0;
}

.foot img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 22px 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 24px 0 8px;
}

.legal-page .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
  color: var(--accent);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 245, 90, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(200, 245, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 245, 90, 0); }
}

@media (max-width: 900px) {
  .phones {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

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

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    order: -1;
  }

  .hero-phone {
    width: min(100%, 260px);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 16px 22px 36px;
  }

  .cta-row .btn,
  .final-cta .btn {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
  }

  .urgency p {
    font-size: 12px;
  }

  .top-cta {
    display: none !important;
  }
}
