.landing-body {
  max-width: 100%;
}

.text-yellow {
  color: var(--yellow);
}

/* TICKER STRIP */
.ticker-strip {
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding: 8px 0;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ticker-item b { color: var(--text); }
.ticker-item em { font-style: normal; }
.ticker-item em.up { color: var(--green); }
.ticker-item em.down { color: var(--red); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* HERO GRID — two columns on desktop, stacked on mobile */
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.landing-hero-visual { display: flex; justify-content: center; }

.mockup-card {
  width: 100%;
  max-width: 340px;
  padding: 22px;
}
.mockup-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
}
.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(41, 209, 154, 0.15);
}
.mockup-balance {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.mockup-change {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 16px;
}
.mockup-change.up { color: var(--green); }
.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  margin-bottom: 18px;
}
.mockup-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--yellow) 0%, rgba(201, 154, 76, 0.25) 100%);
  border-radius: 3px;
}
.mockup-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--text2);
}
.mockup-row span:last-child { color: var(--text); }


.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(220 20% 4% / 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.landing-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-links {
  display: none;
  gap: 28px;
}

.landing-nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-text:hover { color: var(--text); }

.btn-primary-sm {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary-sm:hover { filter: brightness(1.1); }

/* HERO */
.landing-hero {
  max-width: 900px;
  padding: 100px 24px 80px;
}
.landing-hero-title {
  font-size: 22px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.landing-hero-badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s;
}
.feature-card:hover {
  border-color: var(--yellow);
}

.landing-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.landing-hero-actions .btn-primary,
.landing-hero-actions .btn-secondary {
  text-decoration: none;
  text-align: center;
  display: block;
}

.landing-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow);
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

/* SECTIONS */
.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.landing-section-alt {
  background: var(--bg2);
  max-width: 100%;
}

.landing-section-title {
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 23px;
  color: var(--text);
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}

.feature-icon {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* STEPS */
.steps-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  text-align: center;
  padding: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e11;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.step-card p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* TRUST ROW */
.trust-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.trust-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CTA */
.landing-cta {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg2);
}

.landing-cta h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.landing-cta p {
  color: var(--text2);
  margin-bottom: 24px;
  font-size: 14px;
}

.landing-cta .btn-primary {
  display: inline-block;
  text-decoration: none;
  padding: 14px 32px;
}

/* FOOTER */
.landing-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}

.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.landing-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
}

.landing-footer-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  max-width: 480px;
  margin: 16px auto 0;
  line-height: 1.5;
}

/* DESKTOP — kicks in above mobile width, per Mobile-First Requirement
     in the blueprint: mobile styles above are the DEFAULT, desktop adds on top */
@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
  }

  .landing-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }
  .landing-hero-visual { justify-content: flex-end; }

  .landing-hero-title {
    font-size: 22px;
  }

  .landing-hero-sub {
    font-size: 18px;
  }

  .landing-hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .landing-hero-actions .btn-primary,
  .landing-hero-actions .btn-secondary {
    display: inline-block;
    padding-left: 32px;
    padding-right: 32px;
  }

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

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

  .landing-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============ LANDING V2 — matches base44 reference ============ */
.accent-blue { color: var(--blue); }
.dim { color: var(--text2); font-weight: 400; }

.landing-logo { flex-direction: column; align-items: flex-start; gap: 0; }
.landing-logo span {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--blue);
}
.landing-logo small {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text3);
}

/* HERO V2 */
.landing-hero-v2 {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, hsl(217 91% 30% / 0.35), transparent 55%),
    linear-gradient(hsl(220 30% 10% / 0.6) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, hsl(220 30% 10% / 0.6) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}
.landing-hero-v2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 65%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg stroke='%2316c784' stroke-width='2' fill='none'%3E%3Cline x1='20' y1='150' x2='20' y2='110'/%3E%3Crect x='14' y='120' width='12' height='25' fill='%2316c784'/%3E%3Cline x1='50' y1='140' x2='50' y2='90'/%3E%3Crect x='44' y='100' width='12' height='30' fill='%23ea3943'/%3E%3Cline x1='80' y1='160' x2='80' y2='100'/%3E%3Crect x='74' y='110' width='12' height='35' fill='%2316c784'/%3E%3Cline x1='110' y1='130' x2='110' y2='80'/%3E%3Crect x='104' y='95' width='12' height='25' fill='%23ea3943'/%3E%3Cline x1='140' y1='120' x2='140' y2='70'/%3E%3Crect x='134' y='80' width='12' height='30' fill='%2316c784'/%3E%3Cline x1='170' y1='100' x2='170' y2='50'/%3E%3Crect x='164' y='60' width='12' height='28' fill='%2316c784'/%3E%3Cline x1='200' y1='90' x2='200' y2='30'/%3E%3Crect x='194' y='45' width='12' height='30' fill='%2316c784'/%3E%3C/g%3E%3Cpath d='M20,140 L50,110 L80,120 L110,95 L140,90 L170,65 L200,40' stroke='%233b82f6' stroke-width='2' fill='none' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-v2-content { max-width: 720px; z-index: 2; }
.hero-v2-title {
  font-family: "Playfair Display", var(--font-display), serif;
  font-size: clamp(42px, 6.4vw, 77px);
  line-height: 1.0;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-v2-actions { display: flex; gap: 14px; margin-bottom: 40px; }
.hero-v2-actions .btn-primary,
.hero-v2-actions .btn-secondary {
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
}
.hero-v2-actions .btn-secondary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  color: var(--text);
}
.hero-v2-actions .btn-secondary:hover { background: rgba(255,255,255,0.08); }
.hero-v2-coin {
  position: absolute;
  right: 6%;
  top: 12%;
  width: 320px;
  height: 320px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 30px 60px hsl(45 60% 20% / 0.45));
  z-index: 1;
}
.hero-v2-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 2;
  margin-top: 20px;
}
.hero-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: hsl(220 18% 8% / 0.7);
  color: var(--text2);
}

/* SECTION V2 */
.landing-section-v2 { padding: 80px 60px; max-width: 1200px; margin: 0 auto; }
.landing-section-v2.landing-section-alt { background: var(--bg2); max-width: 100%; }
.landing-section-v2.landing-section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-v2-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-v2-title {
  font-family: "Playfair Display", var(--font-display), serif;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  margin-bottom: 40px;
  color: var(--text);
}

/* MARKET TABLE */
.market-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.market-table-head, .market-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.6fr;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}
.market-table-head {
  background: var(--bg2);
  color: var(--text3);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.market-row { border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 14px; }
.market-asset { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; }
.market-asset small { color: var(--text3); font-weight: 400; margin-left: 4px; }
.coin-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-style: normal; font-size: 11px; font-weight: 700; color: #0a0c10;
}
.market-row .up { color: var(--green); }
.market-row .down { color: var(--red); }
.spark { width: 80px; height: 24px; }
.spark polyline { fill: none; stroke-width: 2; }
.spark.up polyline { stroke: var(--green); }
.spark.down polyline { stroke: var(--red); }
.btn-link { background: none; border: 1px solid var(--blue); color: var(--blue); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 8px; cursor: pointer; }

/* QUICK SWAP */
.quick-swap-card {
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.quick-swap-label { text-align: center; font-size: 11px; letter-spacing: 2px; color: var(--text3); margin-bottom: 16px; }
.quick-swap-field {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px;
}
.quick-swap-field label { font-size: 11px; color: var(--text3); display: block; margin-bottom: 4px; }
.quick-swap-field input { background: none; border: none; color: var(--text); font-size: 22px; font-family: var(--font-mono); width: 100%; }
.quick-swap-field select { background: var(--bg3); border: none; color: var(--text); padding: 6px 10px; border-radius: 8px; font-weight: 700; }
.quick-swap-flip { display: block; margin: 8px auto; width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border2); color: var(--blue); cursor: pointer; }

/* LEDGER (Portfolio) */
.ledger-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.ledger-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.ledger-label { font-size: 11px; letter-spacing: 2px; color: var(--text3); margin-bottom: 8px; }
.ledger-value { font-family: var(--font-mono); font-size: 23px; font-weight: 700; }
.ledger-change { color: var(--green); font-size: 14px; margin-bottom: 24px; }
.ledger-asset-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px;
}
.ledger-asset-row small { color: var(--text3); }
.ledger-asset-row span { font-family: var(--font-mono); font-weight: 600; }
.ledger-side-cards { display: flex; flex-direction: column; gap: 16px; }
.ledger-side-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.ledger-side-card h3 { font-size: 15px; margin: 8px 0 6px; }
.ledger-side-card p { font-size: 13px; color: var(--text2); line-height: 1.5; }
.side-card-icon { color: var(--blue); font-size: 20px; }

/* FORTRESS (Security) */
.fortress-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.fortress-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 28px 16px; text-align: center; }
.fortress-num { font-family: var(--font-mono); font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.fortress-label { font-size: 11px; letter-spacing: 1px; color: var(--text3); text-transform: uppercase; }
.fortress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.fortress-visual {
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, hsl(217 91% 30% / 0.35), transparent 60%),
    radial-gradient(circle at 50% 45%, hsl(142 71% 30% / 0.2), transparent 75%),
    linear-gradient(hsl(220 20% 12% / 0.5) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, hsl(220 20% 12% / 0.5) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.fortress-visual-icon {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 24px hsl(217 91% 50% / 0.35));
}
.fortress-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fortress-feature { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.ff-icon { color: var(--blue); font-size: 20px; margin-bottom: 8px; }
.fortress-feature h3 { font-size: 14px; margin-bottom: 6px; }
.fortress-feature p { font-size: 12px; color: var(--text2); line-height: 1.5; }

.about-copy { max-width: 640px; font-size: 16px; color: var(--text2); line-height: 1.7; }

/* CTA V2 */
.landing-cta-v2 { padding: 80px 60px; background: var(--bg2); border-top: 1px solid var(--border); }
.cta-v2-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-v2-inner h2 { font-family: "Playfair Display", var(--font-display), serif; font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.cta-v2-inner p { color: var(--text2); max-width: 420px; }
.cta-v2-form { display: flex; gap: 10px; }
.cta-v2-form input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; color: var(--text); min-width: 220px; }

/* FOOTER V2 */
.landing-footer-v2 { padding: 60px; border-top: 1px solid var(--border); }
.footer-v2-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.footer-v2-col h4 { font-size: 12px; letter-spacing: 1px; color: var(--text3); text-transform: uppercase; margin-bottom: 14px; }
.footer-v2-col a { display: block; color: var(--text2); font-size: 14px; text-decoration: none; margin-bottom: 10px; }
.footer-v2-col a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .landing-hero-v2, .landing-section-v2, .landing-cta-v2, .landing-footer-v2 { padding: 48px 20px; }
  .hero-v2-coin { display: none; }
  .market-table-head, .market-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .market-table-head span:nth-child(4), .market-table-head span:nth-child(5),
  .market-row > span:nth-child(4), .market-row > span:nth-child(5) { display: none; }
  .ledger-grid, .fortress-grid, .fortress-stats, .footer-v2-cols { grid-template-columns: 1fr; }
  .cta-v2-inner { flex-direction: column; align-items: flex-start; }
}

/* Landing page CTAs: switch primary buttons from gold to blue (index.html only, since landing.css is not loaded elsewhere) */
body.landing-body .btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
body.landing-body .btn-primary:hover {
  background: hsl(217 91% 54%);
}
body.landing-body .btn-primary:active {
  background: hsl(217 91% 50%);
}
