/* =============================================
   GRIDPILOT — STYLES
   ============================================= */

:root {
  --bg-base: #080c10;
  --bg-surface: #0d1117;
  --bg-card: #111820;
  --bg-card-hover: #151e28;
  --border: #1e2d3d;
  --border-light: #243447;
  --accent: #0ea5e9;
  --accent-dim: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.12);
  --accent-glow-strong: rgba(14, 165, 233, 0.22);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --text-primary: #f0f4f8;
  --text-secondary: #8b9ab0;
  --text-muted: #4a5568;
  --text-accent: #38bdf8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: page-reveal 0.5s ease both;
}

@keyframes page-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  background: #38bdf8;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 10px;
}

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

/* ---- HERO ---- */
#hero {
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 165, 233, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 0%, transparent 80%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title { margin-bottom: 20px; }

.hero-title em {
  font-style: normal;
  color: var(--text-accent);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-quick-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.quick-point {
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  align-self: center;
}

/* ---- TICKER STRIP ---- */
.ticker-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.ticker-symbol { color: var(--text-secondary); }
.ticker-price { color: var(--text-primary); }
.ticker-change { font-size: 0.78rem; font-weight: 600; }
.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }

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

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header .label { margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1rem; line-height: 1.7; }

/* ---- BENEFITS ---- */
#benefits { background: var(--bg-surface); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.benefit-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

.benefit-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.9rem; line-height: 1.65; }

/* ---- HOW IT WORKS ---- */
#how-it-works {}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.step:hover .step-number {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.step h3 { font-size: 1rem; margin-bottom: 10px; }
.step p { font-size: 0.875rem; line-height: 1.65; }

/* ---- PRODUCT ---- */
#dashboard-highlight {
  padding-top: 28px;
  padding-bottom: 48px;
}

.dashboard-highlight-card {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(17,24,32,0.96), rgba(11,16,22,0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.dashboard-highlight-copy h2 {
  margin: 10px 0 12px;
}

.dashboard-highlight-copy p {
  max-width: 700px;
}

.dashboard-highlight-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-highlight-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: var(--text-primary);
  font-size: 0.82rem;
}

.dashboard-highlight-side {
  display: grid;
  gap: 12px;
}

.highlight-stat {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.highlight-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.highlight-stat span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#product { background: var(--bg-base); }

#payments {
  background: var(--bg-surface);
}

.payments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.payment-card h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.payment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.payment-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.payments-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.product-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--text-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
}

/* ---- STRATEGIES ---- */
#strategies { background: var(--bg-surface); }

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.strategy-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.strategy-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tag-grid { background: rgba(14, 165, 233, 0.12); color: var(--accent); }
.tag-trend { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.tag-dca { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.tag-hybrid { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.strategy-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.strategy-card p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 20px; }

.strategy-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }

.spec-label { color: var(--text-muted); }
.spec-value { color: var(--text-primary); font-weight: 600; }

.strategy-details {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.strategy-details summary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.strategy-details summary::-webkit-details-marker { display: none; }
.strategy-details summary::before {
  content: '▸';
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.strategy-details[open] summary::before { transform: rotate(90deg); }
.strategy-detail-body {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strategy-detail-body p { margin: 0; }

/* ---- DASHBOARD ---- */
#dashboard { background: var(--bg-base); }

.dashboard-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--shadow-glow);
}

.dashboard-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.dashboard-title-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

.status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; }

.dashboard-body { padding: 28px; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.dash-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.dash-stat-value { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.dash-stat-value.green { color: var(--green); }
.dash-stat-value.white { color: var(--text-primary); }
.dash-stat-change { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.dash-stat-change.up { color: var(--green); }
.dash-stat-change.down { color: var(--red); }

.dashboard-chart-area { margin-bottom: 28px; }

.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 600;
}

.chart-svg-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow: hidden;
}

.dashboard-bots {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bots-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.bots-table-header span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.bot-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}

.bot-row:last-child { border-bottom: none; }
.bot-row:hover { background: var(--bg-card); }

.bot-name { font-size: 0.85rem; font-weight: 600; }
.bot-pair { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.bot-cell { font-size: 0.82rem; color: var(--text-secondary); }
.bot-cell.green { color: var(--green); font-weight: 600; }
.bot-cell.red { color: var(--red); font-weight: 600; }

.bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-active { background: var(--green-dim); color: var(--green); }
.badge-paused { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

/* ---- SECURITY ---- */
#security { background: var(--bg-surface); }

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.security-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sec-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2; }

.sec-text h4 { margin-bottom: 4px; font-size: 0.95rem; }
.sec-text p { font-size: 0.85rem; line-height: 1.6; }

.security-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.sec-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-flow-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sec-flow-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.flow-blue { background: rgba(14, 165, 233, 0.12); }
.flow-green { background: rgba(34, 197, 94, 0.12); }
.flow-purple { background: rgba(168, 85, 247, 0.12); }

.sec-flow-text .flow-title { font-size: 0.85rem; font-weight: 600; }
.sec-flow-text .flow-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2px 0;
}

.sec-note {
  margin-top: 20px;
  padding: 14px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--green);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ---- PRICING ---- */
#pricing { background: var(--bg-base); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.1);
  transform: translateY(-8px);
}

.pricing-card.featured:hover { transform: translateY(-12px); }

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-features li .check {
  width: 18px; height: 18px; min-width: 18px;
  background: var(--green-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-features li .check svg { width: 10px; height: 10px; stroke: var(--green); fill: none; stroke-width: 2.5; }

.plan-features li .na {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-features li.dim { opacity: 0.45; }

.pricing-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-note a { color: var(--accent); }

/* ---- COMPARISON ---- */
#comparison { background: var(--bg-surface); }

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
}

.comparison-table th:first-child { min-width: 200px; }

.comparison-table th.apex-col {
  color: var(--accent);
  background: rgba(14, 165, 233, 0.05);
}

.comparison-table td { color: var(--text-secondary); background: var(--bg-surface); }
.comparison-table td.apex-col { background: rgba(14, 165, 233, 0.03); }

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-card-hover); }

.comparison-table .yes { color: var(--green); font-weight: 600; }
.comparison-table .no { color: var(--text-muted); }
.comparison-table .partial { color: #fbbf24; }
.feature-name { color: var(--text-primary) !important; font-weight: 500; }

/* ---- FAQ ---- */
#faq {}

/* ---- ORDER MODAL ---- */
@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes backdrop-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.order-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.order-modal.open {
  display: flex;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  animation: backdrop-enter 0.2s ease both;
}

.order-modal-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #0d1117;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(14, 165, 233, 0.06);
  animation: modal-enter 0.22s ease both;
}

.order-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.order-modal-close:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.order-modal-head h3 {
  margin: 10px 0 10px;
}

.order-form {
  margin-top: 22px;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.order-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-field input,
.order-field select,
.order-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.order-field textarea {
  resize: vertical;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.order-help {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.order-status {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.order-status.success {
  color: var(--green);
}

.order-status.error {
  color: #f59e0b;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
}

.faq-grid {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--border-light); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 16px;
  user-select: none;
}

.faq-icon {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.faq-icon svg { width: 10px; height: 10px; stroke: var(--text-secondary); fill: none; stroke-width: 2; transition: transform 0.2s; }

.faq-item.open .faq-icon { background: var(--accent-glow); border-color: var(--accent); }
.faq-item.open .faq-icon svg { stroke: var(--accent); transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CTA SECTION ---- */
#cta {
  background: var(--bg-surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 { margin-bottom: 16px; }
.cta-content > p { font-size: 1rem; max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- EXCHANGE LOGOS ---- */
.exchanges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.exchange-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.exchange-pill:hover { border-color: var(--border-light); color: var(--text-primary); }

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .security-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .dashboard-highlight-card { grid-template-columns: 1fr; }
  .payments-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  nav .nav-links { display: none; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .comparison-table th:not(:first-child):not(.apex-col),
  .comparison-table td:not(:first-child):not(.apex-col) { display: none; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .bots-table-header, .bot-row { grid-template-columns: 2fr 1fr 1fr; }
  .bots-table-header span:nth-child(n+4),
  .bot-row > *:nth-child(n+4) { display: none; }
  .hero-metrics { gap: 20px; }
  .metric-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr; }
}
