/* ========== VARIABLES ========== */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 0.75rem;
}

/* Dark theme (default) */
body.dark {
  --bg: hsl(225, 25%, 6%);
  --fg: hsl(45, 10%, 90%);
  --card-bg: hsl(225, 20%, 10%);
  --card-bg-elevated: hsl(225, 18%, 12%);
  --muted: hsl(225, 10%, 50%);
  --border-color: hsl(225, 15%, 18%);
  --primary: hsl(45, 96%, 53%);
  --primary-fg: hsl(225, 25%, 6%);
  --accent: hsl(30, 90%, 50%);
  --glow-alpha: 0.15;
}

/* Light theme */
body.light {
  --bg: hsl(40, 20%, 97%);
  --fg: hsl(225, 25%, 12%);
  --card-bg: hsl(0, 0%, 100%);
  --card-bg-elevated: hsl(40, 15%, 96%);
  --muted: hsl(225, 10%, 45%);
  --border-color: hsl(225, 15%, 88%);
  --primary: hsl(38, 92%, 45%);
  --primary-fg: hsl(0, 0%, 100%);
  --accent: hsl(25, 85%, 48%);
  --glow-alpha: 0.08;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== UTILITIES ========== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid hsla(45, 96%, 53%, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover {
  box-shadow: 0 0 30px hsla(45, 96%, 53%, 0.4);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid hsla(45, 96%, 53%, 0.3);
}
.btn-outline:hover {
  background: hsla(45, 96%, 53%, 0.1);
  border-color: hsla(45, 96%, 53%, 0.5);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid hsla(225, 15%, 50%, 0.15);
  backdrop-filter: blur(20px);
  background: hsla(225, 25%, 6%, 0.8);
  transition: background 0.3s ease;
}

body.light .navbar {
  background: hsla(40, 20%, 97%, 0.85);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

body.dark .icon-sun { display: block; }
body.dark .icon-moon { display: none; }
body.light .icon-sun { display: none; }
body.light .icon-moon { display: block; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}
.hero-glow-1 { width: 400px; height: 400px; top: 20%; left: 20%; background: hsla(45, 96%, 53%, 0.05); }
.hero-glow-2 { width: 300px; height: 300px; bottom: 20%; right: 20%; background: hsla(30, 90%, 50%, 0.05); }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { display: flex; flex-direction: column; gap: 0; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card-bg-elevated), var(--card-bg));
  border: 1px solid hsla(45, 96%, 53%, 0.12);
  box-shadow: 0 0 20px hsla(45, 96%, 53%, var(--glow-alpha, 0.08));
  transition: transform 0.3s ease;
}
.price-card:hover { transform: scale(1.02); }

.price-card-left { display: flex; align-items: center; gap: 1rem; }

.coin-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: hsla(45, 96%, 53%, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary);
}

.price-card-right { text-align: right; }
.price { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.change { font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.change.positive { color: hsl(142, 60%, 50%); }
.change.negative { color: hsl(0, 70%, 60%); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid hsla(225, 15%, 50%, 0.15);
  max-width: 500px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  display: block;
}

/* ========== FEATURES ========== */
.features-section { padding: 8rem 0; position: relative; }

.section-divider {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(to right, transparent, hsla(45, 96%, 53%, 0.3), transparent);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.feature-card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card-bg-elevated), var(--card-bg));
  border: 1px solid hsla(45, 96%, 53%, 0.12);
  box-shadow: 0 0 20px hsla(45, 96%, 53%, var(--glow-alpha, 0.08));
  transition: all 0.3s ease;
}
.feature-card:hover { transform: scale(1.02); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 0.5rem;
  background: hsla(45, 96%, 53%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary);
  transition: background 0.3s;
}
.feature-card:hover .feature-icon { background: hsla(45, 96%, 53%, 0.15); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid hsla(45, 96%, 53%, 0.15);
  color: hsla(45, 96%, 53%, 0.8);
}

/* ========== SECURITY ========== */
.security-section { padding: 8rem 0; overflow: hidden; }

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.security-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.security-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.security-card {
  padding: 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card-bg-elevated), var(--card-bg));
  border: 1px solid hsla(45, 96%, 53%, 0.12);
  box-shadow: 0 0 20px hsla(45, 96%, 53%, var(--glow-alpha, 0.08));
  transition: all 0.3s;
  color: var(--primary);
}
.security-card:hover { transform: scale(1.02); }

.security-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.8rem 0 0.4rem;
  color: var(--fg);
}

.security-card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Security Visual */
.security-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-container {
  position: relative;
  width: 320px; height: 320px;
}

.shield-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 1rem;
  background: hsla(45, 96%, 53%, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 40px hsla(45, 96%, 53%, 0.15), 0 0 80px hsla(45, 96%, 53%, 0.05);
  animation: pulseGlow 3s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid hsla(45, 96%, 53%, 0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 160px; height: 160px; }
.ring-2 { width: 220px; height: 220px; opacity: 0.8; }
.ring-3 { width: 280px; height: 280px; opacity: 0.6; }

.orbiting-item {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 0.5rem;
  background: var(--card-bg);
  border: 1px solid hsla(45, 96%, 53%, 0.12);
  box-shadow: 0 0 20px hsla(45, 96%, 53%, var(--glow-alpha, 0.08));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

.orbit-a {
  top: 50%; left: 50%;
  animation: orbitA 20s linear infinite;
}

.orbit-b {
  top: 50%; left: 50%;
  animation: orbitB 25s linear infinite reverse;
  color: var(--accent);
}

.scan-line {
  position: absolute;
  left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(to right, transparent, hsla(45, 96%, 53%, 0.6), transparent);
  animation: scanLine 4s ease-in-out infinite;
  pointer-events: none;
}

.float-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: hsla(45, 96%, 53%, 0.4);
  animation: float 6s ease-in-out infinite;
}
.dot-1 { top: 15%; left: 70%; }
.dot-2 { top: 75%; left: 20%; animation-delay: 1.5s; }
.dot-3 { top: 30%; left: 15%; animation-delay: 3s; }
.dot-4 { top: 80%; left: 75%; animation-delay: 2s; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid hsla(225, 15%, 50%, 0.15);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav-group { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav-group h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-nav-group a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav-group a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid hsla(225, 15%, 50%, 0.15);
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== ANIMATIONS ========== */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes orbitA {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes orbitB {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: none;
}

.reveal.visible {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .security-inner { grid-template-columns: 1fr; }
  .security-visual { margin-bottom: 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr; gap: 1rem; max-width: 100%; }
  .footer-nav { grid-template-columns: 1fr; }
}
