/* Trades21 responsive refinement. Loaded after styles.css on every page. */
:root { --nav-height: 82px; color-scheme: dark; }
html { scroll-padding-top: calc(var(--nav-height) + 20px); -webkit-text-size-adjust: 100%; }
body { min-width: 0; }
main, section, nav, form { min-width: 0; }
svg:where(:not([width="0"])) { width: 24px; height: 24px; }
img { height: auto; }
:where(h1, h2, h3, p, label, strong, .btn) { overflow-wrap: anywhere; }
:where(a, button, input, select):focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
:where(a, button) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(.market-grid, .mini-grid, .feature-grid, .vision-grid, .strategy-grid, .approach-grid, .join-grid, .info-grid, .faq-grid, .footer-grid, .auth-layout, .form-grid) > * { min-width: 0; }
.panel, .field, .input-wrap, .asset-name, .asset-name > span, .feature-copy, .thank-card { min-width: 0; }
.field input, .field select { min-width: 0; max-width: 100%; font-size: 16px; }
.field label { font-size: .875rem; }
.field input[name="password"], .field input[name="password_confirmation"] { padding-right: 52px; }
.input-wrap > svg, .password-toggle svg { height: 18px; }
.password-toggle { width: 44px; height: 44px; top: 3px; }
.form-error:empty { display: none; }
.form-error { font-size: .8125rem; }
.form-row { flex-wrap: wrap; font-size: .875rem; }
.form-row .check, .form-row > a { min-height: 44px; display: inline-flex; align-items: center; }
.check input { flex: 0 0 18px; width: 18px; height: 18px; }
.auth-switch { font-size: .9375rem; }
.terms-copy { font-size: .8125rem; line-height: 1.65; }
.auth-section > .shell, .thank-section > .shell { width: min(1180px, calc(100vw - 36px)); }
.thank-card { margin-inline: auto; }
.brand { justify-self: start; white-space: nowrap; }
.brand-mark, .panel-title-icon, .coin { flex-shrink: 0; }
.brand-mark svg { width: 24px; height: 24px; }
.hero { isolation: isolate; overflow: clip; }
.hero-proof svg { width: 18px; height: 18px; }
.vision-icon svg { width: 25px; height: 25px; }
.strategy-top svg { width: 22px; height: 22px; }
.info-card > svg { width: 36px; height: 36px; }
.faq-question { grid-template-columns: 38px minmax(0, 1fr) 20px; }
.faq-question > svg:first-child { width: 27px; height: 27px; }
.faq-chevron { width: 20px; height: 20px; }
.socials svg { width: 18px; height: 18px; }
.auth-badge svg { width: 15px; height: 15px; }
.success-icon svg { width: 42px; height: 42px; }
.btn { min-height: 48px; padding-block: 11px; line-height: 1.4; text-align: center; }
.btn svg { width: 16px; height: 16px; }
.ticker-tabs { max-width: 100%; overscroll-behavior-x: contain; scroll-padding-inline: 4px; }
.ticker-tab { min-height: 44px; font-size: .8125rem; }
.asset-head { flex-wrap: wrap; }
.asset-name strong { font-size: .9375rem; }
.asset-name small { display: block; font-size: .75rem; }
.asset-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-svg, .strategy-chart, .sparkline { max-width: 100%; }
.chart-svg { width: 100%; height: 210px; overflow: hidden; }
.strategy-chart { width: 100%; height: 82px; }
.sparkline { width: 100%; height: 38px; }
.mini-symbol { font-size: .75rem; }
.mini-change { font-size: .75rem; }
.terminal-bar { flex-wrap: wrap; font-size: .75rem; }
.info-card { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 20px; }
.feature-copy p, .vision-card p, .strategy-card p, .approach-step p, .join-card p, .info-card p, .faq-answer p { font-size: 1rem; line-height: 1.6; }
.risk-note, .microcopy, .footer-bottom, .thank-details { font-size: .8125rem; }
.feature-card img { height: 100%; }
.footer-column a { max-width: 100%; min-height: 44px; margin: 0; display: flex; align-items: center; font-size: .875rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; }
.footer-blurb { font-size: .9375rem; }
.cta-inner > .btn { flex-shrink: 0; }
/* Transform-only pointer effect: no full-page background repaint on touch. */
body::after { display: none; }
.pointer-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 197, 76, .16), rgba(232, 170, 53, .05) 35%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  will-change: transform;
  transition: opacity .35s ease;
}
.pointer-glow.active { opacity: 1; }

@media (max-width: 1120px) {
  :root { --nav-height: 72px; }
  .site-header { background: rgba(3, 5, 4, .95); border-color: var(--border-soft); }
  .nav-wrap { min-height: var(--nav-height); grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    inset: calc(100% + 8px) 18px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    align-content: start;
    gap: 4px;
    padding: 12px;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #070a08;
    box-shadow: 0 20px 45px rgba(0,0,0,.5);
    z-index: 60;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { min-height: 46px; padding: 11px 14px; font-size: .9375rem; border-radius: 8px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(232,170,53,.07); }
  .nav-links .mobile-only-link { display: block; color: var(--gold-bright); border: 1px solid var(--border); margin-top: 4px; }
  .nav-links .mobile-only-link:last-child { color: #161005; background: linear-gradient(135deg, #ffe197, var(--gold)); }
  .info-grid, .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-card:not(:last-child)::after { display: none; }
  .auth-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .auth-copy { padding: 32px; }
  .auth-form-wrap { padding: 36px 28px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
}

@media (max-width: 900px) {
  .market-grid, .approach-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid, .vision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { min-height: 400px; padding: 24px; align-items: flex-end; }
  .feature-card::after { background: linear-gradient(0deg, #030504, rgba(3,5,4,.88) 30%, transparent 80%); }
  .feature-copy { max-width: 100%; }
  .vision-card { padding: 24px; }
  .vision-card p { max-width: 100%; padding-right: 0; }
  .vision-card::before, .vision-card::after { opacity: .3; }
  .strategy-grid { grid-template-columns: minmax(0, 1fr); }
  .strategy-card p { min-height: 0; }
  .terminal { min-height: 365px; }
  .candle-chart { height: 270px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child, .footer-column:last-child { grid-column: 1 / -1; }
  .auth-section, .thank-section { min-height: 0; padding: 36px 0; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .auth-form-wrap { grid-column: 1; grid-row: 1; padding: 32px; }
  .auth-copy { grid-column: 1; grid-row: 2; min-height: 290px; border-top: 1px solid var(--border); }
  .auth-copy h1 { font-size: 2rem; max-width: 16ch; }
  .auth-copy p { max-width: 48ch; }
  .auth-badges { display: none; }
}

@media (max-width: 820px) {
  .shell, .auth-section > .shell, .thank-section > .shell { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .section-tight { padding: 32px 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: clamp(1.75rem, 4.8vw, 2.6rem); line-height: 1.16; }
  .section-heading p { font-size: 1rem; line-height: 1.65; }
  .hero { flex-direction: column; padding: 0; min-height: 0; gap: 0; }
  .hero > .shell { order: 1; }
  .hero-content { width: 100%; max-width: 650px; margin-inline: auto; padding: 40px 0 16px; text-align: center; }
  .hero .eyebrow { justify-content: center; max-width: 100%; font-size: .75rem; letter-spacing: .11em; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2rem, 7.3vw, 3.75rem); line-height: 1.12; letter-spacing: -.04em; }
  .hero-copy { margin: 18px auto 24px; font-size: 1rem; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 440px; margin-inline: auto; }
  .hero-actions .btn { padding-inline: 12px; width: 100%; font-size: .875rem; }
  .hero-proof { margin-top: 22px; gap: 18px; flex-wrap: wrap; font-size: .8125rem; justify-content: center; }
  .hero-proof span { gap: 6px; }
  .hero::before {
    position: relative;
    inset: auto;
    order: 2;
    flex: none;
    width: min(100%, 640px);
    height: clamp(245px, 68vw, 390px);
    margin: 0 auto;
    background: linear-gradient(180deg, #030504 0%, transparent 18%, transparent 78%, #030504 100%), url("./hero-android.webp") 64% 40% / cover no-repeat;
    background-size: 100% 100%, cover;
    opacity: 1;
    z-index: 0;
    animation: none;
    transform: none;
  }
  .hero::after { display: none; }
  .panel { border-radius: 14px; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-market { min-height: 125px; }
  .mini-value { font-size: 1rem; }
  .feature-grid, .vision-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { min-height: 360px; }
  .feature-copy { max-width: 100%; }
  .feature-card img { object-position: 60% center; }
  .vision-card { min-height: 220px; }
  .vision-icon { margin-bottom: 28px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { min-height: 0; flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta h2 { font-size: clamp(1.75rem, 5.4vw, 2.4rem); line-height: 1.18; }
  .thank-card { padding: 44px 28px; }
  .thank-card h1 { font-size: clamp(1.8rem, 6vw, 2.7rem); }
  .thank-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thank-actions .btn { width: 100%; padding-inline: 12px; }
  .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  :root { --nav-height: 68px; }
  .brand { font-size: 1.45rem; }
  .nav-links { left: 12px; right: 12px; }
  .section-heading .eyebrow { font-size: .75rem; letter-spacing: .12em; }
  .market-panel { padding: 12px; }
  .panel-topbar { align-items: flex-start; gap: 10px; flex-direction: column; margin-bottom: 12px; }
  .panel-title { font-size: 1rem; gap: 9px; line-height: 1.3; }
  .panel-title-icon { width: 30px; height: 30px; }
  .microcopy { display: block; font-size: .75rem; }
  .ticker-tabs { gap: 6px; padding-bottom: 12px; }
  .ticker-tab { padding: 8px 12px; }
  .big-chart { padding: 14px; min-height: 0; }
  .asset-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .asset-name { gap: 10px; }
  .asset-name strong { font-size: .875rem; }
  .asset-head > div:last-child { padding-left: 0; }
  .asset-price { font-size: 1.5rem; }
  .asset-change { font-size: .8125rem; }
  .coin { width: 36px; height: 36px; }
  .chart-range { margin-top: 14px; font-size: .75rem; gap: 18px; }
  .chart-svg { height: auto; aspect-ratio: 740 / 240; min-height: 120px; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mini-market {  min-height: 126px; }
  .mini-symbol { font-size: .75rem; gap: 5px; }
  .mini-value { font-size: .9375rem; }
  .mini-change { font-size: .75rem; }
  .feature-card { min-height: 365px; padding: 22px; }
  .feature-card::after { background: linear-gradient(0deg, #030504 0%, rgba(3,5,4,.94) 27%, rgba(3,5,4,.3) 65%, transparent); }
  .feature-copy { max-width: 100%; }
  .vision-card { padding: 22px; }
  .vision-card p { padding: 0; max-width: 100%; }
  .strategy-card { padding: 22px; }
  .terminal { padding: 12px; min-height: 275px; }
  .terminal-bar { gap: 8px; font-size: .75rem; }
  .candle-chart { height: 210px; margin-top: 12px; }
  .candles { inset: 14px 4px 20px; gap: 4px; }
  .candle { min-width: 0; }
  .approach-step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .step-number { width: 42px; height: 42px; }
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .join-card { min-height: 0; padding: 18px 12px; }
  .join-index { width: 30px; height: 30px; margin-bottom: 8px; }
  .join-icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .join-icon svg { width: 42px; height: 42px; }
  .join-card h3 { font-size: .9375rem; line-height: 1.4; }
  .join-card p { font-size: 1rem; line-height: 1.5; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info-card { padding: 20px; grid-template-columns: 34px minmax(0, 1fr); }
  .info-card h3 { font-size: 1rem; }
  .faq-question { padding: 18px 14px; grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 10px; }
  .faq-question > svg:first-child { width: 24px; height: 24px; }
  .faq-chevron { width: 18px; height: 18px; }
  .faq-question strong { font-size: .9375rem; line-height: 1.5; }
  .faq-answer p { padding: 0 16px 20px; }
  .cta-inner > .btn { width: 100%; }
  .footer-grid { gap: 24px 16px; padding-bottom: 24px; }
  .footer-column h3 { font-size: .8125rem; letter-spacing: .08em; margin-bottom: 10px; }
  .footer-column a { font-size: .875rem; line-height: 1.4; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .auth-section { padding: 24px 0; }
  .auth-layout { border-radius: 18px; }
  .auth-form-wrap { padding: 26px 18px; }
  .auth-form-head h2 { font-size: 1.75rem; }
  .auth-form-head p { font-size: 1rem; margin-bottom: 24px; }
  .field { margin-bottom: 18px; gap: 8px; }
  .field input { min-height: 52px; }
  .password-toggle { top: 4px; }
  .auth-copy { padding: 28px 20px; min-height: 270px; background-position: 66% center; }
  .auth-copy h1 { font-size: 1.8rem; }
  .auth-copy p { font-size: 1rem; }
  .thank-section { padding: 32px 0; }
  .thank-card { padding: 42px 20px; border-radius: 18px; }
  .success-orbit { width: 100px; height: 100px; margin-bottom: 24px; }
  .thank-actions { grid-template-columns: minmax(0, 1fr); }
  .thank-details { margin-top: 24px; padding: 14px; font-size: .875rem; }
}

@media (max-width: 359px) {
  .shell, .auth-section > .shell, .thank-section > .shell { width: calc(100% - 24px); }
  .hero-actions { grid-template-columns: minmax(0, 1fr); max-width: 280px; }
  .hero-proof { gap: 10px; font-size: .75rem; }
  .hero-proof svg { width: 16px; height: 16px; }
  .mini-market { padding: 9px; }
  .mini-value { font-size: .875rem; }
  .join-grid { grid-template-columns: minmax(0, 1fr); }
  .join-card { padding: 20px; }
  .terminal-dots { display: none; }
  .form-row { gap: 0 14px; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-aura { display: none; }
  .pointer-glow { width: 240px; height: 240px; }
  .reveal { transition-duration: .45s; }
}

@media (prefers-reduced-motion: reduce) {
  .pointer-glow, .cursor-aura, .touch-particle { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
