/* ============================================
   Ghost — Premium Dark Landing Page
   ============================================ */

:root {
  --bg: #08080c;
  --bg-elevated: #0e0e14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #ededf0;
  --text-dim: #8b8b96;
  --text-muted: #55555f;
  --accent: #e0e0e8;
  --accent-dim: #e0e0e822;
  --red: #e85454;
  --yellow: #d4a030;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 80px; }

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

/* ---- PAGE LOAD TRANSITION ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.page-loader__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0;
}

.page-loader--done {
  pointer-events: none;
}


/* Smoke Background */
#smoke-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0.55;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 51;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ---- GLASS PANELS ---- */
.glass-panel {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.glass-panel--hero {
  background: rgba(10, 10, 14, 0.45);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.glass-panel--section {
  background: rgba(10, 10, 14, 0.4);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
}

@media (max-width: 768px) {
  .glass-panel { padding: 32px 24px; }
  .glass-panel--hero { padding: 36px 24px; }
  .glass-panel--section { padding: 40px 24px; }
}

/* ---- NAV ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav__logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav__link:hover { color: var(--text); }

.nav__link--x {
  display: flex;
  align-items: center;
}

.nav__ca {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nav__ca:hover { border-color: var(--border-hover); }

.nav__ca-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav__ca-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__ca-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav__ca-copy-btn:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-menu__link:hover { color: var(--text); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: #ffffff;
  color: #08080c;
}

.btn--primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

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

.hero__title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: #ffffff;
}

.hero__title-accent {
  background: linear-gradient(90deg, #ffffff, #888892, #c0c0c8, #ffffff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.hero__sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.hero__stat-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--mono);
  color: #ffffff;
}

.hero__stat-suffix {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--mono);
  color: #ffffff;
}

.hero__stat-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ---- SECTIONS ---- */
.section {
  padding: 140px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: 72px;
}

.section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-family: var(--mono);
}

.section__title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #ffffff;
}

.section__sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

.text-accent { color: var(--accent); }
.text-red { color: var(--red); }

/* ---- PROBLEM CARDS ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.problem-card:hover {
  border-color: rgba(232, 84, 84, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.problem-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 84, 84, 0.08);
  border: 1px solid rgba(232, 84, 84, 0.12);
  border-radius: var(--radius-sm);
  color: var(--red);
  margin-bottom: 24px;
}

.problem-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.problem-card__text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.problem-card__terminal {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  overflow-x: auto;
}

.code-gray { color: var(--text-muted); }
.code-red { color: var(--red); }
.code-yellow { color: var(--yellow); }
.code-purple { color: #9090a0; }
.code-blue { color: #7898c0; }
.code-green { color: var(--accent); }

/* ---- SOLUTION CARDS ---- */
.section--solution {
  position: relative;
  overflow: hidden;
}

.solution__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.solution-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.solution-card__number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.solution-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.solution-card__text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- HOW IT WORKS ---- */
.steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 56px;
}

.step:last-child { padding-bottom: 0; }

.step__connector {
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

.step:last-child .step__connector { display: none; }

.step__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  color: #08080c;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  position: relative;
  z-index: 2;
}

.step__content { flex: 1; padding-top: 2px; }

.step__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.step__text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step__code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
}

.step__visual { margin-top: 4px; }

.step__flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step__flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.step__flow-node--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.step__flow-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.step__result {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step__result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

/* ---- COMPARISON TABLE ---- */
.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  backdrop-filter: blur(8px);
}

.compare-table__header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.compare-table__row:last-child { border-bottom: none; }
.compare-table__row:hover { background: rgba(255, 255, 255, 0.015); }

.compare-table__cell {
  padding: 16px 24px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: var(--text-dim);
}

.compare-table__cell--ghost {
  color: #ffffff;
  font-weight: 600;
}

.compare-table__header .compare-table__cell {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 14px 24px;
}

.compare-table__header .compare-table__cell--ghost {
  color: var(--text);
}

.check { color: #ffffff; font-size: 16px; font-weight: 700; }
.dim-check { opacity: 0.35; }
.cross { color: var(--text-muted); font-size: 16px; opacity: 0.4; }

/* ---- TOKENOMICS ---- */
.tokenomics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tokenomics-chart {
  display: flex;
  justify-content: center;
}

.tokenomics-ring {
  position: relative;
  width: 260px;
  height: 260px;
}

.tokenomics-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tokenomics-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tokenomics-ring__symbol {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.tokenomics-ring__total {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tokenomics-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tokenomics-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tokenomics-item__color {
  width: 3px;
  height: 100%;
  min-height: 56px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tokenomics-item__info { flex: 1; }

.tokenomics-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tokenomics-item__name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.tokenomics-item__pct {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
}

.tokenomics-item__bar {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.tokenomics-item__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.tokenomics-item__note {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---- CTA ---- */
.section--cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 160px 0;
}

.cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta__sub {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 44px;
  font-weight: 400;
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.cta__ca {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta__ca-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.cta__ca-value {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  backdrop-filter: blur(8px);
}

.cta__ca-value:hover { border-color: var(--border-hover); }

.cta__ca-value code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.cta__ca-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}

.cta__ca-copy:hover { color: var(--text); }

/* ---- ANIMATIONS ---- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.problem-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.solution-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.solution-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.solution-grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.steps .animate-in:nth-child(2) { transition-delay: 0.12s; }
.steps .animate-in:nth-child(3) { transition-delay: 0.24s; }

/* ---- SPOTLIGHT GLOW CARDS ---- */
.spotlight-card {
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-opacity: 0;
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--spot-opacity);
  transition: opacity 0.3s ease;
  background: radial-gradient(
    600px circle at var(--spot-x) var(--spot-y),
    var(--spot-color, rgba(255, 255, 255, 0.06)),
    transparent 40%
  );
  z-index: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

.spotlight-card--border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: var(--spot-opacity);
  transition: opacity 0.3s ease;
  background: radial-gradient(
    400px circle at var(--spot-x) var(--spot-y),
    var(--spot-border-color, rgba(255, 255, 255, 0.2)),
    transparent 40%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  z-index: 3;
}

.problem-card.spotlight-card {
  --spot-color: rgba(232, 84, 84, 0.07);
  --spot-border-color: rgba(232, 84, 84, 0.25);
}

.solution-card.spotlight-card {
  --spot-color: rgba(255, 255, 255, 0.06);
  --spot-border-color: rgba(255, 255, 255, 0.2);
}

.compare-table.spotlight-card {
  --spot-color: rgba(255, 255, 255, 0.04);
  --spot-border-color: rgba(255, 255, 255, 0.15);
}

/* ---- BORDER BEAM (rotating light on button edges) ---- */
.btn--beam {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--beam::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 70%,
    transparent 100%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  animation: beam-rotate 3s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.btn--beam::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 65%,
    transparent 100%
  );
  filter: blur(12px);
  animation: beam-rotate 3s linear infinite;
  z-index: -2;
  pointer-events: none;
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes beam-rotate {
  to { --beam-angle: 360deg; }
}

/* ---- SHIMMER EFFECT (for TBD placeholders) ---- */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer-sweep 2.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes shimmer-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- MAGNETIC BUTTON ---- */
.magnetic {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
  pointer-events: none;
}

/* ---- SLIDING NUMBER TICKER ---- */
.ticker {
  display: inline-flex;
  overflow: hidden;
  line-height: 1;
}

.ticker__digit {
  display: inline-block;
  position: relative;
  width: 0.6em;
  height: 1em;
  overflow: hidden;
}

.ticker__column {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker__num {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

/* ---- STEP CONNECTOR PULSE ---- */
.step__connector-pulse {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: pulse-travel 3s ease-in-out infinite;
  z-index: 3;
}

@keyframes pulse-travel {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---- HOVER CARD TILT ---- */
.tilt-card {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ---- FLOW DIAGRAM ---- */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.flow-diagram__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.flow-diagram__label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Connectors */
.flow-diagram__connector {
  flex-shrink: 0;
  width: 56px;
  margin: 0 -6px;
  transform: translateY(-10px);
}

.flow-diagram__connector--dashed {
  height: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.12);
}

.flow-diagram__connector--dots {
  position: relative;
  height: 6px;
  overflow: hidden;
}

.flow-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: flow-dot-move 1.5s ease-in-out infinite;
}

@keyframes flow-dot-move {
  0% { left: -6px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Terminal Card */
.flow-terminal {
  position: relative;
  width: 160px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.flow-terminal__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.flow-terminal__status--warn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(232, 84, 84, 0.4);
  animation: pulse-warn 2.5s ease-in-out infinite;
}

@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 84, 84, 0.4); }
  50% { box-shadow: 0 0 30px rgba(232, 84, 84, 0.6); }
}

.flow-terminal__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.flow-terminal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.flow-terminal__dot--red { background: rgba(239, 68, 68, 0.7); }
.flow-terminal__dot--yellow { background: rgba(234, 179, 8, 0.7); }
.flow-terminal__dot--green { background: rgba(34, 197, 94, 0.7); }

.flow-terminal__bar-title {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
}

.flow-terminal__body {
  padding: 8px 10px;
  height: 72px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-terminal__line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.flow-terminal__line--red {
  background: rgba(232, 84, 84, 0.25);
}

/* Icon Nodes */
.flow-icon {
  position: relative;
}

.flow-icon__glow {
  position: absolute;
  inset: -10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(16px);
  animation: icon-glow-pulse 3s ease-in-out infinite;
}

@keyframes icon-glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.flow-icon__box {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon__img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Endpoint Card */
.flow-endpoint {
  width: 150px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.flow-endpoint__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.flow-endpoint__method {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
}

.flow-endpoint__path {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
}

.flow-endpoint__section {
  padding: 6px 10px;
}

.flow-endpoint__section + .flow-endpoint__section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.flow-endpoint__heading {
  display: block;
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
}

.flow-endpoint__lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flow-endpoint__line {
  height: 4px;
  border-radius: 2px;
}

.flow-endpoint__line--masked {
  background: rgba(255, 255, 255, 0.08);
}

.flow-endpoint__line--success {
  background: rgba(34, 197, 94, 0.2);
}

/* Install Terminal */
.install-terminal {
  max-width: 580px;
  margin: 56px auto 0;
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.install-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.install-terminal__title {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.install-terminal__body {
  padding: 0;
}

.install-terminal__line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
}

.install-terminal__prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
}

.install-terminal__cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
}

.install-terminal__copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.install-terminal__copy:hover { color: var(--text); }

.install-terminal__divider {
  height: 1px;
  background: var(--border);
}

.install-terminal__code {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .flow-diagram {
    transform: scale(0.75);
    transform-origin: center top;
  }
  .install-terminal {
    margin-top: 24px;
  }
  .install-terminal__code {
    font-size: 11px;
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .flow-diagram {
    transform: scale(0.55);
  }
  .install-terminal__cmd {
    font-size: 11px;
  }
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.footer__logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer__logo-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__link {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__copy,
.footer__built {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.footer__sep {
  color: var(--text-muted);
  font-size: 10px;
  opacity: 0.5;
}

/* ---- GSAP TEXT EFFECTS ---- */
.gsap-hero-title,
.gsap-reveal {
  perspective: 600px;
}

.gsap-char,
.gsap-word {
  display: inline-block;
  will-change: transform, opacity;
}

.gsap-hero-badge,
.gsap-hero-sub,
.gsap-hero-actions,
.gsap-hero-stats {
  will-change: transform, opacity;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .solution-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tokenomics-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .header { padding: 16px 20px; }

  .hero { padding: 40px 0 80px; min-height: auto; }
  .hero__title { letter-spacing: -0.02em; }
  .hero__sub { font-size: 15px; }
  .hero__stats { gap: 28px; }
  .hero__stat-value { font-size: 26px; }
  .hero__stat-divider { height: 28px; }

  .section { padding: 100px 0; }
  .section__header { margin-bottom: 48px; }

  .step { gap: 20px; }

  .compare-table__header,
  .compare-table__row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  }
  .compare-table__cell { padding: 12px 12px; font-size: 11.5px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .cta__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .hero__stat-divider { width: 40px; height: 1px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__bottom { flex-wrap: wrap; }
}
