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

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --black-border: #1a1a1a;
  --gray: #888888;
  --gray-light: #cccccc;
  --white: #ffffff;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-dim: #1e3a5f;
  --success: #22c55e;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--gray-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-glow);
  top: -200px;
  right: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.12);
  bottom: 20%;
  left: -150px;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--black-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.nav-logo {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--black-border);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 36px var(--accent-glow);
}

.btn-secondary {
  background: var(--black-card);
  color: var(--white);
  border: 1px solid var(--black-border);
}

.btn-secondary:hover {
  border-color: var(--gray);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--black-border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 0;
}

.hero-banner-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.hero-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--black-border);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.hero-glow {
  position: absolute;
  inset: 24px 24px 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  padding: 2.5rem 0 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .badge {
  margin-bottom: 1rem;
}

.hero-content .hero-tagline {
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.hero-content .hero-actions {
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-content .contract-box {
  max-width: 520px;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
}

.ticker {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 0.25rem 0 1.25rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--gray);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contract-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  max-width: 100%;
}

.contract-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  flex-shrink: 0;
}

.contract-address {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--gray-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--black-border);
  border: none;
  border-radius: 8px;
  color: var(--gray-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.copy-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

/* About logo */
.about-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 30px var(--accent-glow);
}

.about-card-featured {
  text-align: center;
}

.footer-logo {
  border-radius: 50%;
  object-fit: cover;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
  background: var(--black-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--black-border);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--black-soft);
  text-align: center;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header .section-title {
  margin-bottom: 0;
}

.link-arrow {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.link-arrow:hover {
  opacity: 0.8;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.about-card:hover {
  border-color: var(--accent-dim);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

.about-card .link-arrow {
  display: inline-block;
  margin-top: 1rem;
}

/* Chart */
.chart-section {
  background: var(--black-soft);
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-border);
  background: var(--black-card);
}

.chart-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.chart-loading,
.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--black-card);
}

.chart-placeholder h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.chart-placeholder p {
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  max-width: 360px;
}

.chart-placeholder code {
  background: var(--black-border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent);
}

.placeholder-icon {
  font-size: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--black-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Buy section */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray);
}

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--black-border);
  padding: 3rem 0;
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--gray);
  max-width: 480px;
  opacity: 0.7;
}
