/* Infinitrade — marketing + auth surfaces. Consumes tokens.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; background: none; border: none; outline: none; }
.mono { font-family: var(--font-mono); }

/* Visible keyboard focus (DESIGN_SYSTEM.md: 2px accent ring @ 2px offset, never removed).
   `input { outline:none }` only suppresses the default; focus-visible restores it for a11y. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible,
.oauth-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-control);
}

/* atmosphere */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(34,211,238,0.10), transparent 70%),
              radial-gradient(ellipse 50% 40% at 85% 8%, rgba(167,139,250,0.06), transparent 70%); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-control);
  font-size: 14px; font-weight: 600; color: var(--text-primary); border: 1px solid var(--border-default);
  background: var(--bg-panel); white-space: nowrap; transition: all var(--dur-fast) var(--ease-standard); }
.btn:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.btn.primary { background: var(--accent); color: #042b32; border-color: transparent; }
.btn.primary:hover { background: #4be1f1; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn.ghost:hover { color: var(--text-primary); }
.btn.lg { padding: 14px 24px; font-size: 15px; }
.btn.block { width: 100%; justify-content: center; }

/* ===== nav ===== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(5,7,11,0.72); border-bottom: 1px solid var(--border-subtle); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.logo .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--grad-brand); position: relative; }
.logo .mark::after { content:''; position: absolute; inset: 3px; background: var(--bg-app); border-radius: 3px; }
.logo .s { color: var(--text-muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.nav-links a { padding: 7px 12px; font-size: 14px; color: var(--text-secondary); border-radius: var(--r-control); }
.nav-links a:hover { color: var(--text-primary); background: var(--bg-panel); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ===== hero ===== */
.hero { padding: 92px 0 64px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-pill); padding: 5px 13px; margin-bottom: 26px; }
.hero h1 { font-size: 58px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 880px; margin: 0 auto 20px; }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--text-secondary); max-width: 660px; margin: 0 auto 32px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.hero-note b { color: var(--text-secondary); font-weight: 500; }

/* hero product visual */
.hero-visual { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; max-width: 940px; margin-left: auto; margin-right: auto;
  background: var(--bg-shell); border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-lg); text-align: left; }
.hv-panel { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--r-panel); overflow: hidden; }
.hv-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--border-subtle); font-size: 11px; color: var(--text-tertiary); }
.hv-head .dot { width: 7px; height: 7px; border-radius: 50%; }
.hv-body { padding: 13px; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--text-secondary); }
.hv-body .k { color: var(--evidence); } .hv-body .v { color: var(--accent); } .hv-body .n { color: var(--pass); }
.hv-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px; }
.hv-stat { background: var(--bg-shell); border: 1px solid var(--border-subtle); border-radius: var(--r-control); padding: 9px 11px; }
.hv-stat .l { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.hv-stat .v { font-family: var(--font-mono); font-size: 16px; color: var(--text-primary); margin-top: 3px; }
.hv-stat .v.pos { color: var(--pass); }
.hv-mini-fills { padding: 0 13px 13px; }
.hv-fill { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; padding: 4px 0; border-top: 1px solid var(--border-subtle); }
.hv-fill .buy { color: var(--pass); } .hv-fill .sell { color: var(--block); }

/* logos / anti-positioning strip */
.strip { padding: 30px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.strip-inner { display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--text-tertiary); }
.strip-inner b { color: var(--text-secondary); font-weight: 500; }

/* ===== sections ===== */
.section { padding: 80px 0; }
.section-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.section-title { font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; max-width: 620px; margin-bottom: 16px; }
.section-lead { font-size: 17px; color: var(--text-secondary); max-width: 600px; line-height: 1.6; }
.section-head.center { text-align: center; }
.section-head.center .section-title, .section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* feature grid (demand stack) */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feat { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 24px; }
.feat .ficon { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border-default); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.feat .ftag { display: inline-block; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 12px; padding: 2px 8px; border: 1px solid var(--border-subtle); border-radius: var(--r-pill); }

/* spine */
.spine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-panel); }
.spine-step { padding: 26px 22px; border-right: 1px solid var(--border-subtle); position: relative; }
.spine-step:last-child { border-right: 0; }
.spine-step .sn { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.spine-step .sicon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.spine-step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.spine-step p { font-size: 13px; color: var(--text-tertiary); line-height: 1.55; }
.spine-step .arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-app); border: 1px solid var(--border-default); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); }

/* split feature row */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-row + .split-row { margin-top: 72px; }
.split-row.rev .split-visual { order: -1; }
.split-visual { background: var(--bg-shell); border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-md); }
.split-text h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.split-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-primary); }
.checklist li .ci { width: 20px; height: 20px; border-radius: 6px; background: var(--pass-soft); border: 1px solid rgba(52,211,153,0.3); color: var(--pass); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* trust tiers strip */
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.tier { border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; background: var(--bg-panel); }
.tier.featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--bg-panel); }
.tier .tname { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tier p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.price-card { border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 28px 24px; background: var(--bg-panel); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-lg); }
.price-card .pname { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.price-card .pprice { font-family: var(--font-mono); font-size: 40px; font-weight: 500; margin: 14px 0 4px; letter-spacing: -0.02em; }
.price-card .pprice span { font-size: 15px; color: var(--text-tertiary); font-family: var(--font-sans); }
.price-card .pdesc { font-size: 13.5px; color: var(--text-tertiary); margin-bottom: 20px; min-height: 40px; }
.price-card .pfeats { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.price-card .pfeats li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-primary); align-items: flex-start; }
.price-card .pfeats li .ci { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 2px 9px; margin-left: auto; }

/* final cta */
.cta-band { padding: 88px 0; text-align: center; }
.cta-band h2 { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 16px; }
.cta-band p { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; }

/* footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer .logo { margin-bottom: 14px; }
.footer .fdesc { font-size: 13px; color: var(--text-tertiary); max-width: 260px; line-height: 1.6; }
.footer h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { font-size: 13.5px; color: var(--text-secondary); }
.footer ul a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-muted); }
.footer-bottom .grow { flex: 1; }
.disclaimer { font-size: 11.5px; color: var(--text-muted); line-height: 1.6; margin-top: 18px; max-width: 720px; }

/* ===== login ===== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-visual { position: relative; overflow: hidden; border-right: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--bg-shell), var(--bg-app)); padding: 48px; display: flex; flex-direction: column; }
.auth-visual .av-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 30% 20%, rgba(34,211,238,0.12), transparent 70%); pointer-events: none; }
.auth-visual .logo { position: relative; z-index: 1; }
.auth-visual .av-mid { margin: auto 0; position: relative; z-index: 1; }
.auth-visual .av-quote { font-size: 26px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; max-width: 440px; margin-bottom: 24px; }
.auth-visual .av-quote .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-trust { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.auth-trust .at-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.auth-trust .at-row .ai { width: 30px; height: 30px; border-radius: 8px; background: var(--pass-soft); border: 1px solid rgba(52,211,153,0.3); color: var(--pass); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-foot { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.auth-card .ac-sub { font-size: 14px; color: var(--text-tertiary); margin-bottom: 28px; }
.oauth-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border-radius: var(--r-control); border: 1px solid var(--border-default); background: var(--bg-panel); font-size: 14px; font-weight: 500; }
.oauth-btn:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-bottom: 7px; }
.field .input { display: flex; align-items: center; gap: 9px; background: var(--bg-input); border: 1px solid var(--border-default); border-radius: var(--r-control); padding: 11px 13px; }
.field .input:focus-within { border-color: var(--accent-line); }
.field .input input { flex: 1; font-size: 14px; }
.field .input .ic { color: var(--text-muted); }
.field .flink { float: right; font-size: 12.5px; color: var(--accent); font-weight: 400; }
.auth-card .submit { margin-top: 6px; }
.auth-card .switch { text-align: center; font-size: 13.5px; color: var(--text-tertiary); margin-top: 22px; }
.auth-card .switch a { color: var(--accent); font-weight: 500; }
.auth-legal { text-align: center; font-size: 11.5px; color: var(--text-muted); margin-top: 26px; line-height: 1.5; }
.auth-legal a { color: var(--text-tertiary); text-decoration: underline; }

@media (max-width: 920px) {
  .auth-visual { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .feat-grid, .spine, .price-grid, .tier-row { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 40px; }
}
