/* === FONTS (self-hosted) === */
/* Font 1: Plus Jakarta Sans — headings + body */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/jakarta-400.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/jakarta-500.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/jakarta-600.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/jakarta-700.ttf') format('truetype'); }
/* Font 2: JetBrains Mono — code + monospace accents */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/jetbrains-400.ttf') format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/jetbrains-500.ttf') format('truetype'); }

/*
  TYPE SCALE — 4 sizes only:
  --text-sm:   0.875rem  (14px) — captions, labels, small text
  --text-base: 1rem      (16px) — body, paragraphs, list items
  --text-lg:   1.5rem    (24px) — section headings, card titles
  --text-xl:   clamp(2.25rem, 4.5vw, 3.25rem) — hero / section titles
*/

/* === TOKENS === */
:root {
  --primary: 280 84% 41%;
  --secondary: 328 85% 46%;
  --background: 280 30% 98%;
  --foreground: 280 25% 10%;
  --card: 0 0% 100%;
  --muted: 280 20% 96%;
  --muted-fg: 280 10% 40%;
  --border: 280 20% 88%;
  --radius: 0.5rem;

  --font: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(2.25rem, 4.5vw, 3.25rem);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* === TYPOGRAPHY === */
h1, .hero-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2, .section-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--text-base); font-weight: 600; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font); font-weight: 600; font-size: var(--text-sm);
  transition: all 0.2s ease; cursor: pointer; border: none;
  text-decoration: none; gap: 0.5rem; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: #fff; box-shadow: 0 2px 12px hsl(var(--primary) / 0.3);
}
.btn-primary:hover { box-shadow: 0 4px 20px hsl(var(--primary) / 0.4); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: hsl(var(--foreground));
  border: 1.5px solid hsl(var(--border));
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-ghost { background: transparent; color: hsl(var(--muted-fg)); }
.btn-ghost:hover { color: hsl(var(--primary)); }
.btn-white {
  background: #fff; color: hsl(var(--foreground));
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-1px); }
.btn-lg { padding: 0.875rem 2rem; font-size: var(--text-base); }
.btn-block { width: 100%; }

/* === LEGAL PAGES === */
.legal-page {
  padding: 7rem 0 4rem;
}
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-page h3 { font-size: var(--text-base); margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-page p, .legal-page li { font-size: var(--text-sm); color: hsl(var(--muted-fg)); line-height: 1.7; margin-bottom: 0.75rem; }
.legal-page a { color: hsl(var(--primary)); text-decoration: underline; }
.legal-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-updated { font-size: var(--text-sm); color: hsl(var(--muted-fg)); margin-bottom: 2rem; }
.footer-company { font-size: var(--text-sm); color: hsl(var(--muted-fg)); margin-top: 0.5rem; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsl(var(--background) / 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  transition: box-shadow 0.3s;
}
.nav--scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo {
  width: 2rem; height: 2rem; border-radius: 0.375rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  padding: 0.2rem; object-fit: contain;
}
.nav-logo-text { font-weight: 700; font-size: var(--text-base); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: var(--text-sm); font-weight: 500; color: hsl(var(--muted-fg)); transition: color 0.2s; }
.nav-links a:hover { color: hsl(var(--primary)); }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: hsl(var(--foreground)); border-radius: 2px; transition: all 0.3s; }

/* === HERO === */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 6rem 0 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.hero-orb--1 { width: 500px; height: 500px; background: hsl(var(--primary) / 0.2); top: -10%; left: -5%; animation: float 20s ease-in-out infinite; }
.hero-orb--2 { width: 400px; height: 400px; background: hsl(var(--secondary) / 0.15); top: 20%; right: -5%; animation: float 25s ease-in-out infinite reverse; }
.hero-orb--3 { width: 300px; height: 300px; background: hsl(280 60% 70% / 0.1); bottom: 10%; left: 30%; animation: float 18s ease-in-out infinite 5s; }
.hero-grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: hsl(var(--border) / 0.4); opacity: 0.5;
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 99px;
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
  font-size: var(--text-sm); font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--primary)); animation: pulse 2s ease-in-out infinite;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-subtitle {
  font-size: var(--text-base); color: hsl(var(--muted-fg));
  max-width: 520px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.hero-stat-value {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-lg); color: hsl(var(--foreground));
}
.hero-stat-label { font-size: var(--text-sm); color: hsl(var(--muted-fg)); }
.hero-stat-divider { width: 1px; height: 2.5rem; background: hsl(var(--border)); }
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  pointer-events: none;
}

/* Hero flow diagram */
.hero-visual { display: flex; justify-content: center; }
.hero-flow {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto;
  gap: 1rem; width: 100%; max-width: 380px;
  position: relative; row-gap: 2.5rem;
}
.flow-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.flow-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.flow-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 0.375rem;
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
  flex-shrink: 0;
}
.flow-card-icon--gradient {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: #fff;
}
.flow-card--ext { grid-column: 1; }
.flow-card--mobile { grid-column: 2; }
.flow-card--solana { grid-column: 1 / -1; }
.flow-card--platform { grid-column: 1 / -1; }
.flow-arrow { display: none; }

/* === SECTIONS === */
.section { padding: 6rem 0; }
.section--tinted { background: hsl(var(--muted)); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; font-family: var(--font-mono); font-size: var(--text-sm);
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--primary)); margin-bottom: 1rem;
  padding: 0.25rem 0.75rem; border-radius: 99px;
  background: hsl(var(--primary) / 0.06);
}
.section-title { margin-bottom: 0; }
.section-desc {
  font-size: var(--text-base); color: hsl(var(--muted-fg));
  max-width: 560px; margin: 1rem auto 0;
}

/* === ECOSYSTEM GRID === */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.eco-card {
  padding: 2rem 1.75rem; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.eco-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.eco-card-number {
  font-weight: 700; font-size: var(--text-xl); color: hsl(var(--border));
  position: absolute; top: 0.75rem; right: 1.25rem; line-height: 1;
}
.eco-card-icon { margin-bottom: 1.25rem; color: hsl(var(--primary)); }
.eco-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.75rem; }
.eco-card p { font-size: var(--text-sm); color: hsl(var(--muted-fg)); line-height: 1.6; margin-bottom: 1.25rem; }
.eco-features li {
  font-size: var(--text-sm); color: hsl(var(--muted-fg));
  padding: 0.25rem 0; padding-left: 1rem; position: relative;
}
.eco-features li::before {
  content: ''; position: absolute; left: 0; top: 0.6rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
}

/* === HOW COLUMNS === */
.how-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.how-columns h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 2rem; color: hsl(var(--primary)); }

/* === STEPS === */
.steps { max-width: 640px; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-number {
  flex-shrink: 0; width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700; font-size: var(--text-base); color: #fff;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
}
.step-content h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.25rem; }
.step-content p { font-size: var(--text-sm); color: hsl(var(--muted-fg)); }
.step-connector { display: flex; justify-content: center; padding: 0.25rem 0; padding-left: 1.5rem; }
.step-connector-line {
  width: 2px; height: 2rem;
  background: linear-gradient(to bottom, hsl(var(--primary) / 0.3), hsl(var(--secondary) / 0.3));
  border-radius: 2px;
}

/* === IMAGE CARDS === */
.tokens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.img-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.img-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.img-card-photo { height: 160px; overflow: hidden; }
.img-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.img-card-body { padding: 1.5rem; }
.img-card-body h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.75rem; }
.img-card-body li {
  font-size: var(--text-sm); color: hsl(var(--muted-fg));
  padding: 0.3rem 0; padding-left: 1rem; position: relative;
}
.img-card-body li::before {
  content: ''; position: absolute; left: 0; top: 0.65rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: hsl(var(--primary) / 0.4);
}

/* Token type cards */
.token-types { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 640px; margin: 0 auto; }
.token-type-card {
  padding: 2rem; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  text-align: center; transition: transform 0.3s;
}
.token-type-card:hover { transform: translateY(-2px); }
.token-type-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(280 84% 55%));
  color: #fff; font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-sm); margin-bottom: 1rem;
}
.token-type-badge--secondary {
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(328 85% 58%));
}
.token-type-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.5rem; }
.token-type-card p { font-size: var(--text-sm); color: hsl(var(--muted-fg)); }

/* === CODE SHOWCASE === */
.code-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.code-block {
  background: hsl(280 50% 6%); border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.code-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; background: hsl(280 45% 9%);
  border-bottom: 1px solid hsl(280 40% 14%);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-filename { font-family: var(--font-mono); font-size: var(--text-sm); color: hsl(280 20% 50%); margin-left: auto; }
.code-content {
  padding: 1.5rem; font-family: var(--font-mono); font-size: var(--text-sm);
  line-height: 1.8; overflow-x: auto; color: hsl(280 20% 80%);
}
.code-comment { color: hsl(280 15% 40%); }
.code-tag { color: hsl(280 70% 70%); }
.code-attr { color: hsl(200 80% 70%); }
.code-string { color: hsl(120 50% 65%); }

/* Code features */
.code-features { display: flex; flex-direction: column; gap: 1.75rem; }
.code-feature { display: flex; gap: 1rem; align-items: flex-start; }
.code-feature-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}
.code-feature h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: 0.25rem; }
.code-feature p { font-size: var(--text-sm); color: hsl(var(--muted-fg)); line-height: 1.5; }
.code-feature code {
  font-family: var(--font-mono); font-size: var(--text-sm);
  background: hsl(var(--primary) / 0.06); padding: 0.125rem 0.375rem;
  border-radius: 3px; color: hsl(var(--primary));
}

/* === PRICING / TOP UP === */
.topup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pricing-card {
  padding: 2rem; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card .btn { margin-top: auto; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.pricing-card--featured {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary)), 0 8px 30px hsl(var(--primary) / 0.12);
}
.pricing-popular {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; border-radius: 99px; font-size: var(--text-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: #fff; white-space: nowrap;
}
.pricing-tier { font-weight: 700; font-size: var(--text-base); margin-bottom: 0.75rem; }
.pricing-price {
  font-weight: 700; font-size: var(--text-lg); margin-bottom: 0.5rem;
}
.pricing-price span { font-size: var(--text-sm); font-weight: 500; color: hsl(var(--muted-fg)); }
.pricing-desc { font-size: var(--text-sm); color: hsl(var(--muted-fg)); margin-bottom: 1.5rem; }
.pricing-features { margin-bottom: 2rem; flex: 1; }
.pricing-features li {
  font-size: var(--text-sm); padding: 0.4rem 0; padding-left: 1.5rem; position: relative;
  color: hsl(var(--foreground));
}
.pricing-features li::before {
  content: ''; position: absolute; left: 0; top: 0.7rem;
  width: 12px; height: 6px; border-left: 2px solid hsl(var(--primary));
  border-bottom: 2px solid hsl(var(--primary));
  transform: rotate(-45deg);
}
.pricing-tokens {
  font-size: var(--text-lg); font-weight: 700; color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}
.pricing-bonus {
  font-size: var(--text-sm); font-weight: 600; color: hsl(var(--secondary));
  margin-bottom: 0;
}
.topup-info {
  max-width: 900px; margin: 0 auto 2rem;
  padding: 2rem; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
}
.topup-info h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 1.25rem; }
.topup-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.topup-service {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-sm); color: hsl(var(--muted-fg));
}
.topup-service-icon { color: hsl(var(--primary)); flex-shrink: 0; display: flex; }
.topup-enterprise {
  text-align: center; font-size: var(--text-sm); color: hsl(var(--muted-fg));
}
.topup-enterprise a { color: hsl(var(--primary)); text-decoration: underline; }

/* === CTA === */
.cta-section {
  position: relative; padding: 6rem 0; overflow: hidden;
  background: hsl(var(--muted));
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.cta-orb--1 { width: 500px; height: 500px; background: hsl(var(--primary) / 0.08); top: -30%; right: -10%; }
.cta-orb--2 { width: 400px; height: 400px; background: hsl(var(--secondary) / 0.06); bottom: -30%; left: -10%; }
.cta-content { position: relative; text-align: center; }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { font-size: var(--text-base); color: hsl(var(--muted-fg)); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
.footer { padding: 4rem 0 2rem; border-top: 1px solid hsl(var(--border)); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: var(--text-sm); color: hsl(var(--muted-fg)); margin-top: 1rem; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: 0.5rem; }
.footer-col a { font-size: var(--text-sm); color: hsl(var(--muted-fg)); transition: color 0.2s; }
.footer-col a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid hsl(var(--border));
  font-size: var(--text-sm); color: hsl(var(--muted-fg));
}
.footer-bottom a { color: hsl(var(--primary)); }

/* === ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 15px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.anim-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-in.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .eco-grid, .tokens-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .topup-services { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .hero-flow { max-width: 320px; margin: 0 auto; }
  .code-showcase { grid-template-columns: 1fr; }
  .how-columns { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat-divider { width: 2.5rem; height: 1px; }
  .section { padding: 4rem 0; }
  .eco-grid, .tokens-grid { grid-template-columns: 1fr; }
  .how-columns { grid-template-columns: 1fr; gap: 3rem; }
  .topup-grid { grid-template-columns: 1fr; max-width: 360px; }
  .topup-services { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .token-types { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Mobile nav open state */
.nav-open .nav-links {
  display: flex; flex-direction: column; position: absolute;
  top: 4rem; left: 0; right: 0; padding: 1.5rem;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  gap: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav-open .nav-actions {
  display: flex; position: absolute;
  top: calc(4rem + var(--links-height, 12rem));
  left: 0; right: 0; padding: 0 1.5rem 1.5rem;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  gap: 0.75rem;
}
.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
