:root {
  --bg: #05060a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --cyan: #00f0ff;
  --purple: linear-gradient(135deg, #667eea, #764ba2);
  --green: linear-gradient(135deg, #11998e, #38ef7d);
  --pink: linear-gradient(135deg, #f093fb, #f5576c);
  --download: linear-gradient(135deg, #00c6ff, #0072ff);
  --font: "Outfit", system-ui, sans-serif;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Header */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  opacity: 0.92;
}

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

/* Hero */
.hero {
  position: relative;
  flex: 1;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 18px 20px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse at 50% 70%, rgba(20, 80, 180, 0.35), transparent 60%);
  pointer-events: none;
}

.floating-coins {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.coin {
  position: absolute;
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.35));
  animation: floatY 3.6s ease-in-out infinite;
}

.ball1 {
  top: 10%;
  left: 12%;
  width: 40px;
  animation-delay: 0s;
}

.ball2 {
  top: 26%;
  left: 4%;
  width: 80px;
  animation-delay: -1.2s;
}

.ball3 {
  top: 52%;
  left: 12%;
  width: 40px;
  animation-delay: -0.6s;
}

.ball4 {
  top: 10%;
  right: 12%;
  width: 40px;
  animation-delay: -1.8s;
}

.ball5 {
  top: 26%;
  right: 3%;
  width: 80px;
  animation-delay: -0.3s;
}

.ball6 {
  top: 52%;
  right: 12%;
  width: 40px;
  animation-delay: -2.1s;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline {
  font-size: clamp(1.65rem, 7vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.brand {
  color: var(--cyan);
  display: inline-block;
}

.subhead {
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.stats {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeUp 1s ease 0.15s both;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.62rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.65);
}

.trade-btns {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  animation: fadeUp 1s ease 0.25s both;
}

.trade-btn {
  flex: 1;
  height: 42px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

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

.trade-btn.option {
  background: var(--purple);
}

.trade-btn.spot {
  background: var(--green);
}

.trade-btn.perpetual {
  background: var(--pink);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  height: 48px;
  margin-top: 4px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--download);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.25),
    0 10px 28px rgba(0, 114, 255, 0.45);
  animation: pulseGlow 2.4s ease-in-out infinite, fadeUp 1s ease 0.35s both;
  transition: transform 0.2s ease;
}

.download-btn:active {
  transform: scale(0.98);
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 240, 255, 0.25),
      0 10px 28px rgba(0, 114, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 240, 255, 0.5),
      0 12px 36px rgba(0, 240, 255, 0.55);
  }
}

/* Quick nav */
.quick-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 14px 8px 22px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
}

.nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
}

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

@media (min-width: 481px) {
  .app {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    min-height: 100vh;
  }

  .headline {
    font-size: 2.15rem;
  }
}
