/* =====================================================================
   TRABAR FOREX ID — Tema "Institutional Trading Desk"
   Single source of truth untuk seluruh tampilan visual.
   ===================================================================== */

/* ───────────── 1. Design Tokens ───────────── */
:root {
  /* Canvas — deep navy, hampir hitam, finance-grade */
  --bg-0: #070A14;
  --bg-1: #0E1424;
  --bg-2: #161E33;
  --bg-3: #1E2942;
  --bg-glass: rgba(14, 20, 36, 0.72);

  /* Text */
  --t-0: #F5F7FA;   /* heading */
  --t-1: #C8CFDD;   /* body */
  --t-2: #8A93A8;   /* secondary */
  --t-3: #5A6378;   /* tertiary / placeholder */

  /* Brand */
  --brand:        #10B981;  /* emerald — bullish, CTA primer */
  --brand-2:      #059669;  /* hover darker */
  --brand-3:      #047857;  /* pressed */
  --brand-soft:   rgba(16, 185, 129, 0.10);
  --brand-glow:   rgba(16, 185, 129, 0.35);

  --gold:         #E5B045;  /* VIP / premium */
  --gold-soft:    rgba(229, 176, 69, 0.12);

  --bear:         #F43F5E;  /* bearish */
  --bear-soft:    rgba(244, 63, 94, 0.10);

  --info:         #3E7BFA;  /* link */
  --info-soft:    rgba(62, 123, 250, 0.10);

  /* Borders */
  --bd:        rgba(255, 255, 255, 0.06);
  --bd-2:      rgba(255, 255, 255, 0.12);
  --bd-3:      rgba(255, 255, 255, 0.20);

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --sh-md: 0 4px 14px rgba(0, 0, 0, 0.30);
  --sh-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --sh-glow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 8px 24px rgba(16, 185, 129, 0.20);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Type */
  --f-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(1.2rem, 3vw, 2.5rem);
}

/* ───────────── 2. Reset & Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--t-1);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grid background — institutional vibe */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--info);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--brand); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  color: var(--t-0);
  font-family: var(--f-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0; }

::selection { background: var(--brand-soft); color: var(--t-0); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ───────────── 3. Layout helpers ───────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

.section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; z-index: 1; }
.section-sm { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(16, 185, 129, 0.20);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.serif-accent {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.muted { color: var(--t-2); }
.brand-c { color: var(--brand); }
.gold-c  { color: var(--gold); }
.mono    { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bd-2), transparent);
  border: none;
  margin: 3rem auto;
  max-width: 240px;
}

/* ───────────── 4. Ticker tape ───────────── */
.ticker {
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
  padding: 0.5rem 0;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker 60s linear infinite;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--t-2);
}
.ticker-item strong { color: var(--t-0); font-weight: 600; letter-spacing: 0.04em; }
.ticker-up   { color: var(--brand); }
.ticker-down { color: var(--bear); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ───────────── 5. Navbar ───────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--bd);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--t-0);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-brand img {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
}
.nav-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  margin-left: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  color: var(--t-1);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--t-0); background: var(--bd); }
.nav-links a.active { color: var(--brand); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  border-radius: var(--r-sm);
  color: var(--t-0);
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 100%; left: var(--pad-x); right: var(--pad-x); flex-direction: column; align-items: stretch; padding: 0.5rem; background: var(--bg-1); border: 1px solid var(--bd); border-radius: var(--r-md); margin-top: 0.5rem; box-shadow: var(--sh-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* ───────────── 6. Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #031f15;
  border-color: var(--brand);
  box-shadow: var(--sh-glow);
}
.btn-primary:hover {
  background: var(--brand-2);
  color: #031f15;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--brand), 0 12px 32px rgba(16, 185, 129, 0.30);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--t-0);
  border-color: var(--bd-2);
}
.btn-secondary:hover { background: var(--bg-3); border-color: var(--bd-3); color: var(--t-0); }

.btn-ghost {
  background: transparent;
  color: var(--t-1);
  border-color: var(--bd-2);
}
.btn-ghost:hover { background: var(--bd); color: var(--t-0); border-color: var(--bd-3); }

.btn-gold {
  background: var(--gold);
  color: #1a1300;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(229,176,69,0.3), 0 8px 24px rgba(229,176,69,0.20);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); color: #1a1300; }

.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───────────── 7. Hero ───────────── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 800px;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(16, 185, 129, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 1.4rem 0 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #95a0b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title .serif-accent {
  background: linear-gradient(180deg, var(--gold) 0%, #c79026 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.05em;
  display: inline;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--t-2);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--bd);
}
.hero-trust-item .num {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--t-0);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-trust-item .lbl {
  font-size: 0.78rem;
  color: var(--t-2);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

/* Chart card on right */
.chart-card {
  background: var(--bg-1);
  border: 1px solid var(--bd-2);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.chart-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(16,185,129,0.08), transparent 50%);
  pointer-events: none;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
}
.chart-pair {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.chart-pair-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  border: 1px solid rgba(229,176,69,0.3);
}
.chart-pair-name { color: var(--t-0); font-weight: 600; }
.chart-pair-sub  { color: var(--t-2); font-size: 0.78rem; }
.chart-price {
  text-align: right;
  font-family: var(--f-mono);
}
.chart-price-now { color: var(--t-0); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.chart-price-delta {
  color: var(--brand);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  font-weight: 500;
}

.chart-svg-wrap {
  position: relative;
  margin: 0 -0.5rem;
}
.chart-signal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--bd-2);
}
.chart-signal-cell {
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem;
}
.chart-signal-cell .k { color: var(--t-2); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.chart-signal-cell .v { color: var(--t-0); font-family: var(--f-mono); font-weight: 600; font-size: 0.92rem; margin-top: 0.2rem; }
.chart-signal-cell.tp .v { color: var(--brand); }
.chart-signal-cell.sl .v { color: var(--bear); }

/* ───────────── 8. Brand strip (broker logos) ───────────── */
.brand-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.brand-strip-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--t-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.brand-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
.brand-strip-grid img {
  max-height: 32px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%) brightness(1.5);
  transition: opacity 0.18s, filter 0.18s;
}
.brand-strip-grid img:hover { opacity: 1; filter: grayscale(0%) brightness(1); }

/* ───────────── 9. Feature cards ("Why us") ───────────── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--t-2); font-size: 1.05rem; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feat-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.18s;
}
.feat-card:hover {
  border-color: var(--bd-2);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.feat-card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.feat-card p { color: var(--t-2); font-size: 0.95rem; line-height: 1.6; }

/* ───────────── 10. Stat strip ───────────── */
.stat-strip {
  background: var(--bg-1);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 3rem 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--f-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--t-0);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-num .accent { color: var(--brand); }
.stat-lbl {
  font-size: 0.85rem;
  color: var(--t-2);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ───────────── 11. Service / tier cards ───────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.tier-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier-card.is-featured {
  background: linear-gradient(180deg, rgba(229,176,69,0.04), transparent), var(--bg-1);
  border-color: rgba(229,176,69,0.25);
}
.tier-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--gold-soft);
  border: 1px solid rgba(229,176,69,0.35);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
}
.tier-name { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-2); margin-bottom: 0.5rem; }
.tier-title { font-size: 1.5rem; font-weight: 700; color: var(--t-0); margin-bottom: 0.75rem; }
.tier-desc { color: var(--t-2); font-size: 0.95rem; margin-bottom: 1.5rem; }

.tier-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; }
.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--t-1);
}
.tier-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid rgba(16,185,129,0.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.tier-card .btn { margin-top: auto; }

/* ───────────── 12. Steps ───────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.step-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color 0.18s;
}
.step-card:hover { border-color: var(--bd-2); }
.step-num {
  display: inline-flex;
  width: 38px; height: 38px;
  background: var(--brand-soft);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--brand);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.step-card h4 { color: var(--t-0); font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--t-2); font-size: 0.92rem; line-height: 1.55; }

/* Step card variant with image (vip.html) */
.step-card.with-img { padding: 1.25rem; display: flex; flex-direction: column; }
.step-card.with-img img {
  border-radius: var(--r-sm);
  border: 1px solid var(--bd);
  margin: 0.75rem 0;
  width: 100%;
  height: auto;
  background: var(--bg-2);
}

/* ───────────── 13. Testimonials ───────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.testi-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.testi-text {
  color: var(--t-1);
  font-size: 0.97rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.testi-text::before { content: '\201C'; font-family: var(--f-serif); font-size: 1.6rem; color: var(--brand); margin-right: 0.15rem; vertical-align: -0.2em; }
.testi-author { display: flex; align-items: center; gap: 0.85rem; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--bd-2);
  object-fit: cover;
  background: var(--bg-3);
}
.testi-name { color: var(--t-0); font-weight: 600; font-size: 0.93rem; }
.testi-role { color: var(--t-2); font-size: 0.78rem; }

/* ───────────── 14. FAQ ───────────── */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.18s;
}
.faq-item:hover { border-color: var(--bd-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--t-0);
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--t-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ───────────── 15. CTA banner ───────────── */
.cta-banner {
  background:
    radial-gradient(circle at 15% 50%, rgba(16,185,129,0.15), transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(62,123,250,0.10), transparent 50%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--bd-2);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p { color: var(--t-2); max-width: 560px; margin: 0 auto 2rem; }
.cta-banner-row {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ───────────── 16. Footer ───────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--bd);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--t-0); font-weight: 700; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.footer-tag { color: var(--t-2); font-size: 0.9rem; line-height: 1.6; max-width: 320px; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  border-radius: var(--r-sm);
  color: var(--t-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-2);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: var(--t-1); font-size: 0.93rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand); }

.footer-risk {
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-risk strong { color: var(--gold); display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-risk p { color: var(--t-2); font-size: 0.82rem; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bd);
  color: var(--t-2);
  font-size: 0.85rem;
}

/* ───────────── 17. Forms ───────────── */
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--t-1);
  letter-spacing: -0.005em;
}
.field input, .field select, .field textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="search"],
textarea, select {
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  color: var(--t-0);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.95rem;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: var(--t-3); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--pad-x); }
.auth-card {
  background: var(--bg-1);
  border: 1px solid var(--bd-2);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--sh-lg);
}
.auth-card .brand-row { display: flex; align-items: center; gap: 0.65rem; justify-content: center; margin-bottom: 1.5rem; }
.auth-card .brand-row img { width: 36px; height: 36px; border-radius: var(--r-sm); }
.auth-card .brand-row span { color: var(--t-0); font-weight: 700; font-size: 1rem; }
.auth-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: 0.5rem; }
.auth-card .subt { text-align: center; color: var(--t-2); font-size: 0.92rem; margin-bottom: 2rem; }
.auth-card .alt { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--t-2); }
.auth-card .alt a { color: var(--brand); font-weight: 500; }

/* ───────────── 18. Dashboard nav refresh (override existing) ───────────── */
.bottom-menu {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--bd) !important;
}

/* ───────────── 19. Inline SVG hero chart styling ───────────── */
.hero-chart-svg .grid-line { stroke: rgba(255,255,255,0.04); stroke-width: 1; }
.hero-chart-svg .axis-label { fill: var(--t-3); font-family: var(--f-mono); font-size: 9px; }
.hero-chart-svg .area-fill { fill: url(#area-grad); }
.hero-chart-svg .line { stroke: var(--brand); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-chart-svg .candle-up   { fill: var(--brand); stroke: var(--brand); }
.hero-chart-svg .candle-down { fill: var(--bear); stroke: var(--bear); }
.hero-chart-svg .candle-wick { stroke-width: 1; }
.hero-chart-svg .signal-line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.hero-chart-svg .signal-dot  { fill: var(--gold); }

/* ───────────── 20. Reveal animations ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .reveal[data-delay="1"] { animation-delay: 0.08s; }
  .reveal[data-delay="2"] { animation-delay: 0.16s; }
  .reveal[data-delay="3"] { animation-delay: 0.24s; }
  .reveal[data-delay="4"] { animation-delay: 0.32s; }
  .reveal[data-delay="5"] { animation-delay: 0.40s; }
  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ───────────── 21. Utility ───────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hide-sm { display: initial; }
@media (max-width: 600px) { .hide-sm { display: none; } }
