/* =========================================
   EarnView — Design System v2.0
   Premium, human-crafted aesthetic
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds — warm dark tones, not pure black */
  --bg-primary: #0a0a12;
  --bg-secondary: #111119;
  --bg-elevated: #16161f;
  --bg-card: rgba(22, 22, 31, 0.85);
  --bg-card-hover: rgba(30, 30, 42, 0.9);

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --border-active: rgba(109, 165, 255, 0.3);

  /* Text — softer whites */
  --text-primary: #eaedf3;
  --text-secondary: rgba(234,237,243,0.7);
  --text-muted: rgba(234,237,243,0.4);

  /* Accents — sophisticated blue-green palette */
  --accent: #4ade80;
  --accent-hover: #22c55e;
  --accent-dim: rgba(74,222,128,0.12);
  --accent-glow: rgba(74,222,128,0.25);
  
  /* Secondary accent */
  --accent2: #60a5fa;
  --accent2-dim: rgba(96,165,250,0.12);
  
  /* Warm accent */
  --gold: #fbbf24;
  --gold-dim: rgba(251,191,36,0.12);
  
  /* Status */
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(74,222,128,0.15);
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Background Effects — subtle, not overwhelming ===== */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite alternate;
  will-change: transform;
}
.orb-1 { width: 600px; height: 600px; background: #3b82f6; top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: #8b5cf6; bottom: -200px; right: -150px; animation-delay: 4s; }
.orb-3 { width: 350px; height: 350px; background: #06b6d4; top: 40%; left: 50%; animation-delay: 8s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: #0a0a12;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-large {
  padding: 16px 40px;
  font-size: 17px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: -0.01em;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ===== Section Common ===== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

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

/* ===== Utility ===== */
.hidden { display: none !important; }

/* Smooth fade-in for page load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== SVG Icons (replace emojis) ===== */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
