:root {
  --bg: #050816;
  --bg-2: #091122;
  --panel: rgba(10, 17, 34, 0.92);
  --panel-2: rgba(12, 20, 38, 0.94);
  --panel-3: rgba(18, 28, 52, 0.72);
  --border: rgba(123, 92, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --text-soft: rgba(238, 242, 255, 0.78);
  --muted: rgba(238, 242, 255, 0.56);
  --primary: #7b5cff;
  --accent: #42cfff;
  --success: #61e9ba;
  --danger: #ff7d9d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(123, 92, 255, 0.12), transparent 25%),
    radial-gradient(circle at 86% 12%, rgba(66, 207, 255, 0.10), transparent 24%),
    linear-gradient(180deg, #040714 0%, #060b18 45%, #040714 100%);
  overflow-x: hidden;
}

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

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

canvas {
  display: block;
  width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

.section {
  padding: 4.75rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-family: "Space Grotesk", sans-serif;
}

.section-sub,
.cta-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

/* Header — transparent shell so the floating pill sits inside it */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
  background: transparent;
}

/* Floating pill nav */
/* Ghost nav — fully transparent, floats on the hero image */
.nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-img-foot {
  height: 44px;
  width: auto;
}

/* Nav outer container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Ghost link group */
.nav-links-group {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.28rem 0.35rem;
}

.nav-links-group > a {
  position: relative;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: rgba(238, 242, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links-group > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Auth buttons cluster */
.nav-links-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.nav-login:hover {
  border-color: rgba(123, 92, 255, 0.5);
  color: var(--text);
  background: rgba(123, 92, 255, 0.08);
}

.nav-cta.btn-primary {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.6rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.menu-toggle:hover {
  border-color: rgba(123, 92, 255, 0.4);
  background: rgba(123, 92, 255, 0.08);
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 34px rgba(88, 110, 255, 0.30);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(88, 110, 255, 0.45);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(123, 92, 255, 0.24);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.btn-secondary:hover {
  border-color: rgba(123, 92, 255, 0.5);
  background: rgba(123, 92, 255, 0.08);
}

.btn-lg {
  min-height: 54px;
  padding: 0.95rem 1.55rem;
}

/* Hero — pulled up behind the transparent floating nav */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: -5.5rem;
  padding: 8.5rem 0 0;
  overflow: hidden;
  background:
    url('../img/hero-bg.png') center / cover no-repeat;
}

/* Left-to-right fade + global tint to integrate the image into the dark theme */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      rgba(4, 7, 20, 0.96) 0%,
      rgba(4, 7, 20, 0.82) 30%,
      rgba(4, 7, 20, 0.40) 52%,
      rgba(4, 7, 20, 0.10) 70%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 10, 28, 0.55) 0%,
      rgba(3, 10, 28, 0.15) 20%,
      rgba(3, 10, 28, 0.55) 80%,
      rgba(3, 10, 28, 0.75) 100%
    );
}

/* Floating price label container */
.hero-float-prices {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Individual price chip */
.hero-price-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(4, 10, 24, 0.78);
  border: 1px solid rgba(66, 207, 255, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(66, 207, 255, 0.06) inset;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  animation: price-float-in 0.5s ease forwards;
}

@keyframes price-float-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-price-float .fpf-sym {
  color: #42cfff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hero-price-float .fpf-price {
  color: var(--text);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hero-price-float { animation: none; opacity: 1; }
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
}

.hero-glow-a {
  width: 480px;
  height: 480px;
  left: -120px;
  top: -40px;
  background: rgba(123, 92, 255, 0.14);
}

.hero-glow-b {
  width: 440px;
  height: 440px;
  right: -100px;
  top: 60px;
  background: rgba(66, 207, 255, 0.08);
}

.hero-center {
  position: relative;
  z-index: 4;
  flex: 1;
  max-width: 820px;
  margin-left: clamp(1.25rem, 5vw, 5rem);
  margin-right: auto;
  padding-bottom: 2rem;
}

@media (max-width: 860px) {
  .hero-float-prices { display: none; }
  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 7, 20, 0.96) 0%,
      rgba(4, 7, 20, 0.88) 60%,
      rgba(4, 7, 20, 0.75) 100%
    );
  }
}

.hero-center h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  max-width: 16ch;
}

.hero-text {
  margin: 0 0 1.8rem;
  max-width: 460px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}



.up {
  color: var(--success);
}

.down {
  color: var(--danger);
}

/* Market marquee — now lives inside the hero */
.market-strip {
  position: absolute;
  bottom: 6rem;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0.75rem 0;
}

.marquee-track-wrap {
  position: relative;
  overflow: hidden;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  padding: 0.4rem 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.18);
  background: rgba(20, 28, 52, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item .symbol {
  color: #3fe6ff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.ticker-item .price {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.ticker-item .change {
  font-weight: 700;
  font-size: 0.85rem;
}

.ticker-item .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.ticker-loading {
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.18);
  background: rgba(20, 28, 52, 0.5);
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(123, 92, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    rgba(9, 14, 28, 0.84);
  box-shadow: var(--shadow);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.step-card:hover {
  border-color: rgba(123, 92, 255, 0.4);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(123, 92, 255, 0.13);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(123, 92, 255, 0.1);
  border: 1px solid rgba(123, 92, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card h3 {
  margin: 0 0 0.85rem;
  padding-right: 2.5rem;
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

/* Features */
.features-section {
  padding-top: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(123, 92, 255, 0.15);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(9, 14, 28, 0.8);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.feature-card:hover {
  border-color: rgba(66, 207, 255, 0.35);
  transform: translateY(-3px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(66, 207, 255, 0.08);
  border: 1px solid rgba(66, 207, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* CTA */
.cta-section {
  padding-top: 3.75rem;
}

.cta-card {
  text-align: center;
  padding: 2.75rem 2rem;
  border-radius: 30px;
  border: 1px solid rgba(123, 92, 255, 0.22);
  background:
    radial-gradient(circle at top center, rgba(66, 207, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    rgba(10, 16, 31, 0.90);
  box-shadow: var(--shadow);
}

.cta-card p {
  margin: 0 auto 1.3rem;
  max-width: 760px;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  max-width: 900px;
  margin: 0 auto 0.8rem;
}

.cta-form input {
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.26);
  background: rgba(4, 8, 18, 0.95);
  color: var(--text);
  padding: 0 1.1rem;
  font-size: 1rem;
  outline: none;
}

.cta-form input:focus {
  border-color: rgba(66, 207, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(66, 207, 255, 0.10);
}

.cta-feedback {
  min-height: 1.5rem;
  color: var(--text-soft);
}

.disclaimer {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h4 {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-soft);
}

.footer-grid a:hover {
  color: var(--text);
}

.foot-note {
  margin-top: 1rem;
  max-width: 340px;
  color: var(--text-soft);
  line-height: 1.75;
}

.tiny {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    /* header padding (0.9rem) + pill height (~58px) + 0.9rem padding + gap */
    top: calc(0.9rem + 58px + 0.9rem + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 9, 22, 0.98);
    backdrop-filter: blur(28px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .nav-links.show {
    display: flex;
  }

  /* Flatten the groups for mobile */
  .nav-links-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }

  .nav-links-group > a {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nav-links-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 0.25rem;
  }

  .nav-login {
    justify-content: center;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .nav-cta.btn-primary {
    min-height: 44px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .cta-form,
  .footer-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 10rem;
  }

  .hero-center h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 9.5rem 0 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-card {
    padding: 2rem 1.2rem;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }
}