/* Landing page. Dark, playful, alive: the ribbon reaches in from the edges, buttons feel
   pressable, and the hero shows real trades. Fonts come from theme.css. */

/* landing.css only loads on the landing page: paint the canvas in the page colour too, so no
   strip of another colour shows above the body or when the page overscrolls. */
html { background: #07080d; color-scheme: dark; }
html[data-theme="light"] { background: #f5f6f8; color-scheme: light; }

body.dark {
  --d-bg: #07080d;
  --d-card: rgba(237, 255, 254, 0.035);
  --d-card-2: rgba(237, 255, 254, 0.06);
  --d-line: rgba(237, 255, 254, 0.09);
  --d-text: #eef6f5;
  --d-text-2: #9aaba9;
  --d-head: #f4fbfa;
  --d-nav: rgba(10, 16, 16, 0.72);
  --d-shadow: rgba(0, 0, 0, 0.8);
  --d-dots: rgba(237, 255, 254, 0.07);
  --d-final: #0b0f14;
  --d-risk: #7e8e8c;
  --d-pill: linear-gradient(rgba(237, 255, 254, 0.08), rgba(237, 255, 254, 0.03));
  --g-up: linear-gradient(100deg, #14f0b5 10%, #b4ffe8 90%);
  --g-down: linear-gradient(100deg, #6a4bff 5%, #b8a6ff 90%);
  --teal: #14f0b5;   /* the logo's green arrow: long */
  --coral: #8b6cff;  /* the logo's purple arrow: short */
  --coral-text: #b3a1ff;
  background: var(--d-bg);
  color: var(--d-text);
  font-family: var(--sans);
  overflow-x: hidden;
}
/* light theme: same layout, the tokens flip */
:root[data-theme="light"] body.dark {
  --d-bg: #f5f6f8;
  --d-card: #ffffff;
  --d-card-2: #f0f2f5;
  --d-line: #e3e6ea;
  --d-text: #0b0d12;
  --d-text-2: #5d6470;
  --d-head: #0b0d12;
  --d-nav: rgba(255, 255, 255, 0.82);
  --d-shadow: rgba(11, 13, 18, 0.14);
  --d-dots: rgba(11, 13, 18, 0.08);
  --d-final: #ffffff;
  --d-risk: #7a818c;
  --d-pill: #ffffff;
  --g-up: linear-gradient(100deg, #00b38f 10%, #12d9a6 90%);
  --g-down: linear-gradient(100deg, #5b3ff5 5%, #8b6cff 90%);
  --teal: #00a383;
  --coral: #5b3ff5;
  --coral-text: #5b3ff5;
}
.dark ::selection { background: rgba(45, 240, 207, 0.3); color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--teal); color: #00201b; padding: 10px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }

/* pressable pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font: 600 15px/1 "Sora", var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, filter .15s ease; }
.pill:hover { filter: brightness(1.08); }
.pill:active { transform: translateY(1px); }
.pill-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.pill-teal { color: #00201b; background: linear-gradient(#4ff7cf, #0fd9a2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 80, 60, 0.35), 0 14px 34px -12px rgba(20, 240, 181, 0.75); }
.pill-dark { color: var(--d-text); background: var(--d-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px var(--d-line); }

/* floating nav */
.nav { position: sticky; top: 14px; z-index: 30; margin: 14px auto 0; width: min(1180px, calc(100% - 28px)); height: 62px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 28px; border-radius: 999px; background: var(--d-nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--d-line), 0 20px 40px -24px var(--d-shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--d-head); text-decoration: none; font: 700 20px/1 "Sora", var(--sans); letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--d-text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--d-head); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-cta .pill { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* hero */
.hero { position: relative; padding: 110px 20px 72px; text-align: center; overflow: hidden; margin-top: -76px; padding-top: 186px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--d-dots) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); pointer-events: none; }
.glow { position: absolute; left: 50%; top: 150px; width: 760px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(20, 240, 181, 0.16), rgba(106, 75, 255, 0.14) 55%, rgba(106, 75, 255, 0) 75%); filter: blur(10px); pointer-events: none; }
.hero-in { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
h1 { margin: 0; font: 600 clamp(48px, 8vw, 100px)/1.02 "Sora", var(--sans); letter-spacing: -0.045em; color: var(--d-head); text-wrap: balance; }
.g-up { background: var(--g-up); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-down { background: var(--g-down); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 26px auto 0; max-width: 640px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--d-text-2); text-wrap: pretty; }
.ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* the ribbon reaching in from the edges, like a creature at the window */
.ribbon { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
/* the logo's two arrows reach in from the edges: green rising on the left, purple falling on the right */
.ribbon-l { width: 330px; left: -60px; bottom: 0; animation: sway-l 9s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(20, 240, 181, 0.22)); }
.ribbon-r { width: 330px; right: -60px; top: 90px; animation: sway-r 11s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(106, 75, 255, 0.3)); }
@keyframes sway-l { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sway-r { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }

/* live tape */
.tape { margin: 56px auto 0; max-width: 820px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 8px; border-radius: 999px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); text-align: left; }
.tape-label { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--d-card-2); font-size: 13.5px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 240, 181, 0.15); }
.tape-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-run { display: inline-flex; gap: 28px; white-space: nowrap; font-size: 14px; color: var(--d-text-2); }
.tape-run.moving { animation: tape 40s linear infinite; }
.tape-run b { color: var(--d-text); font-weight: 600; }
.tape-empty { padding-left: 4px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.counters { margin: 40px auto 0; max-width: 880px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.counters div { display: flex; flex-direction: column; gap: 8px; }
.counters b { font: 600 clamp(30px, 3.6vw, 44px)/1 "Sora", var(--sans); letter-spacing: -0.04em; color: var(--d-head); font-variant-numeric: tabular-nums; }
.counters span { font-size: 13.5px; color: var(--d-text-2); }

/* scrolling chips */
.chips { margin-top: 12px; padding: 18px 0; overflow: hidden; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chips-run { display: inline-flex; gap: 10px; white-space: nowrap; animation: tape 45s linear infinite; }
.chips-run span { padding: 8px 14px; border-radius: 999px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); font-size: 14px; color: var(--d-text-2); }

/* sections */
section.board, section.how, section.safety { max-width: 1180px; margin: 0 auto; padding: 120px 20px 0; }
.tag { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--d-card-2); box-shadow: inset 0 0 0 1px var(--d-line); font-size: 13.5px; font-weight: 600; }
h2 { margin: 18px 0 0; font: 600 clamp(36px, 5vw, 64px)/1.03 "Sora", var(--sans); letter-spacing: -0.045em; color: var(--d-head); text-wrap: balance; }
.lede { margin: 16px 0 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--d-text-2); }
h3 { margin: 0; font: 600 19px/1.25 "Sora", var(--sans); letter-spacing: -0.02em; color: var(--d-head); }

.board-search { margin-top: 32px; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-text-2); max-width: 640px; }
.board-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--d-text); font: 500 15px var(--sans); }
.board-search input::placeholder { color: var(--d-text-2); }
.board-search .pill { min-height: 44px; }

.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 22px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); text-decoration: none; color: inherit; transition: background-color .15s ease, transform .15s ease; min-height: 196px; }
.mcard:hover { background: var(--d-card-2); transform: translateY(-2px); }
.mcard.skeleton { background: linear-gradient(90deg, var(--d-card), var(--d-card-2), var(--d-card)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mc-top { display: flex; align-items: center; gap: 12px; }
.mc-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--d-card-2); display: grid; place-items: center; font: 700 14px "Sora", var(--sans); color: var(--teal); flex: none; overflow: hidden; }
.mc-ico img { width: 100%; height: 100%; object-fit: cover; }
.mc-name b { display: block; font: 600 17px "Sora", var(--sans); color: var(--d-head); letter-spacing: -0.02em; }
.mc-name span { font-size: 13px; color: var(--d-text-2); }
.mc-price { margin-left: auto; text-align: right; }
.mc-price b { display: block; font: 600 17px "Sora", var(--sans); color: var(--d-head); font-variant-numeric: tabular-nums; }
.mc-price span { font-size: 13px; font-weight: 600; }
.up { color: var(--teal); }
.down { color: var(--coral); }
.mc-bar { height: 8px; border-radius: 99px; background: rgba(139, 108, 255, 0.45); overflow: hidden; }
.mc-bar div { height: 100%; background: var(--teal); border-radius: 99px; }
.mc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12.5px; color: var(--d-text-2); }
.mc-stats b { display: block; margin-top: 4px; font: 600 14px "Sora", var(--sans); color: var(--d-text); font-variant-numeric: tabular-nums; }
.mc-cta { margin-top: auto; display: flex; gap: 8px; }
.mc-cta span { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; font-weight: 600; font-size: 14px; }
.mc-long { background: rgba(20, 240, 181, 0.12); color: var(--teal); }
.mc-short { background: rgba(139, 108, 255, 0.16); color: var(--coral-text); }
.board-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--d-text-2); border-radius: 22px; background: var(--d-card); }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { padding: 24px; border-radius: 22px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); }
.steps li > b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; border-radius: 12px; background: linear-gradient(#4ff7cf, #0fd9a2); color: #00201b; font: 700 16px "Sora", var(--sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 24px -10px rgba(20, 240, 181, 0.7); }
.steps p { margin: 10px 0 0; color: var(--d-text-2); line-height: 1.55; }

.safe-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.safe-grid > div { padding: 26px; border-radius: 22px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-line); }
.safe-grid p { margin: 10px 0 0; color: var(--d-text-2); line-height: 1.55; }

.final { position: relative; overflow: hidden; max-width: 1180px; width: calc(100% - 40px); margin: 120px auto 0; padding: 96px 24px; border-radius: 32px; text-align: center;
  background: radial-gradient(ellipse at 30% 0%, rgba(20, 240, 181, 0.2), rgba(20, 240, 181, 0) 55%), radial-gradient(ellipse at 80% 100%, rgba(106, 75, 255, 0.25), rgba(106, 75, 255, 0) 60%), var(--d-final); box-shadow: inset 0 0 0 1px var(--d-line); }
.final h2 { margin: 0 0 32px; position: relative; z-index: 2; }
.final .pill { position: relative; z-index: 2; }
.ribbon-f { width: 260px; right: -40px; bottom: -60px; opacity: 0.9; }

.footer { max-width: 1180px; margin: 0 auto; padding: 56px 20px 48px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--d-text-2); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--d-head); }
.risk { margin: 22px 0 0; max-width: 720px; font-size: 13px; line-height: 1.6; color: var(--d-risk); }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safe-grid { grid-template-columns: minmax(0, 1fr); }
  .ribbon-l { width: 240px; left: -90px; }
  .ribbon-r { width: 240px; right: -90px; }
}
@media (max-width: 640px) {
  .nav { height: 56px; top: 10px; margin-top: 10px; width: calc(100% - 20px); padding: 0 6px 0 14px; }
  .nav-cta .pill-dark:not(.theme-btn) { display: none; }
  .nav-cta .theme-btn { width: 40px; min-height: 40px; height: 40px; padding: 0; }
  .hero { padding: 150px 16px 56px; }
  .ctas .pill { width: 100%; }
  .ribbon-l { width: 170px; left: -90px; bottom: 140px; opacity: .7; }
  .ribbon-r { width: 170px; right: -90px; top: 120px; opacity: .7; }
  .tape { margin-top: 44px; }
  .tape-label { padding: 0 10px; font-size: 12.5px; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  section.board, section.how, section.safety { padding: 88px 16px 0; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .final { width: calc(100% - 24px); padding: 72px 20px; margin-top: 88px; }
  .ribbon-f { width: 180px; right: -60px; bottom: -60px; }
}

/* theme switch (sun in dark, moon in light) */
.theme-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-moon, :root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
