/* ============================================
   AURION — Global Stock Investment Platform
   Design Language: Global Horizon · Dark + Emerald + Teal
   ============================================ */

/* --- Google Fonts (CN domain for mainland access) --- */
@import url('https://fonts.googleapis.cn/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* --- Design Tokens --- */
:root {
  --bg-deep: #070b14;
  --bg-surface: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #212d40;
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --accent-glow-strong: rgba(16, 185, 129, 0.3);
  --data: #2dd4bf;
  --data-dim: #0d9488;
  --data-glow: rgba(45, 212, 191, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --danger: #ef4444;
  --success: #22c55e;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(16, 185, 129, 0.2);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --section-padding: 100px 0;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Full-page Background Image --- */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url('/assets/hero-bg.jpeg') center center / cover no-repeat;
  background-attachment: fixed;
}

/* Dark gradient overlay — keeps text readable while showing the image atmosphere */
.bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.7) 0%, rgba(7, 11, 20, 0.55) 40%, rgba(7, 11, 20, 0.75) 70%, rgba(7, 11, 20, 0.95) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(45, 212, 191, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

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

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

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

.font-tabular {
  font-variant-numeric: tabular-nums;
}

/* --- Background Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 0;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--bg-deep);
}

.nav-brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

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

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

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-deep) !important;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  padding: 8px 20px;
  border-radius: 8px;
  transition: box-shadow 0.3s var(--ease-out);
}

.nav-cta:hover {
  box-shadow: 0 0 20px var(--accent-glow-strong), 0 0 60px var(--accent-glow);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--data-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 24px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease-out), transform 0.15s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow-strong), 0 0 80px var(--accent-glow);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.btn-secondary:hover {
  border-color: var(--data-dim);
  background: var(--data-glow);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hero-stat-value .unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-left: 2px;
}

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

/* --- Hero Chart Visual --- */
.hero-visual {
  position: relative;
  z-index: 2;
}

.chart-container {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-stock-name {
  font-weight: 700;
  font-size: 15px;
}

.chart-stock-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 22px;
  color: var(--success);
}

.chart-stock-change {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

.chart-svg-wrap {
  width: 100%;
  height: 200px;
}

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

.chart-line {
  fill: none;
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-line 2.5s var(--ease-out-expo) forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.chart-area {
  opacity: 0;
  animation: fade-in 1s 1.5s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.chart-grid line {
  stroke: var(--border-subtle);
  stroke-width: 0.5;
}

/* Mini cards floating around the chart */
.chart-mini-cards {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.chart-mini-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.3s;
}

.chart-mini-card:hover {
  border-color: var(--border-accent);
}

.chart-mini-card .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-mini-card .value {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.chart-mini-card .value.up { color: var(--success); }
.chart-mini-card .value.down { color: var(--danger); }

/* --- Hook / Pain Points Section --- */
.hook-section {
  position: relative;
  padding: var(--section-padding);
  z-index: 10;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--data);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--data);
}

.hook-section .section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 700px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.pain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--danger), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.pain-card:hover {
  border-color: rgba(239, 68, 68, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.pain-icon {
  width: 44px;
  height: 44px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pain-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--danger);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* --- Interactive Concept: Trend Pulse --- */
.trend-pulse {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.trend-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--data-glow) 0%, transparent 70%);
  pointer-events: none;
}

.trend-pulse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.trend-pulse-title {
  font-size: 20px;
  font-weight: 700;
}

.trend-pulse-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--data);
  background: var(--data-glow);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: 100px;
  padding: 4px 12px;
}

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

.trend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.trend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 20px;
  transition: border-color 0.3s, background 0.3s;
}

.trend-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.trend-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trend-rank {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
}

.trend-symbol {
  font-weight: 700;
  font-size: 15px;
}

.trend-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.trend-item-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trend-bar {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.trend-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--ease-out-expo);
}

.trend-bar-fill.up {
  background: var(--success);
}

.trend-bar-fill.down {
  background: var(--danger);
}

.trend-change {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}

.trend-change.up { color: var(--success); }
.trend-change.down { color: var(--danger); }

/* --- Features Section --- */
.features-section {
  position: relative;
  padding: var(--section-padding);
  z-index: 10;
}

.features-section .section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 600px;
}

.features-section .section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 56px;
  max-width: 560px;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 28px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.feature-card .feature-stat {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card .feature-stat-value {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-bright);
}

.feature-card .feature-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Final CTA Section --- */
.cta-section {
  position: relative;
  padding: 100px 0;
  z-index: 10;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-section .section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-section .section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 24px;
}

.cta-timer svg {
  width: 16px;
  height: 16px;
  stroke: var(--danger);
  fill: none;
  stroke-width: 2;
}

.cta-bonus {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 16px 28px;
  margin-bottom: 32px;
}

.cta-bonus-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.cta-bonus-label {
  text-align: left;
}

.cta-bonus-label .main {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.cta-bonus-label .sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
  text-align: right;
  line-height: 1.6;
}

/* --- Registration Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out-expo), visibility 0.35s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px 36px 36px;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}

.modal-close:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-brand .nav-logo {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.modal-title .highlight {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-family);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.modal-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-family);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease-out), opacity 0.2s;
  position: relative;
}

.modal-submit:hover {
  box-shadow: 0 0 20px var(--accent-glow-strong), 0 0 60px var(--accent-glow);
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

.modal-submit.loading .spinner {
  display: block;
}

.modal-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-terms {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.6;
}

.modal-terms a {
  color: var(--data);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Success State --- */
.modal-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.modal-success.visible {
  display: block;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-success h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

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

.modal-success .highlight {
  color: var(--accent-bright);
  font-weight: 700;
}

/* --- Responsive Modal --- */
@media (max-width: 480px) {
  .modal {
    margin: 16px;
    padding: 32px 24px 28px;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

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

  .hero-stats {
    gap: 24px;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .chart-mini-cards {
    flex-direction: column;
  }

  .trend-pulse {
    padding: 24px;
  }

  .trend-item-right .trend-bar {
    display: none;
  }

  .cta-bonus {
    flex-direction: column;
    text-align: center;
  }

  .cta-bonus-label {
    text-align: center;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-stat-value {
    font-size: 22px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .pain-card {
    padding: 24px 20px;
  }
}
