/* =============================================
   Koder Exchange - Institutional Landing Page
   ============================================= */

/* --- CSS Custom Properties (Dark theme default) --- */
:root {
  /* Primary / Accent */
  --primary: #F59E0B;
  --primary-hover: #D97706;
  --primary-light: rgba(245, 158, 11, 0.15);
  --primary-glow: rgba(245, 158, 11, 0.3);

  /* Semantic */
  --green: #22C55E;
  --red: #EF4444;

  /* Dark theme (default) */
  --bg-primary: #0B0E11;
  --bg-secondary: #12161C;
  --bg-tertiary: #1A1F27;
  --bg-card: #151A22;
  --bg-card-hover: #1C2230;
  --bg-overlay: rgba(0, 0, 0, 0.6);

  --text-primary: #EAECEF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --border: #2A2F38;
  --border-light: #1F242D;

  --nav-bg: rgba(11, 14, 17, 0.85);

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px 0;
  --card-radius: 12px;
  --btn-radius: 8px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  color-scheme: dark;
}

/* --- Light theme --- */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FA;
  --bg-overlay: rgba(255, 255, 255, 0.6);

  --text-primary: #1A1A2E;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --border: #E5E7EB;
  --border-light: #F1F3F5;

  --nav-bg: rgba(255, 255, 255, 0.85);

  color-scheme: light;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Text Utilities --- */
.text-gradient {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-green { color: var(--green); }
.text-red { color: var(--red); }

.check { color: var(--green); font-weight: bold; }
.cross { color: var(--red); font-weight: bold; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =====================
   Navigation
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: none;
}

/* Show icon based on current state (controlled via JS data attribute) */
[data-theme-mode="light"] .theme-icon-light { display: block; }
[data-theme-mode="dark"] .theme-icon-dark { display: block; }
[data-theme-mode="device"] .theme-icon-device { display: block; }
/* Default (no attribute) = dark */
.theme-icon-dark { display: block; }
[data-theme-mode] .theme-icon-dark { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================
   Hero Section
   ===================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-metric {
  display: flex;
  flex-direction: column;
}

.hero-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* Chart mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-chart-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chart-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.chart-pair {
  font-weight: 700;
  font-size: 16px;
}

.chart-price {
  font-size: 22px;
  font-weight: 700;
}

.chart-change {
  font-size: 14px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.chart-change.positive {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}

.chart-change.negative {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding: 10px 0;
  margin-bottom: 16px;
}

.chart-bar {
  flex: 1;
  background: var(--green);
  border-radius: 3px 3px 0 0;
  min-height: 10px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chart-bar.negative {
  background: var(--red);
}

.chart-bar:hover {
  opacity: 1;
}

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

.chart-orderbook-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
}

.chart-orderbook-row:nth-child(odd) {
  background: var(--bg-tertiary);
}

/* =====================
   Stats Section
   ===================== */
.stats {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =====================
   Section Common
   ===================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================
   Features Section
   ===================== */
.features {
  padding: var(--section-padding);
}

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

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

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================
   How It Works
   ===================== */
.how-it-works {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-secondary);
}

.step-icon svg {
  width: 36px;
  height: 36px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  width: 48px;
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.5;
}

.step-connector svg {
  width: 48px;
  height: 24px;
}

/* =====================
   Comparison Table
   ===================== */
.comparison {
  padding: var(--section-padding);
}

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

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}

.comparison-table thead {
  background: var(--bg-tertiary);
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table th.highlight {
  color: var(--primary);
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table td.highlight {
  background: var(--primary-light);
  color: var(--text-primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* =====================
   Security Section
   ===================== */
.security {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  transition: all 0.3s;
}

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

.security-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: var(--primary);
}

.security-icon svg {
  width: 48px;
  height: 48px;
}

.security-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================
   Mobile App Section
   ===================== */
.mobile-app {
  padding: var(--section-padding);
  overflow: hidden;
}

.mobile-app-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mobile-app-content .section-title {
  text-align: left;
}

.app-features-list {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.app-features-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.app-badges {
  display: flex;
  gap: 16px;
}

.app-badge {
  display: block;
  width: 150px;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.app-badge:hover {
  opacity: 0.8;
}

/* Phone mockup */
.mobile-app-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 22px;
  padding: 16px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 0 4px;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.phone-app-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}

.phone-app-balance {
  font-size: 14px;
  font-weight: 700;
}

.phone-portfolio {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 12px;
}

.asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.asset-icon.btc { background: #F7931A; }
.asset-icon.eth { background: #627EEA; }
.asset-icon.sol { background: #9945FF; }

.asset-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.asset-name {
  font-weight: 600;
  font-size: 13px;
}

.asset-amount {
  font-size: 11px;
  color: var(--text-muted);
}

.asset-value {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.asset-usd {
  font-weight: 600;
  font-size: 13px;
}

.asset-change {
  font-size: 11px;
  font-weight: 600;
}

.asset-change.positive { color: var(--green); }
.asset-change.negative { color: var(--red); }

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.phone-nav .active {
  color: var(--primary);
  font-weight: 700;
}

/* =====================
   Fees Section
   ===================== */
.fees {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.fees-table-wrapper {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.fees-table thead {
  background: var(--bg-tertiary);
}

.fees-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.fees-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.fees-table tbody tr:last-child td {
  border-bottom: none;
}

.fees-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.tier-badge.vip1 { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.tier-badge.vip2 { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.tier-badge.vip3 { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.tier-badge.vip4 { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.tier-badge.vip5 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  color: #FBBF24;
}

.fees-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* =====================
   FAQ Section
   ===================== */
.faq {
  padding: var(--section-padding);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

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

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

.faq-answer p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================
   CTA Section
   ===================== */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-box h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   Footer
   ===================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  transition: all 0.2s;
}

.footer-socials a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-actions .btn {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 100px 0 40px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-chart-mockup {
    max-width: 360px;
  }

  .hero-metrics {
    gap: 20px;
  }

  .hero-metric-value {
    font-size: 20px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .step-connector {
    transform: rotate(90deg);
    width: 48px;
    height: 32px;
  }

  /* Security */
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Mobile app */
  .mobile-app-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mobile-app-content .section-title {
    text-align: center;
  }

  .mobile-app-content .section-subtitle {
    text-align: center !important;
  }

  .app-features-list {
    align-items: center;
  }

  .app-badges {
    justify-content: center;
  }

  /* Comparison */
  .comparison-table-wrapper {
    margin: 0 -24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-metric-divider {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 24px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.features-grid .feature-card,
.security-grid .security-card,
.steps-grid .step-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.features-grid .feature-card.visible,
.security-grid .security-card.visible,
.steps-grid .step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .feature-card:nth-child(2),
.security-grid .security-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3),
.security-grid .security-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4),
.security-grid .security-card:nth-child(4) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.4s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.5s; }
.features-grid .feature-card:nth-child(7) { transition-delay: 0.6s; }
.features-grid .feature-card:nth-child(8) { transition-delay: 0.7s; }

.steps-grid .step-card:nth-child(2) { transition-delay: 0.15s; }
.steps-grid .step-card:nth-child(3) { transition-delay: 0.3s; }
