/* ================================================
   TFS SECURITIES — DESIGN SYSTEM
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* -----------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:           #05060A;
  --bg-elevated:  #0C0E14;
  --bg-card:      #0F1117;
  --bg-surface:   rgba(255, 255, 255, 0.04);
  --bg-surface-2: rgba(255, 255, 255, 0.07);

  /* Borders */
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.14);

  /* Accent — Blue */
  --blue:         #0A84FF;
  --blue-dim:     rgba(10, 132, 255, 0.12);
  --blue-glow:    rgba(10, 132, 255, 0.22);

  /* Accent — Gold */
  --gold:         #C9A84C;
  --gold-bright:  #E8C96A;
  --gold-dim:     rgba(201, 168, 76, 0.12);

  /* Text */
  --t1: #F5F5F7;
  --t2: #A1A1A6;
  --t3: #6E6E73;

  /* Status */
  --green: #30D158;
  --red:   #FF453A;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --s1:  4px;  --s2:  8px;  --s3:  12px; --s4:  16px;
  --s5:  20px; --s6:  24px; --s8:  32px; --s10: 40px;
  --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;
  --s32: 128px;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Animation */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-o: cubic-bezier(0.4, 0, 0.2, 1);
  --fast:   150ms;
  --base:   250ms;
  --slow:   400ms;
  --reveal: 680ms;

  /* Layout */
  --max-w:    1200px;
  --nav-h:    72px;
  --section-y: 120px;
}

/* -----------------------------------------------
   2. RESET & BASE
   ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--font); }

/* -----------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.display {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--t1);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--t2); }

.gradient-text {
  background: linear-gradient(135deg, #0A84FF 0%, #5E6AD2 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-balance { text-wrap: balance; }

/* -----------------------------------------------
   4. LAYOUT
   ----------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s12);
}

section { padding: var(--section-y) 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--s16);
}
.section-header .eyebrow { margin-bottom: var(--s3); }
.section-header h2 { margin-bottom: var(--s4); }
.section-header p { font-size: 1.125rem; line-height: 1.7; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

/* -----------------------------------------------
   5. NAVIGATION
   ----------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  padding: 0 var(--s8);
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--base) var(--ease);
}
.nav.scrolled { background: rgba(5, 6, 10, 0.94); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--t1);
  flex-shrink: 0;
}
.nav-logo .logo-mark { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: var(--s1);
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--t2);
  padding: 6px var(--s3);
  border-radius: var(--r-sm);
  transition: color var(--fast), background var(--fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--t1); }
.nav-links a:hover { background: var(--bg-surface); }

.nav-cta { display: flex; align-items: center; gap: var(--s3); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: var(--s2); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--t1); border-radius: 2px;
  transition: transform var(--base) var(--ease), opacity var(--fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; top: var(--nav-h); z-index: 999;
  background: rgba(5, 6, 10, 0.97);
  backdrop-filter: blur(20px);
  padding: var(--s6) var(--s5);
  flex-direction: column; gap: var(--s1);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.125rem; font-weight: 500; color: var(--t2);
  padding: var(--s4);
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--border);
  transition: color var(--fast), background var(--fast);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a:hover { color: var(--t1); background: var(--bg-surface); }
.nav-mobile .btn { margin-top: var(--s5); width: 100%; justify-content: center; }

/* -----------------------------------------------
   6. BUTTONS
   ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font); font-weight: 600; font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--r-md);
  cursor: pointer; border: none;
  transition: all var(--base) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--blue); color: #fff;
}
.btn-primary:hover {
  background: #1a8fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--blue-glow);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent; color: var(--t2);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  color: var(--t1); border-color: rgba(255,255,255,0.28);
  background: var(--bg-surface);
}

.btn-gold { background: var(--gold); color: #0a0800; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-sm  { padding: 8px 16px; font-size: 0.875rem; border-radius: var(--r-sm); }
.btn-lg  { padding: 16px 32px; font-size: 1rem; border-radius: var(--r-lg); }

/* -----------------------------------------------
   7. CARDS
   ----------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  transition: background var(--base), border-color var(--base), transform var(--base) var(--ease);
}
.card:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Feature card with glow */
.card-feature {
  padding: var(--s8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative; overflow: hidden;
  transition: border-color var(--base), transform var(--base) var(--ease), background var(--base);
}
.card-feature::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top left, var(--blue-dim), transparent 65%);
  opacity: 0;
  transition: opacity var(--slow);
  pointer-events: none;
}
.card-feature:hover::after { opacity: 1; }
.card-feature:hover { border-color: rgba(10, 132, 255, 0.28); transform: translateY(-3px); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--blue-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s5);
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.gold { background: var(--gold-dim); }
.card-icon.gold svg { stroke: var(--gold); }
.card-icon.green { background: rgba(48, 209, 88, 0.1); }
.card-icon.green svg { stroke: var(--green); }

/* -----------------------------------------------
   8. HERO
   ----------------------------------------------- */
.page-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--s20)) 0 var(--s20);
  position: relative; overflow: hidden;
}

/* Ambient orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(10,132,255,0.18), transparent 70%);
  top: -200px; right: -150px;
  animation: orbDrift1 12s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.14), transparent 70%);
  bottom: -100px; left: 5%;
  animation: orbDrift2 14s ease-in-out infinite;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(94,106,210,0.14), transparent 70%);
  top: 35%; left: 35%;
  animation: orbDrift3 10s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-30px, 25px) scale(1.05); }
  70%      { transform: translate(20px, -20px) scale(0.97); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  45%      { transform: translate(25px, -30px) scale(1.08); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-20px, 20px); }
}

/* Dot grid */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--blue-dim);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 0.8125rem; font-weight: 500; color: var(--blue);
  margin-bottom: var(--s8);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: pulseGlow 2.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(10,132,255,0.5); }
  50%      { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 4px rgba(10,132,255,0); }
}

.hero-title {
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: var(--t1);
  margin-bottom: var(--s6);
}

.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--t2); line-height: 1.75;
  max-width: 520px;
  margin-bottom: var(--s10);
}

.hero-actions { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }

.hero-trust {
  display: flex; align-items: center; gap: var(--s6);
  margin-top: var(--s10);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 0.8125rem; color: var(--t3); font-weight: 500;
}
.hero-trust-item svg { width: 14px; height: 14px; stroke: var(--t3); flex-shrink: 0; }

/* -----------------------------------------------
   9. TICKER
   ----------------------------------------------- */
.ticker-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 10px 0;
}
.ticker-outer { position: relative; overflow: hidden; }
.ticker-outer::before,
.ticker-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.ticker-outer::before { left: 0; background: linear-gradient(to right, var(--bg-elevated), transparent); }
.ticker-outer::after  { right: 0; background: linear-gradient(to left, var(--bg-elevated), transparent); }

.ticker-track {
  display: flex; width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s6); white-space: nowrap;
  font-size: 0.8125rem; font-weight: 500;
}
.ticker-item .sym   { color: var(--t1); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.02em; }
.ticker-item .price { color: var(--t1); font-variant-numeric: tabular-nums; }
.ticker-item .up    { color: var(--green); font-weight: 500; }
.ticker-item .dn    { color: var(--red);   font-weight: 500; }
.ticker-sep         { color: var(--border-strong); }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -----------------------------------------------
   10. STATS
   ----------------------------------------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.stat-item {
  background: var(--bg-elevated);
  padding: var(--s8) var(--s6);
  text-align: center;
  transition: background var(--base);
}
.stat-item:hover { background: var(--bg-card); }
.stat-num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--t1); margin-bottom: var(--s2);
}
.stat-num em { color: var(--blue); font-style: normal; }
.stat-lbl { font-size: 0.8125rem; color: var(--t3); font-weight: 500; }

/* -----------------------------------------------
   11. MARKETS PREVIEW (homepage)
   ----------------------------------------------- */
.markets-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
}
.market-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s8); background: var(--bg-surface);
  position: relative; overflow: hidden; cursor: default;
  transition: border-color var(--base), transform var(--base) var(--ease);
}
.market-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-surface), transparent);
  pointer-events: none;
}
.market-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.market-card-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t3); margin-bottom: var(--s3); }
.market-card-title { font-size: 1.375rem; font-weight: 700; margin-bottom: var(--s2); }
.market-card-count { font-size: 0.875rem; color: var(--t2); margin-bottom: var(--s6); }

/* Mini chart placeholder */
.mini-chart { width: 100%; height: 60px; margin-bottom: var(--s4); }
.mini-chart path { transition: stroke var(--base); }

/* -----------------------------------------------
   12. PLATFORM MOCKUP
   ----------------------------------------------- */
.platform-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #080a0f;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}
.window-bar {
  background: #0d0f15;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: var(--s3);
}
.w-dot { width: 11px; height: 11px; border-radius: 50%; }
.w-dot-r { background: #FF5F57; }
.w-dot-y { background: #FEBC2E; }
.w-dot-g { background: #28C840; }
.window-bar .w-title {
  margin-left: var(--s4);
  font-size: 0.8125rem; color: var(--t3); font-weight: 500;
}

.window-body {
  display: grid; grid-template-columns: 200px 1fr;
  min-height: 340px;
}
.window-sidebar {
  background: #090b10;
  border-right: 1px solid var(--border);
  padding: var(--s3);
}
.ws-header {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--t3); padding: var(--s2) var(--s2) var(--s3);
}
.ws-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background var(--fast);
}
.ws-item:hover { background: var(--bg-surface); }
.ws-item.active { background: var(--blue-dim); }
.ws-item .ws-sym { font-weight: 600; color: var(--t1); font-size: 0.75rem; }
.ws-item .ws-price { font-size: 0.75rem; color: var(--t2); font-variant-numeric: tabular-nums; }
.ws-item .ws-chg { font-size: 0.6875rem; font-weight: 500; }
.ws-item .ws-chg.up { color: var(--green); }
.ws-item .ws-chg.dn { color: var(--red); }

.window-chart { background: #07090e; padding: var(--s4); display: flex; flex-direction: column; }
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s4);
}
.chart-symbol { font-size: 0.9375rem; font-weight: 700; color: var(--t1); }
.chart-price  { font-size: 1.125rem; font-weight: 700; color: var(--t1); font-variant-numeric: tabular-nums; }
.chart-change { font-size: 0.8125rem; font-weight: 500; color: var(--green); }
.chart-area   { flex: 1; position: relative; }
.chart-svg    { width: 100%; height: 100%; min-height: 220px; }

/* -----------------------------------------------
   13. PLATFORM FEATURE TABS
   ----------------------------------------------- */
.feature-tabs {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s10);
}
.feature-tab {
  padding: var(--s3) var(--s5);
  font-size: 0.875rem; font-weight: 500; color: var(--t3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
  background: none; border-top: none; border-left: none; border-right: none;
}
.feature-tab:hover  { color: var(--t2); }
.feature-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* -----------------------------------------------
   14. MARKETS PAGE
   ----------------------------------------------- */
.market-tabs {
  display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s8);
}
.mkt-btn {
  padding: var(--s2) var(--s5);
  border-radius: var(--r-full);
  font-size: 0.875rem; font-weight: 500; color: var(--t2);
  border: 1px solid var(--border); background: transparent;
  cursor: pointer;
  transition: all var(--fast);
}
.mkt-btn:hover { color: var(--t1); border-color: var(--border-strong); }
.mkt-btn.active { color: var(--blue); background: var(--blue-dim); border-color: rgba(10,132,255,0.3); }

.market-panel { display: none; }
.market-panel.active { display: block; }

.instruments-table { width: 100%; border-collapse: collapse; }
.instruments-table th {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--t3); padding: var(--s3) var(--s4);
  text-align: left; border-bottom: 1px solid var(--border);
}
.instruments-table th:not(:first-child) { text-align: right; }
.instruments-table td {
  padding: var(--s4);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--t2);
  vertical-align: middle;
}
.instruments-table td:not(:first-child) { text-align: right; }
.instruments-table tr:hover td { background: var(--bg-surface); }
.instruments-table tr:last-child td { border-bottom: none; }
.instruments-table .sym-cell  { color: var(--t1); font-weight: 600; }
.instruments-table .desc-cell { font-size: 0.8125rem; color: var(--t3); }
.instruments-table .spread-cell { color: var(--t1); font-variant-numeric: tabular-nums; }
.instruments-table .leverage-cell { color: var(--gold); font-weight: 500; }

.table-wrapper {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}

/* -----------------------------------------------
   15. PRICING
   ----------------------------------------------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s5); align-items: start;
}

.pricing-card {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s8); background: var(--bg-surface);
  position: relative; overflow: hidden;
  transition: border-color var(--base), transform var(--base) var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.05);
}
.pricing-card.enterprise {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.03);
}
.pricing-card-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pricing-card.featured  .pricing-card-bar { background: linear-gradient(90deg, var(--blue), #5E6AD2); }
.pricing-card.enterprise .pricing-card-bar { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }

.pricing-badge {
  display: inline-flex; padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--s4);
}
.pricing-badge.blue   { background: var(--blue-dim); color: var(--blue); }
.pricing-badge.gold   { background: var(--gold-dim); color: var(--gold); }
.pricing-badge.silver { background: rgba(255,255,255,0.06); color: var(--t2); }

.pricing-tier { font-size: 1.625rem; font-weight: 700; margin-bottom: var(--s2); }
.pricing-desc { font-size: 0.875rem; color: var(--t3); margin-bottom: var(--s6); line-height: 1.5; }

.pricing-deposit {
  padding: var(--s5) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: var(--s6);
}
.pricing-deposit .dep-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--t3); margin-bottom: var(--s1); }
.pricing-deposit .dep-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--t1); }

.pricing-spread-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--t3); margin-bottom: var(--s1); }
.pricing-spread-value { font-size: 1rem; font-weight: 600; color: var(--t1); margin-bottom: var(--s6); }

.pricing-features { margin-bottom: var(--s6); }
.pricing-features li {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: 10px 0; font-size: 0.9375rem; color: var(--t2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.pf-check { flex-shrink: 0; margin-top: 2px; stroke: var(--green); fill: none; }
.pf-cross  { flex-shrink: 0; margin-top: 2px; stroke: var(--t3); fill: none; }

/* -----------------------------------------------
   16. ACCORDION / FAQ
   ----------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--s6) 0; gap: var(--s4);
  font-size: 1rem; font-weight: 500; color: var(--t1);
  cursor: pointer; background: none; border: none; font-family: var(--font); text-align: left;
  transition: color var(--fast);
}
.acc-trigger:hover { color: var(--blue); }
.acc-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1px solid var(--border-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--t3);
  transition: transform var(--base) var(--ease), border-color var(--fast), color var(--fast);
}
.acc-icon svg { width: 12px; height: 12px; transition: transform var(--base) var(--ease); }
.accordion-item.open .acc-icon { border-color: var(--blue); color: var(--blue); }
.accordion-item.open .acc-icon svg { transform: rotate(45deg); }

.acc-body { overflow: hidden; max-height: 0; transition: max-height var(--slow) var(--ease); }
.acc-body.open { max-height: 300px; }
.acc-content { padding: 0 0 var(--s6); color: var(--t2); line-height: 1.75; font-size: 0.9375rem; }

/* -----------------------------------------------
   17. TRUST / SECURITY
   ----------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.trust-card {
  padding: var(--s8); border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--bg-surface);
  transition: border-color var(--base), transform var(--base) var(--ease);
}
.trust-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.trust-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s5);
}
.trust-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.trust-icon.blue  { background: var(--blue-dim); }
.trust-icon.blue  svg { stroke: var(--blue); }
.trust-icon.gold  { background: var(--gold-dim); }
.trust-icon.gold  svg { stroke: var(--gold); }
.trust-icon.green { background: rgba(48, 209, 88, 0.1); }
.trust-icon.green svg { stroke: var(--green); }

/* -----------------------------------------------
   18. CONTACT / FORM
   ----------------------------------------------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.form-group { display: flex; flex-direction: column; gap: var(--s2); }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--t2); }
.form-label .req { color: var(--blue); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px 16px;
  font-family: var(--font); font-size: 1rem; color: var(--t1);
  transition: border-color var(--fast), box-shadow var(--fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--t3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.form-select option { background: var(--bg-elevated); }

/* -----------------------------------------------
   19. CTA BANNER
   ----------------------------------------------- */
.cta-banner {
  border-radius: var(--r-xl);
  padding: var(--s16) var(--s12);
  background: linear-gradient(135deg, rgba(10,132,255,0.12) 0%, rgba(94,106,210,0.08) 50%, rgba(201,168,76,0.06) 100%);
  border: 1px solid rgba(10,132,255,0.2);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(10,132,255,0.12), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { position: relative; z-index: 1; margin-bottom: var(--s4); }
.cta-banner p  { position: relative; z-index: 1; margin-bottom: var(--s8); font-size: 1.0625rem; }
.cta-actions   { position: relative; z-index: 1; display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------
   20. PAGE HEADER (inner pages)
   ----------------------------------------------- */
.page-header {
  padding: calc(var(--nav-h) + var(--s20)) 0 var(--s20);
  text-align: center; position: relative; overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: var(--s4); }
.page-header p  { font-size: 1.125rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* -----------------------------------------------
   21. FOOTER
   ----------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s16) 0 var(--s8);
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--s10); margin-bottom: var(--s12);
}
.footer-brand .nav-logo { margin-bottom: var(--s4); }
.footer-brand p { font-size: 0.875rem; color: var(--t3); max-width: 270px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--t3); margin-bottom: var(--s5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col ul a { font-size: 0.9375rem; color: var(--t2); transition: color var(--fast); }
.footer-col ul a:hover { color: var(--t1); }

.footer-disclaimer {
  font-size: 0.75rem; color: var(--t3); line-height: 1.7;
  padding: var(--s5);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-elevated);
  margin-bottom: var(--s8);
}
.footer-bottom {
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s4);
}
.footer-bottom p { font-size: 0.8125rem; color: var(--t3); }

/* -----------------------------------------------
   22. SCROLL REVEAL ANIMATIONS
   ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

/* -----------------------------------------------
   23. UTILITY
   ----------------------------------------------- */
.divider { height: 1px; background: var(--border); }
.badge { display: inline-flex; align-items: center; gap: var(--s1); padding: 3px 10px; border-radius: var(--r-full); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-blue  { background: var(--blue-dim);  color: var(--blue);  border: 1px solid rgba(10,132,255,0.2); }
.badge-gold  { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(201,168,76,0.2); }
.badge-green { background: rgba(48,209,88,0.1); color: var(--green); border: 1px solid rgba(48,209,88,0.2); }
.text-blue   { color: var(--blue); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--t2); }
.text-dim    { color: var(--t3); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mb-2 { margin-bottom: var(--s2); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }
.mb-6 { margin-bottom: var(--s6); }
.mb-8 { margin-bottom: var(--s8); }
.mb-10{ margin-bottom: var(--s10); }
.mb-12{ margin-bottom: var(--s12); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* -----------------------------------------------
   24. RESPONSIVE
   ----------------------------------------------- */
@media (max-width: 1100px) {
  :root { --section-y: 96px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .window-body { grid-template-columns: 160px 1fr; }
}
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .markets-preview-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .window-sidebar { display: none; }
}
@media (max-width: 640px) {
  :root { --section-y: 72px; }
  .container { padding: 0 var(--s5); }
  .nav { padding: 0 var(--s5); }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .cta-banner { padding: var(--s10) var(--s6); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------------
   25. REDUCED MOTION
   ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
