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

:root {
  --bg: #060A13;
  --bg-gradient: linear-gradient(180deg, #0B0F19 0%, #060A13 100%);
  --bg-card: rgba(22, 27, 34, 0.6);
  --accent: #00E676;
  --accent-soft: #00C853;
  --accent-dim: rgba(0, 230, 118, 0.15);
  --accent-glow: rgba(0, 230, 118, 0.35);
  --accent-glow-strong: rgba(0, 230, 118, 0.5);
  --text: #F8FAFC;
  --text-muted: #8B949E;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 230, 118, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  width: 100%;
  line-height: 1.4;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 10%, rgba(0, 230, 118, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(0, 230, 118, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.glow-2 {
  width: 240px;
  height: 240px;
  background: linear-gradient(315deg, var(--accent-soft) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  opacity: 0.25;
}

.landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(0.75rem, 4vw, 1.5rem) clamp(1rem, 6vw, 2.5rem) clamp(0.75rem, 2vw, 1rem);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 2vmin, 0.85rem);
  justify-content: center;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(0, 230, 118, 0.15);
}

.brand-name span {
  color: var(--accent);
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* Hero Wrapper */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .hero-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .hero-content {
    flex: 1;
    max-width: 50%;
  }

  .hero-visual {
    flex: 1;
    max-width: 50%;
  }
}

.hero-content {
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border: 1px solid var(--accent-dim);
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #fff 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Terminal Visual */
.trading-terminal {
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 230, 118, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 220px;
}

.terminal-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red {
  background: #FF5F56;
}

.dot.yellow {
  background: #FFBD2E;
}

.dot.green {
  background: #27C93F;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
  position: relative;
}

.terminal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(13, 17, 23, 0.9));
  pointer-events: none;
}

.trade-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.slide-in {
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.trade-time {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.trade-pair {
  color: #fff;
  font-weight: 600;
}

.trade-pnl.win {
  color: var(--accent);
}

.trade-pnl.loss {
  color: #FF5F56;
}

/* Row: stats + listing */
.row-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  flex-shrink: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.4rem;
}

.stat {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem 0.65rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.stat:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px var(--accent-dim), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim);
}

.stat-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Listing */
.listing {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-accent);
  box-shadow: 0 8px 32px var(--accent-dim), 0 0 0 1px rgba(0, 230, 118, 0.1) inset;
  overflow: hidden;
  transition: all 0.3s ease;
}

.listing:hover {
  box-shadow: 0 12px 48px var(--accent-glow), 0 0 0 1px rgba(0, 230, 118, 0.2) inset;
  transform: translateY(-2px);
}

.listing::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.5) 0%, rgba(0, 230, 118, 0.1) 50%, rgba(0, 230, 118, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.listing-label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.listing-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
}

.listing-countdown span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
}

.listing-countdown var {
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}

.listing-countdown em {
  font-style: normal;
  font-size: 0.5625rem;
  color: var(--text-muted);
  font-weight: 500;
}

.listing-note {
  font-size: 0.5625rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

/* Bullets */
.bullets {
  list-style: none;
  flex-shrink: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 4px var(--accent);
}

.cta-wrapper {
  margin-top: 1.25rem;
  position: relative;
}

.cta {
  display: block;
  width: 100%;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--accent-glow-strong), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.cta:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  opacity: 0.9;
}

@media (max-height: 640px) {
  .landing {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    gap: 0.4rem;
  }

  .hero-title {
    font-size: 1.15rem;
  }

  .hero-desc {
    font-size: 0.75rem;
  }

  .bullets li {
    font-size: 0.6875rem;
    margin-bottom: 0.2rem;
  }

  .cta {
    padding: 0.7rem;
    font-size: 0.875rem;
  }
}

.logo-img[src*="logo.svg"] {
  min-width: 48px;
  min-height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}