/* =====================================================
   UPSTAR TRADE - Premium Smart Trading Platform
   Futuristic Landing Page Styles
   ===================================================== */

/* =====================================================
   CSS Variables & Theme System
   ===================================================== */
:root {
  /* Typography */
  --font-primary: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-theme: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-preloader: 500;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(17, 24, 39, 0.6);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-muted: #4b5563;

  --accent-primary: #06b6d4;
  --accent-primary-rgb: 6, 182, 212;
  --accent-secondary: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.4);
  --accent-gradient: linear-gradient(
    135deg,
    #06b6d4 0%,
    #0891b2 50%,
    #0e7490 100%
  );

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);

  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);

  --positive: #10b981;
  --negative: #ef4444;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  --accent-primary: #0891b2;
  --accent-primary-rgb: 8, 145, 178;
  --accent-secondary: #0e7490;
  --accent-glow: rgba(8, 145, 178, 0.3);
  --accent-gradient: linear-gradient(
    135deg,
    #0891b2 0%,
    #0e7490 50%,
    #155e75 100%
  );

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(8, 145, 178, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.1);

  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);

  --positive: #059669;
  --negative: #dc2626;
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-theme),
    color var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================
   Preloader
   ===================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-preloader);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  animation: preloaderProgress 1.5s ease-out forwards;
}

@keyframes preloaderProgress {
  to {
    width: 100%;
  }
}

/* =====================================================
   Background Elements
   ===================================================== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -3;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -2;
  transition: opacity var(--transition-theme);
}

.bg-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--accent-primary);
}

.bg-glow-2 {
  bottom: -300px;
  left: -200px;
  background: var(--accent-secondary);
  opacity: 0.2;
}

[data-theme="light"] .bg-glow {
  opacity: 0.15;
}

.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
}

/* =====================================================
   Container & Layout
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================
   Glass Card
   ===================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.05);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.btn svg {
  transition: transform var(--transition-base);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: var(--z-sticky);
}

.logo-icon {
  color: var(--accent-primary);
  display: flex;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: var(--z-sticky);
}

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

.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);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  min-width: 140px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.lang-option:hover,
.lang-option.active {
  background: rgba(var(--accent-primary-rgb), 0.1);
  color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  transition: all var(--transition-base);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

.btn-nav {
  padding: 0.625rem 1.25rem;
}

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

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-chart {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.chart-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.chart-pair {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
}

.chart-change {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.chart-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--positive);
}

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

.chart-graph {
  height: 140px;
  margin-bottom: var(--space-md);
}

.chart-line {
  width: 100%;
  height: 100%;
}

.chart-stroke {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawChart 2s ease-out forwards;
}

@keyframes drawChart {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: right;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.badge-1 {
  top: -20px;
  right: 20px;
  color: var(--positive);
}

.badge-1 svg {
  stroke: var(--positive);
}

.badge-2 {
  bottom: 40px;
  left: -20px;
  color: var(--text-secondary);
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.3;
  }
}

/* =====================================================
   About Section
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.about-card {
  padding: var(--space-xl);
  text-align: center;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-radius: var(--radius-lg);
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================
   Features Section
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* =====================================================
   How It Works Section - Card Grid Design
   ===================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.step-card {
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
}

.step-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 2px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: var(--radius-xl);
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.step-card:hover .step-icon-wrapper {
  background: rgba(var(--accent-primary-rgb), 0.15);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.step-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps-cta {
  text-align: center;
}

/* =====================================================
   Platform Section
   ===================================================== */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.platform-content .section-tag,
.platform-content .section-title,
.platform-content .section-description {
  text-align: left;
}

.platform-content .section-description {
  margin-bottom: var(--space-xl);
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.platform-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 1rem;
  color: var(--text-secondary);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-radius: 50%;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Platform Mockup */
.platform-visual {
  display: flex;
  justify-content: center;
}

/* Terminal-style frame with glassmorphism */
.platform-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow-lg);
}

.platform-terminal .mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--glass-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
  background: #ef4444;
}
.mockup-dots span:nth-child(2) {
  background: #f59e0b;
}
.mockup-dots span:nth-child(3) {
  background: #22c55e;
}

.mockup-title {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Live indicator */
.mockup-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-pulse 1.5s ease-in-out infinite;
}

.live-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: #f87171;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.mockup-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  min-height: 320px;
  gap: var(--space-md);
}

/* Chart block */
.mockup-chart-wrap {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mockup-chart-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.mockup-chart-label .chart-pair {
  color: var(--text-primary);
  font-weight: 500;
}

.mockup-chart-label .chart-price {
  color: var(--text-secondary);
  margin-left: auto;
}

.mockup-chart-label .chart-change.positive {
  color: var(--positive);
}

.mockup-chart {
  height: 100px;
  position: relative;
}

.mockup-chart .chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mockup-chart .chart-line {
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* Buy / Sell panel */
.mockup-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.panel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.panel-btn-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-btn-payout {
  font-size: 0.65rem;
  opacity: 0.9;
}

.panel-btn-buy {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.panel-btn-buy:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: var(--positive);
}

.panel-btn-sell {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.panel-btn-sell:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: var(--negative);
}

/* Trade history */
.mockup-trade-history {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.trade-history-header {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--glass-border);
}

.trade-history-table {
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.trade-row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 1fr;
  gap: var(--space-xs);
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.trade-row:last-child {
  border-bottom: none;
}

.trade-row .th-asset {
  color: var(--text-secondary);
}

.trade-row .th-dir {
  font-weight: 600;
  text-align: center;
}

.trade-row .th-dir.up {
  color: var(--positive);
}

.trade-row .th-dir.down {
  color: var(--negative);
}

.trade-row .th-amount {
  color: var(--text-tertiary);
}

.trade-row.trade-win .th-result {
  color: var(--positive);
}

.trade-row.trade-loss .th-result {
  color: var(--negative);
}

/* =====================================================
   Security Section
   ===================================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.security-card {
  padding: var(--space-2xl);
  text-align: center;
}

.security-icon {
  display: inline-flex;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.security-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.security-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

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

.faq-icon {
  flex-shrink: 0;
  color: var(--accent-primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

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

.faq-answer p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-card {
  position: relative;
  padding: var(--space-4xl);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-primary-rgb), 0.15) 0%,
    var(--glass-bg) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-visual {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cta-rings {
  position: relative;
  width: 400px;
  height: 400px;
}

.cta-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.2;
}

.cta-rings span:nth-child(1) {
  width: 200px;
  height: 200px;
  animation: ringPulse 3s ease-in-out infinite;
}

.cta-rings span:nth-child(2) {
  width: 300px;
  height: 300px;
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.cta-rings span:nth-child(3) {
  width: 400px;
  height: 400px;
  animation: ringPulse 3s ease-in-out infinite 1s;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.4;
  }
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: var(--space-xs);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.footer-disclaimer {
  margin-bottom: var(--space-lg);
}

.footer-disclaimer p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.footer-disclaimer strong {
  color: var(--negative);
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-badge {
    margin-bottom: var(--space-md);
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: var(--space-2xl);
  }

  .hero-chart {
    max-width: 380px;
    margin: 0 auto;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .platform-content .section-tag,
  .platform-content .section-title,
  .platform-content .section-description {
    text-align: center;
  }

  .platform-list {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-actions {
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-container {
    gap: var(--space-2xl);
  }

  .hero-badge {
    font-size: 0.8125rem;
    padding: var(--space-xs) var(--space-md);
  }

  .hero-title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    margin-bottom: var(--space-md);
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-sm);
  }

  .hero-cta {
    margin-bottom: var(--space-xl);
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg) var(--space-xl);
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
  }

  .stat {
    text-align: center;
    min-width: 80px;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-suffix {
    font-size: 1.125rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-scroll {
    display: none;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-md);
  }

  .hero-content {
    order: 1;
  }

  .hero-chart {
    max-width: 320px;
    margin: 0 auto;
  }

  .chart-card {
    padding: var(--space-lg);
  }

  .chart-header {
    margin-bottom: var(--space-sm);
  }

  .chart-pair {
    font-size: 1rem;
  }

  .chart-graph {
    height: 100px;
    margin-bottom: var(--space-sm);
  }

  .chart-price {
    font-size: 1.375rem;
  }

  .floating-badge {
    font-size: 0.6875rem;
    padding: 6px 10px;
  }

  .badge-1 {
    top: -8px;
    right: 5px;
  }

  .badge-2 {
    bottom: 15px;
    left: -5px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .step-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .step-number-badge {
    position: static;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-icon-wrapper {
    display: none;
  }

  .step-card-content {
    flex: 1;
  }

  .step-card-title {
    margin-bottom: var(--space-xs);
  }

  .step-card-text {
    font-size: 0.875rem;
  }

  .cta-card {
    padding: var(--space-2xl);
  }

  .cta-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    text-align: center;
  }

  .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
  }

  .hero-container {
    gap: var(--space-lg);
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .hero-title .gradient-text {
    font-size: 1.875rem;
  }

  .hero-description {
    font-size: 0.9375rem;
    padding: 0;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-md) var(--space-lg);
    padding: var(--space-md);
  }

  .stat {
    min-width: 70px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  .hero-chart {
    max-width: 280px;
  }

  .chart-card {
    padding: var(--space-md);
  }

  .chart-graph {
    height: 80px;
  }

  .chart-price {
    font-size: 1.25rem;
  }

  .floating-badge {
    display: none;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 1rem;
  }
}

/* =====================================================
   Animation Classes (for GSAP)
   ===================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.fade-in {
  opacity: 0;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
}

/* =====================================================
   Utility Classes
   ===================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   Reduced Motion Support
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
