@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: hsl(225, 25%, 6%);
  --fg: hsl(210, 40%, 92%);
  --card: hsl(225, 20%, 10%);
  --primary: hsl(185, 80%, 55%);
  --primary-fg: hsl(225, 25%, 6%);
  --secondary: hsl(225, 20%, 14%);
  --accent: hsl(270, 70%, 60%);
  --muted: hsl(215, 15%, 55%);
  --border: hsl(225, 15%, 18%);
  --destructive: hsl(0, 84%, 60%);
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

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

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

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

/* Text gradient */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card */
.glass {
  background: hsla(225, 20%, 10%, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(225, 15%, 18%, 0.5);
}

/* Glow */
.glow-primary {
  box-shadow: 0 0 20px hsla(185, 80%, 55%, 0.3), 0 0 60px hsla(185, 80%, 55%, 0.1);
}

/* Badge */
.badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.badge-primary { background: hsla(185, 80%, 55%, 0.1); color: var(--primary); }
.badge-accent { background: hsla(270, 70%, 60%, 0.1); color: var(--accent); }
.badge-destructive { background: hsla(0, 84%, 60%, 0.1); color: var(--destructive); }

/* Section padding */
.section {
  padding: 5rem 1rem;
}

/* Button primary */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-primary.glow { box-shadow: 0 0 20px hsla(185, 80%, 55%, 0.3), 0 0 60px hsla(185, 80%, 55%, 0.1); }

.btn-secondary {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--secondary);
  color: var(--fg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}
.btn-secondary:hover { background: hsla(225, 20%, 14%, 0.8); }

/* =================== HEADER =================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.header .logo svg { width: 28px; height: 28px; color: var(--primary); }
.header .btn-primary { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  overflow: hidden;
}
.hero .orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse_glow 4s ease-in-out infinite;
}
.hero .orb-1 { top: 25%; left: 25%; background: hsla(185, 80%, 55%, 0.1); }
.hero .orb-2 { bottom: 25%; right: 25%; background: hsla(270, 70%, 60%, 0.1); animation-delay: 1.5s; }
@keyframes pulse_glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.hero p { font-size: 1.125rem; color: var(--muted); max-width: 32rem; margin-bottom: 2rem; line-height: 1.7; }
.hero .img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.hero .img-wrap img { border-radius: 1rem; width: 100%; }
.hero .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(225, 25%, 6%, 0.6), transparent);
}

/* =================== CARDS GRID =================== */
.cards-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.cards-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.card {
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s;
}
.card:hover { border-color: hsla(185, 80%, 55%, 0.3); }
.card .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.card .icon.accent { color: var(--accent); }
.card .icon.destructive { color: var(--destructive); }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.card p { color: var(--muted); line-height: 1.7; font-size: 0.9375rem; }

/* Capability card centered */
.card-center { text-align: center; }
.card-center:hover { border-color: hsla(270, 70%, 60%, 0.3); }
.card-center .icon-wrap {
  margin: 0 auto 1.25rem;
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: hsla(270, 70%, 60%, 0.1);
  transition: background 0.3s;
}
.card-center:hover .icon-wrap { background: hsla(270, 70%, 60%, 0.2); }
.card-center .icon-wrap svg { width: 1.75rem; height: 1.75rem; color: var(--accent); }

/* =================== STATS =================== */
.stat-card {
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.stat-value { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.stat-sub { font-size: 0.75rem; color: var(--muted); }

/* =================== STEPS =================== */
.step-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s;
}
.step-card:hover { border-color: hsla(270, 70%, 60%, 0.3); }
.step-card .big-num {
  position: absolute;
  top: -1rem; right: -0.5rem;
  font-size: 6rem;
  font-weight: 700;
  color: hsla(270, 70%, 60%, 0.05);
  transition: color 0.3s;
}
.step-card:hover .big-num { color: hsla(270, 70%, 60%, 0.1); }
.step-card .content { position: relative; z-index: 1; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: hsla(270, 70%, 60%, 0.1);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: var(--muted); font-size: 0.875rem; }

/* =================== PRICING =================== */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
.plan-card {
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s;
}
.plan-card:hover { transform: scale(1.05); }
.plan-card.popular {
  background: linear-gradient(to bottom, hsla(185, 80%, 55%, 0.2), hsla(270, 70%, 60%, 0.1));
  border: 1px solid hsla(185, 80%, 55%, 0.4);
}
.plan-card.popular .glow { box-shadow: 0 0 20px hsla(185, 80%, 55%, 0.3), 0 0 60px hsla(185, 80%, 55%, 0.1); }
.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.plan-period { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.guarantee-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2rem;
}
.guarantee-box strong { color: var(--fg); }

/* =================== TRANSPARENCY =================== */
.formula-box {
  border-radius: 0.75rem;
  background: hsla(225, 20%, 14%, 0.5);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.transaction-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tx-box {
  flex: 1;
  border-radius: 0.75rem;
  background: hsla(225, 20%, 14%, 0.5);
  padding: 0.75rem 1rem;
  text-align: center;
}
.tx-box .label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.tx-box .value { font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.tx-arrow { color: var(--muted); flex-shrink: 0; font-size: 1.25rem; }

/* =================== COMPARISON =================== */
.compare-card.holding { border-color: hsla(0, 84%, 60%, 0.2); }
.compare-card.trading { border-color: hsla(185, 80%, 55%, 0.2); }

/* =================== CTA =================== */
.cta-section {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 3rem 2rem;
  text-align: center;
}
.cta-section .cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsla(185, 80%, 55%, 0.2), hsla(270, 70%, 60%, 0.1), hsla(185, 80%, 55%, 0.05));
}
.cta-section .cta-glass { position: absolute; inset: 0; }
.cta-section .cta-content { position: relative; z-index: 1; }
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section > .cta-content > p { color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }
.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.cta-features span { display: flex; align-items: center; gap: 0.5rem; }

/* =================== FOOTER =================== */
footer {
  text-align: center;
  padding: 2rem 1rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* =================== SCROLL ANIMATIONS =================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =================== RESPONSIVE =================== */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section { padding: 7rem 2rem; }
  .hero h1 { font-size: 3rem; }
  .hero .grid { grid-template-columns: 1fr 1fr; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cta-section { padding: 4rem; }
  .cta-section h2 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .stat-value { font-size: 3rem; }
}
