﻿/* ==========================================================================
   NEXTUN PREMIUM DESIGN SYSTEM (style1.css)
   ========================================================================== */

:root {
  --primary-green: #01C26C;
  --primary-green-glow: rgba(1, 194, 108, 0.35);
  --primary-green-light: #05e582;
  --primary-green-dark: #009954;

  --dark-bg: #081030;
  --dark-bg-alt: #0b153d;
  --dark-card: #0e1b4d;
  --dark-card-hover: #132463;
  --dark-surface: #0a1128;

  --electric-blue: #38BDF8;
  --electric-blue-glow: rgba(56, 189, 248, 0.3);
  --amber: #F59E0B;
  --red: #EE5D50;

  --text-white: #FFFFFF;
  --text-light: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(1, 194, 108, 0.4);
  --border-glass: rgba(255, 255, 255, 0.12);

  --glass-bg: rgba(14, 27, 77, 0.65);
  --glass-blur: blur(16px);
  --ticker-bg: #060D26;
  --steps-bg: #060D28;
  --faq-bg: #060D28;
  --footer-bg: #04091A;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px var(--primary-green-glow);

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */
html.light-theme,
body.light-theme {
  --dark-bg: #F8FAFC;
  --dark-bg-alt: #F1F5F9;
  --dark-card: #FFFFFF;
  --dark-card-hover: #F8FAFC;
  --dark-surface: #FFFFFF;

  --text-white: #0F172A;
  --text-light: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --primary-green: #059669;
  --red: #DC2626;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-active: rgba(5, 150, 105, 0.5);
  --border-glass: rgba(0, 0, 0, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.92);
  --ticker-bg: #F1F5F9;
  --steps-bg: #F1F5F9;
  --faq-bg: #F8FAFC;
  --footer-bg: #0B153D;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(1, 194, 108, 0.15);
}

html.light-theme .navbar,
body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.light-theme .ambient-glow-1,
body.light-theme .ambient-glow-1 {
  background: radial-gradient(circle, rgba(1, 194, 108, 0.12) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
}

html.light-theme .ambient-glow-2,
body.light-theme .ambient-glow-2,
html.light-theme .ambient-glow-3,
body.light-theme .ambient-glow-3 {
  opacity: 0.5;
}

html.light-theme .btn-outline,
body.light-theme .btn-outline {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
}

html.light-theme .btn-outline:hover,
body.light-theme .btn-outline:hover {
  background: #E2E8F0;
  border-color: rgba(0, 0, 0, 0.2);
}

html.light-theme .strategy-metrics-box,
body.light-theme .strategy-metrics-box {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html.light-theme .terminal-card,
body.light-theme .terminal-card {
  background: #0F172A;
  color: #FFFFFF;
}

html.light-theme .terminal-card .terminal-metric {
  background: rgba(255, 255, 255, 0.05);
}

html.light-theme .terminal-card .terminal-metric-value {
  color: #FFFFFF;
}

html.light-theme .floating-pill,
body.light-theme .floating-pill {
  background: #FFFFFF;
  border: 1px solid var(--primary-green);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html.light-theme .floating-pill span,
body.light-theme .floating-pill span {
  color: #0F172A !important;
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--dark-bg);
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

/* Ambient glow wrapper — fixed overlay that clips its children so they
   never expand document scrollWidth regardless of their CSS offsets. */
.ambient-glow-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Decorative ambient glows — absolutely positioned inside the fixed wrapper. */
.ambient-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 194, 108, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 40%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-3 {
  position: absolute;
  bottom: 10%;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 194, 108, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 16, 48, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

.nav-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-brand-text {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  letter-spacing: 0em !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-style: normal !important;
  display: inline-block !important;
  vertical-align: middle !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

html.light-theme .nav-brand-text,
body.light-theme .nav-brand-text {
  color: #0F172A !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

html.light-theme .theme-toggle-wrap,
body.light-theme .theme-toggle-wrap {
  background: #E2E8F0;
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}

.theme-toggle-btn.active {
  background: var(--primary-green);
  color: #041026;
  box-shadow: 0 2px 8px var(--primary-green-glow);
}

.theme-toggle-btn svg {
  width: 15px;
  height: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, #00a85a 100%);
  color: #041026;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-green-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
  box-shadow: 0 6px 28px rgba(1, 194, 108, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: var(--text-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: rgba(1, 194, 108, 0.08);
  border-color: rgba(1, 194, 108, 0.3);
  color: var(--primary-green);
}

.btn-outline-green:hover {
  background: rgba(1, 194, 108, 0.18);
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 194, 108, 0.1);
  border: 1px solid rgba(1, 194, 108, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 24px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 10px var(--primary-green);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-white);
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-green) 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.stat-val span {
  color: var(--primary-green);
}

.stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.terminal-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #EE5D50; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #01C26C; }

.terminal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-green);
  background: rgba(1, 194, 108, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.terminal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.terminal-metric {
  background: rgba(8, 16, 48, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 0;
}

.terminal-metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.terminal-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2px;
}

.terminal-metric-value.green { color: var(--primary-green); }
.terminal-metric-value.cyan { color: var(--electric-blue); }

.terminal-feed {
  background: rgba(4, 9, 28, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  color: #38BDF8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.feed-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.feed-time {
  color: var(--text-dim);
  white-space: nowrap;
}

.feed-tag {
  background: rgba(1, 194, 108, 0.15);
  color: var(--primary-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
  white-space: nowrap;
}

.feed-tag.sell {
  background: rgba(238, 93, 80, 0.15);
  color: #EE5D50;
}

/* Floating pill — absolute on desktop, de-absolutized on mobile */
.floating-pill {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background: #0B153D;
  border: 1px solid var(--primary-green);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   LIVE MARKET TICKER
   ========================================================================== */

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--ticker-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: tickerSlide 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.ticker-symbol {
  color: var(--text-white);
  font-weight: 700;
}

.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.ticker-change {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-change.pos {
  background: rgba(1, 194, 108, 0.15);
  color: var(--primary-green);
}

.ticker-change.neg {
  background: rgba(238, 93, 80, 0.15);
  color: var(--red);
}

/* ==========================================================================
   BROKERS & SECURITY
   ========================================================================== */

.brokers-section {
  padding: 70px 0;
  text-align: center;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-green);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-white);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* minmax uses min() so it never exceeds 100% on narrow viewports */
.brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.broker-card {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  min-width: 0;
}

.broker-card:hover {
  background: var(--dark-card-hover);
  border-color: rgba(1, 194, 108, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.broker-name-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.broker-name-logo.xm { color: #00cc66; }
.broker-name-logo.mt5 { color: var(--text-white); }

.broker-type-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

html.light-theme .broker-type-pill,
body.light-theme .broker-type-pill {
  background: #E2E8F0;
}

.security-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.security-ribbon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.security-ribbon-item svg {
  color: var(--primary-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   STRATEGIES
   ========================================================================== */

.strategies-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
}

/* min() prevents the minmax floor from exceeding the viewport */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px;
  max-width: 860px;
  margin: 48px auto 0;
}

.strategy-card {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  min-width: 0;
}

.strategy-card:hover {
  border-color: rgba(1, 194, 108, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.strategy-card.popular {
  border: 1.5px solid var(--primary-green);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--primary-green);
  color: #041026;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strategy-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.strategy-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.strategy-metrics-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(6, 13, 40, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.metric-col-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-col-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 4px;
}

.metric-col-val.green { color: var(--primary-green); }
.metric-col-val.cyan { color: var(--electric-blue); }

.strategy-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.strategy-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-light);
}

.strategy-feature-item svg {
  color: var(--primary-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features-section {
  padding: 100px 0;
  background: var(--dark-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-box {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  min-width: 0;
}

.feature-box:hover {
  background: var(--dark-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(1, 194, 108, 0.12);
  border: 1px solid rgba(1, 194, 108, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
}

.feature-box:nth-child(2) .feature-icon-wrapper {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--electric-blue);
}

.feature-box:nth-child(3) .feature-icon-wrapper {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--amber);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.steps-section {
  padding: 100px 0;
  background: var(--steps-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.step-card {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-width: 0;
}

.step-number-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #041026;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--primary-green-glow);
  flex-shrink: 0;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  background: var(--faq-bg);
}

.faq-container {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(1, 194, 108, 0.4);
  background: var(--dark-card-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  box-sizing: border-box;
  word-break: break-word;
  min-width: 0;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.cta-banner-section {
  padding: 80px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, #0d1e56 0%, #061138 100%);
  border: 1px solid rgba(1, 194, 108, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  box-sizing: border-box;
  width: 100%;
}

.cta-banner-card h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.cta-banner-card p {
  font-size: 16px;
  color: #94A3B8;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  color: #94A3B8;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  min-width: 0;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer-brand-col p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
  color: #94A3B8;
}

.footer-brand-text {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0em;
  color: #FFFFFF;
  line-height: 1;
  white-space: nowrap;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
}

.footer-social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  transition: var(--transition);
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--primary-green);
  color: #041026;
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item {
  font-size: 14px;
  color: #94A3B8;
  transition: var(--transition);
}

.footer-link-item:hover {
  color: var(--primary-green);
  transform: translateX(3px);
}

.footer-link-item:focus-visible {
  color: var(--primary-green);
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
  border-radius: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE DESIGN — single authoritative set, no duplicates
   ========================================================================== */

/* ── 1024px — tablet landscape ──────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* ── GPU + transition optimization for mobile/tablet ───────────────
     iOS Safari has a tight per-tab GPU memory budget.  The crash
     "A problem repeatedly occurred" is triggered by the combined GPU
     cost of:
       1. Three filter:blur(80-100px) ambient-glow layers on a fixed
          full-viewport overlay — never removed on mobile in the first fix.
       2. backdrop-filter:blur(16px) on the fixed navbar + terminal-card.
       3. --transition: "all 0.3s" on 30+ elements — when the theme toggle
          cascades CSS-variable changes to every element, or when the
          scroll handler sets navbar box-shadow, Safari must animate
          expensive box-shadow/background/filter transitions on all of
          them simultaneously, exhausting GPU memory.

     On screens ≤1024px (phones in any orientation + tablets) we:
       a. Override --transition to only animate cheap properties
          (color, border-color, transform, opacity) — background,
          box-shadow, and filter changes become instant.
       b. Hide the decorative ambient-glow blur layers.
       c. Remove backdrop-filter from navbar and terminal-card
          (their solid semi-transparent backgrounds still render).
       d. Disable the floating-pill infinite animation. */
  :root {
    --transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }

  .ambient-glow-wrap,
  .ambient-glow-1,
  .ambient-glow-2,
  .ambient-glow-3 {
    display: none;
  }

  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .terminal-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .floating-pill {
    animation: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 36px;
  }

  .nav-brand-text { font-size: 28px !important; }

  .nav-brand img {
    height: 36px;
    width: 36px;
  }

  .nav-menu { gap: 20px; }

  .strategies-section,
  .features-section,
  .steps-section,
  .faq-section,
  .cta-banner-section {
    padding: 80px 0;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

/* ── 992px — tablet portrait ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-section { overflow: hidden; }

  .hero-subtitle { max-width: 100%; }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid > div:last-child { grid-column: auto; }

  .strategies-grid { max-width: 100%; }

  .brokers-section,
  .strategies-section,
  .features-section,
  .steps-section,
  .faq-section,
  .cta-banner-section {
    padding: 64px 0;
  }
}

/* ── 768px — mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav: slide-in drawer */
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 20px;
    transform: translateY(-100vh);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
  }

  html.light-theme .nav-menu,
  body.light-theme .nav-menu {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-menu.show { transform: translateY(0); }

  .nav-link {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    color: var(--text-light);
    display: block;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-actions { gap: 8px; }

  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-brand-text { font-size: 26px !important; }

  .nav-brand img {
    height: 34px;
    width: 34px;
  }

  .nav-brand { gap: 9px; min-width: 0; }

  .navbar-inner { padding: 0 16px; }

  /* Hero */
  .hero-section {
    padding: 110px 0 60px;
    overflow: hidden;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    min-width: 0;
    width: 100%;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: clamp(26px, 6.5vw, 42px);
    letter-spacing: -0.8px;
  }

  .hero-subtitle {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .stat-val { font-size: 20px; }

  .hero-visual {
    max-width: 100%;
    overflow: hidden;
  }

  /* De-absolute the floating pill — left:-20px causes overflow on mobile */
  .floating-pill {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    animation: none;
    display: inline-flex;
  }

  .terminal-card {
    width: 100%;
    min-width: 0;
  }

  .terminal-feed { font-size: 10.5px; }

  .terminal-metrics-grid { grid-template-columns: repeat(2, 1fr); }

  /* Brokers: 1-col so minmax(240px) cannot overflow */
  .brokers-grid,
  .brokers-grid--two {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .security-ribbon {
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .strategies-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .features-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }

  .cta-banner-card { padding: 40px 24px; }

  .cta-banner-card h2 { font-size: clamp(24px, 7vw, 36px); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-col p { max-width: 100%; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .brokers-section,
  .strategies-section,
  .features-section,
  .steps-section,
  .faq-section,
  .cta-banner-section {
    padding: 48px 0;
  }

  .section-title { font-size: clamp(24px, 6vw, 34px); }
}

/* ── 480px — small phones ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .navbar-inner { height: 66px; gap: 6px; padding: 0 12px; }

  .nav-menu { top: 66px; }

  /* Hide the Get Started button from the top bar on small phones */
  .nav-actions .btn-primary { display: none; }

  .nav-brand-text { font-size: 22px !important; }

  .nav-brand img {
    height: 30px;
    width: 30px;
  }

  .nav-brand { gap: 8px; }

  .theme-toggle-btn {
    width: 26px;
    height: 26px;
  }

  .hero-section {
    padding: 100px 0 48px;
    overflow: hidden;
  }

  .hero-title { font-size: clamp(24px, 6.5vw, 30px); letter-spacing: -0.5px; }

  /* 3 stats as equal grid columns */
  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-val { font-size: 18px; }

  .stat-lbl { font-size: 10px; }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .broker-card { padding: 18px 16px; }

  .strategy-card { padding: 24px 20px; }

  .strategy-metrics-box {
    padding: 12px 8px;
    gap: 8px;
  }

  .metric-col-val { font-size: 14px; }

  .feature-box { padding: 24px 20px; }

  .step-card { padding: 24px 20px; }

  .faq-question {
    font-size: 14px;
    padding: 16px 18px;
  }

  .cta-banner-card { padding: 32px 18px; }

  .footer { padding: 56px 0 32px; }

  .section-title { font-size: clamp(22px, 7vw, 30px); }

  .section-desc { font-size: 14px; }

  .ticker-item { font-size: 12px; }

  .terminal-feed { font-size: 10px; }

  .terminal-card {
    min-width: 0;
    width: 100%;
  }

  .terminal-metric-value { font-size: 16px; }

  .security-ribbon {
    flex-wrap: wrap;
    gap: 12px;
    border-radius: var(--radius-md);
  }
}

/* ── 390px — iPhone Pro ──────────────────────────────────────────────────── */
@media (max-width: 390px) {
  .navbar-inner { padding: 0 12px; }

  .nav-brand-text { font-size: 21px !important; }

  .nav-brand img {
    height: 28px;
    width: 28px;
  }

  /* Hide Get Started from top bar */
  .nav-actions .btn-primary { display: none; }

  .hero-title { font-size: 24px; }

  .stat-lbl { font-size: 9px; letter-spacing: 0; }

  .security-ribbon {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius-md);
  }

  .terminal-metric-label { font-size: 10px; }
  .terminal-metric-value { font-size: 14px; }
}

/* ── 360px — very small phones ───────────────────────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }

  .navbar-inner { padding: 0 10px; }

  .nav-brand-text { font-size: 20px !important; }

  .nav-brand img {
    height: 26px;
    width: 26px;
  }

  .nav-brand { gap: 7px; }

  /* Hide Get Started from top bar */
  .nav-actions .btn-primary { display: none; }

  .hero-title { font-size: 22px; }

  /* At 360px drop to 2-col so stat labels don't clip */
  .hero-stats-row { grid-template-columns: 1fr 1fr; }

  .strategy-metrics-box { gap: 6px; }
  .metric-col-val { font-size: 13px; }
  .section-title { font-size: 20px; }
  .stat-val { font-size: 17px; }
}
