/* ── Design system ──────────────────────────────────────────────────────────── */
:root {
  --bg:      #0d0f14;
  --surface: #161a22;
  --raised:  #1e2330;
  --border:  #2a3040;
  --t1:      #e8eaf0;
  --t2:      #8a93a8;
  --t3:      #4a5268;
  --green:   #22c55e;
  --amber:   #f59e0b;
  --accent:  #3b82f6;
  --mono:    'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r-sm:    4px; --r-md: 8px; --r-lg: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--t1);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #60a5fa; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.375rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 0.75rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .9rem; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--raised); color: var(--t1); font-size: .8125rem; font-family: inherit;
  cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none; }
.btn:hover { background: var(--border); color: var(--t1); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-sm { padding: .3rem .65rem; font-size: .75rem; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--t2); }
.btn-outline:hover { background: var(--raised); color: var(--t1); }

/* ── Brand ── */
.brand { display: flex; align-items: center; gap: .5rem;
  color: var(--t1); font-weight: 700; font-size: .9rem; text-decoration: none; }
.brand:hover { color: var(--t1); }
.brand-mark { width: 26px; height: 26px; background: var(--green); color: #0d0f14;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 1.5rem 1.25rem; margin-top: auto; }
.footer-body { text-align: center; margin-bottom: 1rem; }
.disclaimer { font-size: 1rem; color: var(--t3); line-height: 1.7; max-width: none; }
.footer-copyright { font-size: .875rem; color: var(--t3); margin-top: .35rem; }
.footer-rule { border: none; border-top: 1px solid var(--border); margin: 0 0 1rem; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; }
.footer-bar .brand { flex-shrink: 0; }

/* ── Typography helpers ── */
.dim   { color: var(--t2); }
.muted { color: var(--t3); }
.small { font-size: .75rem; }
.mt-sm { margin-top: .625rem; }
.mt-md { margin-top: 1rem; }
.mb-sm { margin-bottom: .625rem; }
.mb-md { margin-bottom: 1rem; }

/* ── Landing ── */
.landing-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.landing-header { position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.landing-header-inner { display: flex; align-items: center;
  justify-content: space-between; height: 52px;
  max-width: none; padding: 0 1.25rem; }
.header-links { display: flex; align-items: center; gap: .5rem; }

.hero { padding: 5.5rem 0 4.5rem; text-align: center; }
.hero-badge { display: inline-block; padding: .3rem 1rem; border-radius: 999px;
  background: rgba(34,197,94,.1); color: var(--green); font-size: 1.125rem;
  font-weight: 600; letter-spacing: .04em; margin-bottom: 1.25rem; }
.hero-headline { font-size: 3.75rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 1rem; }
.hero-sub { font-size: 1.25rem; color: var(--t2); max-width: 780px;
  margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: .75rem; }

.section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section-label { font-size: 1.125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--t3); margin-bottom: 1.5rem; }
.section-title { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; }
.section-sub { font-size: 1.25rem; color: var(--t2);
  line-height: 1.7; margin-bottom: 2.5rem; }

/* ── Dimension cards ── */
.dims-grid { display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; }
.dim-card:nth-child(1),
.dim-card:nth-child(2),
.dim-card:nth-child(3) { grid-column: span 2; }
.dim-card:nth-child(4) { grid-column: 2 / span 2; }
.dim-card:nth-child(5) { grid-column: 4 / span 2; }
.dim-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.dim-card-top { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.dim-card-icon { width: 40px; height: 40px; border-radius: var(--r-md);
  background: rgba(34,197,94,.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; }
.dim-card-name { font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--t3); }
.dim-card-body { text-align: center; }
.dim-card-body h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.dim-card-body p  { font-size: 1.125rem; color: var(--t2); line-height: 1.6; }

/* ── How-it-works steps ── */
.how-grid { display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 1200px; margin: 0 auto; }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; }
.how-num { width: 40px; height: 40px; border-radius: 50%;
  background: rgba(34,197,94,.12); border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--green); }
.how-step h3 { font-size: 1.5rem; white-space: nowrap; }
.how-step p  { font-size: 1.125rem; color: var(--t2); line-height: 1.6; }

/* ── CTA ── */
.cta-section { padding: 5rem 0; border-top: 1px solid var(--border); text-align: center; }
.cta-section h2 { font-size: 3rem; font-weight: 800; margin-bottom: .75rem; }
.cta-section p  { font-size: 1.25rem; color: var(--t2); margin-bottom: 2rem; }

/* ── Theme toggle ── */
#theme-toggle { display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: none; border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--t2); cursor: pointer;
  transition: border-color .15s, color .15s; flex-shrink: 0; }
#theme-toggle:hover { border-color: var(--t2); color: var(--t1); }
#theme-toggle .icon-sun  { display: none; }
#theme-toggle .icon-moon { display: block; }
html[data-theme="light"] #theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] #theme-toggle .icon-moon { display: none; }

/* ── Language toggle ── */
.lang-toggle { position: relative; }
#lang-button { display: flex; align-items: center; gap: .35rem;
  background: none; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: .25rem .5rem; cursor: pointer; transition: border-color .15s; }
#lang-button:hover { border-color: var(--t2); }
.lang-flag { height: 18px; width: auto; border-radius: 2px; display: block; }
.lang-flag-sm { height: 16px; width: auto; border-radius: 2px; flex-shrink: 0; }
#lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px);
  width: 160px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 200; overflow: hidden; }
#lang-menu.lang-open { display: block; }
.lang-option { display: flex; align-items: center; gap: .5rem; width: 100%;
  padding: .5rem .75rem; background: none; border: none; color: var(--t2);
  font-size: .8125rem; font-family: inherit; cursor: pointer; text-align: left;
  transition: background .1s, color .1s; }
.lang-option:hover { background: var(--raised); color: var(--t1); }

/* ── Waitlist success page ── */
.waitlist-success-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.waitlist-success-card { text-align: center; max-width: 480px; width: 100%; }
.waitlist-success-icon { width: 80px; height: 80px; border-radius: 50%;
  background: rgba(34,197,94,.12); border: 2px solid var(--green);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; }
.waitlist-success-label { font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--green); margin-bottom: .75rem; }
.waitlist-success-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; line-height: 1.2; }
.waitlist-success-sub { font-size: 1rem; color: var(--t2); margin-bottom: 2rem; }
.waitlist-success-btn { background: var(--green); border-color: var(--green);
  color: #0d0f14; font-weight: 600; }
.waitlist-success-btn:hover { filter: brightness(1.1); color: #0d0f14; }
/* ── hCaptcha reveal ── */
.h-captcha { max-height: 0; overflow: hidden;
  transition: max-height .35s ease, margin-top .35s ease;
  margin-top: 0 !important; }
.h-captcha.captcha-visible { max-height: 120px; margin-top: .75rem !important; }

/* ── Waitlist form ── */
.waitlist-form { margin-top: 1.75rem; }
.waitlist-row { display: flex; gap: .5rem; max-width: 440px; }
.waitlist-row input[type=email] { flex: 1; }
.waitlist-row-center { margin: 0 auto; }
.waitlist-note, .cta-section .waitlist-note { font-size: 1rem; color: var(--t3); margin-top: .625rem; text-align: center; }
.waitlist-row button[type=submit] { display: inline-flex; align-items: center; white-space: nowrap;
  padding: .45rem .9rem; border: 1px solid var(--green); border-radius: var(--r-md);
  background: var(--green); color: #0d0f14; font-size: .8125rem; font-family: inherit;
  font-weight: 600; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.waitlist-row button[type=submit]:hover { filter: brightness(1.1); }

/* ── Footer legal link ── */
.footer-legal { font-size: .875rem; color: var(--t2); flex-shrink: 0; white-space: nowrap; text-decoration: underline; }
.footer-legal:hover { color: var(--t1); }

/* ── App nav links (shared with yw_web) ── */
.app-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: .25rem; }
.nav-link { padding: .35rem .7rem; border-radius: var(--r-md); color: var(--t2);
  font-size: .85rem; font-weight: 500; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--t1); background: var(--raised); }

/* ── Mobile hamburger nav toggle ── */
#nav-toggle { display: none; width: 32px; height: 32px; background: none;
  border: 1px solid var(--border); border-radius: var(--r-md); color: var(--t2);
  cursor: pointer; transition: border-color .15s, color .15s; flex-shrink: 0; }
#nav-toggle:hover { border-color: var(--t2); color: var(--t1); }

@media (max-width: 600px) {
  #nav-toggle { display: flex; align-items: center; justify-content: center; }
  .app-nav {
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem .75rem;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .app-nav.nav-open { display: flex; }
  .app-nav .nav-link { width: 100%; border-radius: var(--r-md); padding: .6rem .5rem; }
  .app-nav-right { width: 100%; padding-top: .5rem; margin-top: .25rem;
    border-top: 1px solid var(--border); justify-content: flex-start; }
  .app-nav .btn-logout { display: inline-flex; }
}

/* ── Cookies page ── */
.cookies-main { flex: 1; padding: 3rem 1rem 4rem; width: 100%; }
.cookies-main-inner { max-width: 780px; margin: 0 auto; }
.cookies-main h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1.5rem; }
.cookies-main h2 { font-size: 1.375rem; font-weight: 700; margin-top: 2rem; margin-bottom: .5rem; color: var(--t1); }
.cookies-main p { font-size: 1.125rem; color: var(--t2); line-height: 1.7; margin-bottom: .5rem; }
.cookies-main ul { padding-left: 1.5rem; list-style: disc; margin-bottom: .5rem; }
.cookies-main li { font-size: 1.125rem; color: var(--t2); line-height: 1.7; }

/* ── Legal banner ── */
#legal-banner { display: flex; align-items: center; gap: .75rem;
  padding: .4rem 1.25rem; background: var(--raised);
  border-bottom: 1px solid var(--border);
  font-size: 1rem; color: var(--t2); line-height: 1.4; }
#legal-banner.banner-hidden { display: none; }
#legal-banner span { flex: 1; text-align: center; }
#legal-banner-close { background: none; border: none; color: var(--t3);
  cursor: pointer; padding: 0; font-size: 1.1rem; line-height: 1;
  flex-shrink: 0; transition: color .15s; font-family: inherit; }
#legal-banner-close:hover { color: var(--t1); }
.banner-link { color: var(--t1); text-decoration: underline; white-space: nowrap; }
.banner-link:hover { color: var(--green); }

/* ── Hero mockup ── */
.hero-mockup { position: relative; margin-top: 3.5rem; max-width: 820px;
  margin-left: auto; margin-right: auto; }
.hero-mockup::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px; background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; border-radius: 0 0 var(--r-lg) var(--r-lg); z-index: 1; }
.hero-mockup::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0;
  width: 48px; background: linear-gradient(to right, transparent, var(--surface));
  pointer-events: none; border-radius: 0 var(--r-lg) var(--r-lg) 0; z-index: 1;
  display: none; }
.mockup-panel { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.mockup-table-inner { width: 100%; min-width: 780px; }
.mockup-header { display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--raised); }
.mockup-title { font-weight: 700; font-size: .9rem; color: var(--t1); }
.mockup-filters { display: flex; gap: .5rem; }
.mockup-filter { font-size: .72rem; padding: .2rem .65rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--t3); }
.mockup-filter-active { border-color: var(--green); color: var(--green);
  background: rgba(34,197,94,.08); }
.mockup-row { display: grid;
  grid-template-columns: minmax(120px, 1fr) 72px repeat(5, 96px);
  padding: .6rem 1.25rem; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--border); }
.mockup-row:last-child { border-bottom: none; }
.mockup-row-head { background: var(--surface); }
.mockup-col-head { font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--t3); text-align: center; }
.mockup-col-head:first-child { text-align: left; align-items: flex-start; }
.mockup-col-dim { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.mockup-token { display: flex; align-items: center; gap: .625rem; }
.mockup-token-icon { width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .5rem; font-weight: 800; color: var(--t2); flex-shrink: 0; letter-spacing: -.02em; }
.mockup-token-name { font-size: .875rem; font-weight: 600; color: var(--t1); }
.mockup-score-main { font-size: .9rem; font-weight: 700; text-align: center; }
.mockup-score-dim { font-size: .8rem; font-weight: 600; text-align: center; }
.score-high { color: #22c55e; }
.score-mid  { color: #f59e0b; }
.score-low  { color: #ef4444; }
.mockup-stats { display: flex; gap: 2rem; padding: .5rem 0 1rem;
  position: relative; z-index: 2; align-items: flex-start; }
.mockup-stat { display: flex; flex-direction: column; gap: .15rem; text-align: left; }
.mockup-stat-center { flex: 1; text-align: center; }
.mockup-stat-right { margin-left: auto; text-align: right; }
.mockup-stat-val { font-size: .95rem; font-weight: 700; color: var(--green); }
.mockup-stat-desc { font-size: .72rem; color: var(--t2); }
.mockup-indicative { font-size: .8rem; color: #6b7390; text-align: right;
  padding: .75rem 0 .25rem; margin: 0; position: relative; z-index: 2; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-step h3 { white-space: normal; }
  .dims-grid { grid-template-columns: repeat(2, 1fr); }
  .dim-card:nth-child(1),
  .dim-card:nth-child(2),
  .dim-card:nth-child(3),
  .dim-card:nth-child(4),
  .dim-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .hero-headline { font-size: 2.5rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .waitlist-row { flex-direction: column; max-width: 100%; }
  .waitlist-row input[type=email] { width: 100%; padding: .65rem .9rem; font-size: .9375rem; }
  .waitlist-row button[type=submit] { width: 100%; justify-content: center; }
  .section-title { font-size: 1.5rem; }
  .dims-grid { grid-template-columns: 1fr; }
  .dim-card-body h3 { font-size: 1.25rem; }
  .dim-card-body p { font-size: 1rem; }
  .dim-card-name { font-size: .7rem; }
  .hero-mockup::before { display: block; }
}
