:root {
  --paper: #ffffff;
  --tint: #f4f5f7;
  --ink: #15181d;
  --ink-2: #434a55;
  --muted: #6b7380;
  --line: #e4e6ea;
  --line-2: #cfd3da;
  --char: #1d2127;
  --char-2: #2a2f37;
  --dark-line: rgba(255,255,255,.09);
  --dark-muted: #a3aab5;
  --green: #12925a;
  --red: #cc3a32;
  --green-d: #3ddc8a;
  --red-d: #ff6b62;
  --amber: #b26a00;
  --btn-grad: linear-gradient(180deg, #3a404a 0%, #1d2127 100%);
  --btn-grad-hover: linear-gradient(180deg, #474e59 0%, #23272e 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #8a93a3; outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono, .num { font-variant-numeric: tabular-nums; }

/* buttons: charcoal with a soft vertical gradient and a hairline top highlight */
.btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 16px 'IBM Plex Sans', sans-serif; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--btn-grad); color: #fff; border-color: #14171b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(21,24,29,.25);
}
.btn-primary:hover { background: var(--btn-grad-hover); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(21,24,29,.06); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white {
  background: linear-gradient(180deg, #ffffff 0%, #e9ebef 100%); color: var(--ink); border-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.btn-white:hover { background: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline:hover { border-color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 9px; }

/* logo */
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.015em; color: var(--ink); }
.logo svg { width: 38px; height: 28px; flex: none; }
.logo .p1 { fill: currentColor; } .logo .p2 { fill: #7b8290; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 40px; }
.nav-links { display: flex; gap: 30px; color: var(--ink-2); font-size: 15px; }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-cta .login { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 0 12px; }
.nav-cta .login:hover { color: var(--ink); }

/* hero */
.hero { padding: 76px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 640px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle, #d3d7de 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-text { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; }
h1 { font-size: 66px; line-height: 1.03; letter-spacing: -.04em; font-weight: 600; }
h1 .line { display: block; overflow: hidden; }
h1 .line > span { display: block; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
h1 .line:nth-child(2) > span { animation-delay: .08s; }
h1 .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-side { animation: fadein .8s .3s both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead { color: var(--ink-2); font-size: 19px; max-width: 460px; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* the mirror terminal: dark, the one bold piece of the page */
.mirror {
  margin-top: 56px; border-radius: 20px; overflow: hidden; position: relative; color: #fff;
  background: radial-gradient(120% 140% at 50% -20%, #3a414c 0%, #1d2127 45%, #121418 100%);
  box-shadow: 0 30px 60px -20px rgba(21,24,29,.45), 0 0 0 1px rgba(21,24,29,.9);
  animation: fadein .9s .45s both;
}
.mirror::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.mirror-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--dark-line); font-size: 14px; color: var(--dark-muted); }
.mirror-grid { display: grid; grid-template-columns: 1fr 130px 1fr; }
.side-acct { padding: 24px 26px 28px; min-width: 0; }
.side-acct header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 12px; }
.side-acct h3 { font-size: 15px; font-weight: 600; }
.side-acct .meta { font-size: 13px; color: var(--dark-muted); }
.side-acct .bal { font-size: 36px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 18px; }
.side-acct .bal small { font-size: 14px; font-weight: 500; color: var(--dark-muted); letter-spacing: 0; margin-left: 6px; }
.rows { display: flex; flex-direction: column; gap: 6px; min-height: 212px; }
.trow { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.trow.fresh { animation: land .6s ease; }
@keyframes land { from { opacity: 0; transform: translateY(-6px); background: rgba(255,255,255,.18); } 50% { opacity: 1; transform: none; background: rgba(255,255,255,.14); } to { background: rgba(255,255,255,.05); } }
.trow .lots { color: var(--dark-muted); }
.bridge { border-left: 1px solid var(--dark-line); border-right: 1px solid var(--dark-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 8px; text-align: center; }
.bridge svg { color: #fff; opacity: .8; }
.bridge b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.bridge span { font-size: 12px; color: var(--dark-muted); line-height: 1.3; }
.bridge .beam { width: 100%; height: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; border-radius: 2px; }
.bridge .beam i { position: absolute; left: -50%; top: 0; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, #fff, transparent); }
.bridge .beam i.go { animation: beam .45s ease-out; }
@keyframes beam { to { left: 100%; } }
.side { font-weight: 700; font-size: 13px; }
.buy { color: var(--green); } .sell { color: var(--red); }
.mirror .buy, .dark .buy { color: var(--green-d); } .mirror .sell, .dark .sell { color: var(--red-d); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.status.live { color: var(--green); } .status.paused { color: var(--amber); }
.mirror .status.live { color: var(--green-d); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.paused { background: var(--amber); }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.facts div { padding: 30px 24px 34px 0; }
.facts b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.facts div > span { color: var(--muted); font-size: 15px; }

/* sections */
section { padding: 104px 0; }
.band { background: var(--tint); }
h2 { font-size: 42px; letter-spacing: -.035em; line-height: 1.1; font-weight: 600; max-width: 640px; }
.sec-lead { color: var(--ink-2); max-width: 560px; margin-top: 14px; }
.sec-top { margin-bottom: 52px; }

/* reveal on scroll (one subtle motion, used on section heads only) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 30px; position: relative; }
.steps .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--btn-grad); color: #fff; font-size: 15px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.steps h3 { font-size: 21px; font-weight: 600; margin: 18px 0 8px; letter-spacing: -.015em; }
.steps p { color: var(--ink-2); font-size: 16px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -21px; width: 22px; height: 1px; background: var(--line-2); }

/* features */
.feat { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.feat dl div { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.feat dl div:last-child { border-bottom: 1px solid var(--line); }
.feat dt { font-weight: 600; }
.feat dd { color: var(--ink-2); font-size: 16px; }
.map-sample { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.map-sample p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.map-sample table { width: 100%; border-collapse: collapse; }
.map-sample td { padding: 8px 0; border-top: 1px solid var(--line); }
.map-sample td:last-child { text-align: right; font-weight: 600; }

/* dark section */
.dark {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1d2127 0%, #131519 100%);
}
.dark::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.dark .wrap { position: relative; }
.dark h2 { color: #fff; }
.dark .sec-lead { color: var(--dark-muted); }

/* comparison (on dark) */
.compare { border: 1px solid var(--dark-line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--dark-line); }
.compare thead th { font-weight: 600; font-size: 15px; color: var(--dark-muted); }
.compare thead th.us { color: var(--ink); background: linear-gradient(180deg, #ffffff, #e6e8ec); }
.compare td.us { background: rgba(255,255,255,.07); font-weight: 600; color: #fff; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--dark-muted); }
.compare td { color: #d6dae0; }
.yes::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-d); margin-right: 9px; vertical-align: 1px; }
.compare .no { color: #6f7783; }

/* pricing (on dark) */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier { padding: 32px 28px; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--dark-line); background: rgba(255,255,255,.03); }
.tier.pick { background: linear-gradient(180deg, #ffffff 0%, #eceef2 100%); color: var(--ink); border-color: #fff; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.tier h3 { font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; background: var(--char); color: #fff; padding: 3px 10px; border-radius: 7px; }
.tier .for { color: var(--dark-muted); font-size: 15px; margin-top: 4px; }
.tier.pick .for, .tier.pick li { color: var(--ink-2); }
.price { font-size: 54px; font-weight: 600; letter-spacing: -.035em; margin: 22px 0 4px; line-height: 1; }
.price .per { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--dark-muted); }
.tier.pick .price .per { color: var(--muted); }
.tier ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 15px; color: #d6dae0; }
.tier li::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-3px); margin-right: 12px; opacity: .7; }
.tier .btn { margin-top: auto; }
.price-note { color: var(--dark-muted); font-size: 14px; margin-top: 18px; }
.split-gap { height: 104px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin-top: 10px; max-width: 620px; }

/* banner */
.banner {
  position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 56px 60px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: radial-gradient(140% 160% at 0% 0%, #3d444f 0%, #1d2127 50%, #111316 100%);
}
.banner::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent);
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -40%; } 100% { left: 110%; } }
.banner > * { position: relative; }
.banner h2 { color: #fff; font-size: 36px; }
.banner p { color: var(--dark-muted); margin-top: 8px; }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

footer { margin-top: 104px; background: #121418; color: var(--dark-muted); padding: 60px 0 40px; font-size: 14px; }
footer .logo { color: #fff; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-links { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-links div { display: grid; gap: 8px; align-content: start; }
.foot-links b { color: #fff; font-size: 15px; margin-bottom: 4px; }
.foot-links a:hover { color: #fff; }
.risk { border-top: 1px solid var(--dark-line); padding-top: 24px; display: grid; gap: 10px; max-width: 880px; }
.risk b { color: #fff; }

/* ===== APP ===== */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; background: var(--tint); }
.side-nav { background: linear-gradient(180deg, #1d2127 0%, #15171b 100%); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.side-nav .logo { padding: 0 10px 24px; color: #fff; }
.side-nav a:not(.logo) { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--dark-muted); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.side-nav a:not(.logo):hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(255,255,255,.1) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.side-nav a svg { flex: none; }
.side-foot { margin-top: auto; padding: 16px; border: 1px solid var(--dark-line); border-radius: 12px; font-size: 14px; color: var(--dark-muted); background: rgba(255,255,255,.03); }
.side-foot b { color: #fff; display: block; }
.side-foot .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin: 10px 0 14px; overflow: hidden; }
.side-foot .bar i { display: block; height: 100%; width: 28%; background: #fff; }
.side-foot .btn { width: 100%; }
.side-nav .btn-primary { background: linear-gradient(180deg, #ffffff, #e6e8ec); color: var(--ink) !important; border-color: #fff; }
.main { padding: 28px 36px 64px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.topbar h1 { font-size: 28px; letter-spacing: -.025em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { padding: 18px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat small { color: var(--muted); font-size: 14px; }
.stat b { display: block; font-size: 28px; font-weight: 600; margin-top: 2px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 14px; color: var(--green); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); gap: 12px; }
.panel-head h3 { font-size: 17px; font-weight: 600; }
.link-row { display: grid; grid-template-columns: 1fr 32px 1fr 130px 48px; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.acct { min-width: 0; }
.acct small { display: block; color: var(--muted); font-size: 13px; }
.acct b { font-size: 16px; font-weight: 600; }
.arrow { display: grid; place-items: center; color: var(--muted); }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; cursor: pointer; border: 0; flex: none; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(21,24,29,.3); }
.toggle.on { background: var(--btn-grad); }
.toggle.on::after { left: 21px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 14px; padding: 11px 22px; border-bottom: 1px solid var(--line); }
td { padding: 12px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.new td { animation: flash 1.4s ease; }
@keyframes flash { from { background: #eceef2; } to { background: transparent; } }
.pos { color: var(--green); } .neg { color: var(--red); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%; height: 46px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--ink); padding: 0 14px; font: 16px 'IBM Plex Sans', sans-serif; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #e3e6eb; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.setting b { font-weight: 600; }
.setting p { font-size: 14px; color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--char); color: var(--ink); border-radius: 10px; padding: 12px 16px; font-size: 15px; margin-bottom: 20px; }
.notice svg { color: var(--ink-2); flex: none; }
.notice a { margin-left: auto; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(21,24,29,.5); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-bg.open { display: flex; }
.modal { background: var(--paper); border-radius: 16px; width: 100%; max-width: 460px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.modal .panel-head button { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; width: 40px; height: 40px; border-radius: 8px; }
.modal .panel-head button:hover { background: var(--tint); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 600 15px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(21,24,29,.15); }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--char); color: #fff; border-radius: 10px; padding: 12px 18px; font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.view { display: none; } .view.on { display: block; }
.empty { padding: 28px 22px; color: var(--muted); font-size: 15px; }
.table-scroll { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero-text, .feat, .faq-grid, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .steps, .prices { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px 16px 20px 0; }
  .facts b { font-size: 24px; }
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
  section { padding: 76px 0; }
  .split-gap { height: 72px; }
  .nav-links { display: none; }
  .mirror-grid { grid-template-columns: 1fr; }
  .bridge { flex-direction: row; border: 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); justify-content: flex-start; gap: 14px; padding: 12px 26px; }
  .bridge .beam { display: none; }
  .bridge svg { transform: rotate(90deg); }
  .rows { min-height: 0; }
  .feat dl div { grid-template-columns: 1fr; gap: 4px; }
  .banner { grid-template-columns: 1fr; padding: 40px 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 10px 16px; position: sticky; top: 0; z-index: 10; }
  .side-nav .logo, .side-foot { display: none; }
  .side-nav a:not(.logo) { flex: none; }
  .main { padding: 20px 16px 64px; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row .arrow { display: none; }
  .link-row .acct { grid-column: 1 / -1; }
  .compare th, .compare td { padding: 14px; font-size: 15px; }
}
@media (max-width: 520px) {
  .nav-cta .login { display: none; }
  h1 { font-size: 40px; }
  .side-acct .rows .trow:nth-child(n+4) { display: none; }
  .stat b { font-size: 22px; }
  .stat { padding: 14px 16px; }
  .banner h2 { font-size: 28px; }
}

/* ===== mobile polish ===== */
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav .wrap { gap: 12px; }
  .mobile-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 20px 30px -20px rgba(21,24,29,.25); transform-origin: top; transform: scaleY(.96); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  .nav.open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
  .mobile-menu .btn { display: flex; width: 100%; margin-top: 16px; border-bottom: 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 40px; }
  h1 { font-size: 38px; letter-spacing: -.035em; }
  .lead { font-size: 17px; }
  .hero-cta .btn, .banner-actions .btn { flex: 1 1 100%; }
  .mirror { margin-top: 36px; border-radius: 16px; }
  .mirror-bar { padding: 12px 16px; font-size: 13px; }
  .side-acct { padding: 18px 16px 20px; }
  .side-acct .bal { font-size: 28px; margin-bottom: 12px; }
  .trow { grid-template-columns: 38px 1fr auto; font-size: 13px; padding: 9px 10px; gap: 8px; }
  .trow > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bridge { padding: 10px 16px; }
  .facts b { font-size: 22px; }
  section { padding: 64px 0; }
  .sec-top { margin-bottom: 32px; }
  h2 { font-size: 28px; }
  .steps li { padding: 22px; }

  /* comparison: one card per row instead of a side-scrolling table */
  .compare { border: 0; background: none; overflow: visible; }
  .compare table, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--dark-line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: rgba(255,255,255,.03); }
  .compare td { border: 0; padding: 10px 16px; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; text-align: right; }
  .compare td::before { content: attr(data-label); color: var(--dark-muted); font-weight: 400; text-align: left; flex: none; max-width: 50%; }
  .compare td:first-child { color: #fff; font-weight: 600; padding-top: 14px; }
  .compare td:first-child::before { display: none; }
  .compare td.us { background: rgba(255,255,255,.08); }
  .compare td.yes::before { content: attr(data-label); width: auto; height: auto; border-radius: 0; background: none; margin: 0; }
  .compare td:last-child { padding-bottom: 14px; }

  .tier { padding: 26px 22px; }
  .price { font-size: 46px; }
  .banner { padding: 32px 22px; border-radius: 18px; }
  .banner h2 { font-size: 26px; }
  footer { margin-top: 72px; }
  .foot-links { gap: 36px; }

  /* dashboard: keep tables readable without sideways scrolling */
  .topbar h1 { font-size: 24px; }
  #recent td:nth-child(4), #recent th:nth-child(4), #recent td:nth-child(6),
  .view#v-overview th:nth-child(4), .view#v-overview th:nth-child(6) { display: none; }
  #all-trades td:nth-child(4), #all-trades td:nth-child(6), #all-trades td:nth-child(7),
  #v-trades th:nth-child(4), #v-trades th:nth-child(6), #v-trades th:nth-child(7) { display: none; }
  td, th { padding-left: 14px; padding-right: 14px; }
  .notice { flex-wrap: wrap; }
  .notice a { margin-left: 32px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
section, .split-gap { scroll-margin-top: 72px; }
@media (max-width: 640px) {
  .compare td { white-space: normal; align-items: baseline; }
  .compare td::before { max-width: 46%; }
  #v-trades td, #v-trades th, #v-overview td, #v-overview th { padding-left: 10px; padding-right: 10px; font-size: 14px; }
}

/* single plan */
.single { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #eceef2 100%); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.single-left { padding: 40px; }
.single-left h3 { font-size: 19px; font-weight: 600; }
.single .price .per { color: var(--muted); }
.single .for { color: var(--ink-2); margin: 10px 0 26px; max-width: 360px; font-size: 16px; }
.single-list { list-style: none; padding: 40px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: center; font-size: 16px; color: var(--ink-2); }
.single-list li::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translateY(-3px); margin-right: 14px; }
@media (max-width: 960px) {
  .single { grid-template-columns: 1fr; }
  .single-list { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .single-left, .single-list { padding: 26px 22px; }
  .single .btn { width: 100%; }
}
