/* ──────────────────────────────────────────
   TradeSprint Website — Design System
   ────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #070b10;
  --bg2:          #0d1117;
  --surface:      #161b22;
  --surface2:     #1c2128;
  --border:       #30363d;
  --border2:      #21262d;
  --text:         #e6edf3;
  --muted:        #8b949e;
  --accent:       #388bfd;
  --accent-hover: #58a6ff;
  --accent-glow:  rgba(56,139,253,0.25);
  --green:        #3fb950;
  --green-dim:    rgba(63,185,80,0.15);
  --red:          #f85149;
  --red-dim:      rgba(248,81,73,0.15);
  --yellow:       #d29922;
  --yellow-dim:   rgba(210,153,34,0.15);
  --purple:       #bc8cff;
  --orange:       #f0883e;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:    0 16px 64px rgba(0,0,0,0.6);
  --nav-h:        64px;
  --nav-bg:       rgba(7,11,16,0.85);
  --card-bg-glass: rgba(22, 27, 34, 0.6);
}

[data-theme="light"] {
  --bg:           #f6f8fa;
  --bg2:          #ffffff;
  --surface:      #ffffff;
  --surface2:     #f0f2f5;
  --border:       #d0d7de;
  --border2:      #e1e4e8;
  --text:         #1f2328;
  --muted:        #57606a;
  --accent:       #0969da;
  --accent-hover: #1f6feb;
  --accent-glow:  rgba(9,105,218,0.15);
  --green:        #1a7f37;
  --green-dim:    rgba(26,127,55,0.1);
  --red:          #cf222e;
  --red-dim:      rgba(207,34,46,0.1);
  --yellow:       #9a6700;
  --yellow-dim:   rgba(154,103,0,0.1);
  --purple:       #8250df;
  --orange:       #bc4c00;
  --shadow-md:    0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg:    0 16px 64px rgba(0,0,0,0.08);
  --nav-bg:       rgba(246,248,250,0.85);
  --card-bg-glass: rgba(255, 255, 255, 0.7);
}

html { 
  scroll-behavior: smooth; 
  transition: background 0.3s, color 0.3s;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.5px; }
a { color: inherit; text-decoration: none; }

/* ── Container ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: 0.1px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, #388bfd, #1f6feb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56,139,253,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(56,139,253,0.5); }
.btn-primary:active { transform: none; box-shadow: 0 2px 8px rgba(56,139,253,0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(56,139,253,0.06); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border2);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-color: var(--border2);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-brand img { border-radius: 8px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: 0; }

/* Theme Toggle Button */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  outline: none;
}
.theme-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
  transform: scale(1.05);
}
[data-theme="light"] .theme-btn {
  background: #ffffff;
}
[data-theme="light"] .nav-links a:hover {
  background: rgba(0,0,0,0.04);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 600px; height: 600px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(56,139,253,0.12) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -50px; right: -80px;
  background: radial-gradient(circle, rgba(63,185,80,0.08) 0%, transparent 70%);
  animation: orbFloat 15s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.05); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,139,253,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,139,253,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 20px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(56,139,253,0.25);
  background: rgba(56,139,253,0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-hover);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #388bfd 0%, #58a6ff 40%, #3fb950 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--card-bg-glass);
  backdrop-filter: blur(12px);
  margin-bottom: 64px;
}
.stat-item { text-align: center; }
.stat-num  { display: block; font-size: 20px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ── Terminal mockup ── */
.hero-mockup-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 0;
}
.terminal-card {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 64px rgba(56,139,253,0.1), var(--shadow-lg);
  overflow: hidden;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.terminal-body {
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 2;
}
.log-line { display: flex; align-items: center; gap: 10px; }
.log-line.muted { opacity: 0.5; }
.log-time { color: var(--muted); font-size: 11px; min-width: 64px; }
.log-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 56px;
  text-align: center;
}
.log-tag.green  { background: var(--green-dim);  color: var(--green);  }
.log-tag.blue   { background: rgba(56,139,253,0.12); color: var(--accent); }
.log-tag.yellow { background: var(--yellow-dim); color: var(--yellow); }
.log-tag.red    { background: var(--red-dim);    color: var(--red);    }
.text-green { color: var(--green); }
.blink-dots { animation: blinkDots 1.2s steps(4, end) infinite; }
@keyframes blinkDots {
  0%   { content: '.'; }
  25%  { content: '..'; }
  50%  { content: '...'; }
  75%  { content: ''; }
}
.blink-line { animation: rowBlink 2s ease-in-out infinite; }
@keyframes rowBlink { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ── Sections ── */
.section {
  padding: 96px 0;
}
.section--alt {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  border: 1px solid rgba(56,139,253,0.25);
  background: rgba(56,139,253,0.08);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}
.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature-card--large { grid-column: span 2; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.ftag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(56,139,253,0.1);
  border: 1px solid rgba(56,139,253,0.2);
  color: var(--accent-hover);
}

/* ── Steps ── */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.step-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: var(--border); transform: translateY(-2px); }
.step-num {
  font-size: 40px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56,139,253,0.4);
  margin-bottom: 14px;
  line-height: 1;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--muted); }
.step-arrow { color: var(--muted); padding-top: 40px; flex-shrink: 0; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card--featured {
  border-color: rgba(56,139,253,0.4);
  background: linear-gradient(180deg, rgba(56,139,253,0.05) 0%, var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(56,139,253,0.2), var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #388bfd, #1f6feb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name   { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.plan-price  { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.price-amount { font-size: 34px; font-weight: 900; }
.price-period { font-size: 14px; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.plan-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
}
.plan-features li svg { color: var(--green); flex-shrink: 0; }
.plan-features li.muted { color: var(--muted); }
.plan-features li.muted svg { color: var(--border); }

/* ── Signup Section ── */
.section--signup {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.signup-wrap {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}
.signup-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.perk svg { color: var(--green); flex-shrink: 0; }

.signup-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,139,253,0.12);
}
.form-group input::placeholder { color: var(--muted); opacity: 0.6; }
.form-group select option { background: var(--surface); }

.form-error {
  background: var(--red-dim);
  border: 1px solid rgba(248,81,73,0.2);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.signup-success {
  text-align: center;
  padding: 16px 0;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin: 0 auto 20px;
}
.signup-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.signup-success p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 32px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800;
}
.footer-brand img { border-radius: 6px; }
.footer-copy        { font-size: 13px; color: var(--muted); }
.footer-disclaimer  { font-size: 11px; color: var(--muted); opacity: 0.6; max-width: 540px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: span 2; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 420px; }
  .signup-wrap   { grid-template-columns: 1fr; }
  .signup-left   { text-align: center; }
  .signup-left .section-title { text-align: center; }
  .signup-perks  { align-items: center; }
  .steps-grid    { flex-direction: column; align-items: center; }
  .step-arrow    { display: none; }
  .step-card     { width: 100%; max-width: 400px; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .nav-links     { display: none; }
  .hero-stats    { gap: 16px; padding: 14px 20px; flex-wrap: wrap; justify-content: center; }
  .hero-actions  { flex-direction: column; }
}

/* ── Strategies Page Layout ── */
.strat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 40px;
}
.strat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strat-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.strat-sidebar-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface2);
}
.strat-sidebar-btn.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.strat-main {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.strat-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.strat-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .rules-grid { grid-template-columns: 1fr; }
}
.rule-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.rule-box h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule-box.bullish h4 { color: var(--green); }
.rule-box.bearish h4 { color: var(--red); }
.rule-box.exits h4 { color: var(--accent); }
.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule-list li {
  font-size: 13px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.rule-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.params-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.params-table th, .params-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
  font-size: 13px;
}
.params-table th {
  font-weight: 700;
  color: var(--muted);
  background: var(--surface2);
}

@media (max-width: 900px) {
  .strat-layout { grid-template-columns: 1fr; }
  .strat-sidebar { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .strat-sidebar-btn { white-space: nowrap; }
}

/* ── Strategies Carousel ── */
.strategies-carousel {
  position: relative;
  width: 100%;
  margin: 32px 0;
}
.strategies-viewport {
  overflow: hidden;
  width: 100%;
}
.strategies-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.strategies-slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  box-sizing: border-box;
  padding: 8px 4px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s ease;
  font-size: 16px;
  font-weight: 700;
  user-select: none;
}
.carousel-arrow:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
}
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.92);
}
.carousel-arrow:disabled {
  opacity: 0.15;
  cursor: not-allowed;
  border-color: var(--border2) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.carousel-arrow.prev {
  left: -64px;
}
.carousel-arrow.next {
  right: -64px;
}

/* Indicators dots at bottom */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 1120px) {
  .carousel-arrow.prev { left: -20px; }
  .carousel-arrow.next { right: -20px; }
}

@media (max-width: 992px) {
  .strategies-slide {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .strategies-slide {
    grid-template-columns: 1fr;
  }
  .carousel-arrow {
    display: none;
  }
  /* On mobile let the slider overflow-x normally so they can swipe individual cards easily */
  .strategies-viewport {
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .strategies-slider {
    transform: none !important;
    gap: 16px;
  }
  .strategies-slide {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 8px;
    width: auto;
  }
  .strategies-slide .feature-card {
    flex: 0 0 280px;
  }
}

.country-item:hover {
  background: var(--surface2) !important;
}
