/* ===== DESIGN TOKENS ===== */
:root {
  --bg-deep: #1a4a24;
  --bg-primary: #1f5529;
  --bg-elevated: #245f2f;
  --bg-card: #2a6b38;
  --bg-card-hover: #307842;

  --green-primary: #00c805;
  --green-forest: #2d6a3e;
  --green-muted: #2d6a3e;
  --green-glow: rgba(0, 200, 5, 0.15);

  --gold-primary: #c9a227;
  --gold-light: #e8c547;
  --gold-muted: rgba(201, 162, 39, 0.12);
  --gold-border: rgba(201, 162, 39, 0.25);

  --red-accent: #c0392b;

  --text-primary: #f0f2ee;
  --text-secondary: #8a968a;
  --text-muted: #5c6b5c;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 162, 39, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 200, 5, 0.08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --nav-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

/* ===== AMBIENT BACKGROUND ===== */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(72, 160, 88, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(201, 162, 39, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(48, 120, 66, 0.12), transparent);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(26, 74, 36, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition);
}

.nav-brand:hover {
  opacity: 0.85;
}

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

.nav-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  transition: width var(--transition);
  border-radius: 1px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 80px;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(26, 74, 36, 0.35) 0%, rgba(26, 74, 36, 0.15) 40%, rgba(26, 74, 36, 0.92) 85%, var(--bg-deep) 100%),
    linear-gradient(to right, rgba(26, 74, 36, 0.55) 0%, transparent 50%, rgba(26, 74, 36, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  padding: 0 24px;
  margin-top: calc(var(--nav-height) + 40vh);
  animation: heroFadeIn 1s ease-out;
}

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

.hero-logo-wrap {
  margin: 0 auto 24px;
  width: 120px;
  height: 120px;
  position: relative;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--gold-primary), var(--green-forest), var(--gold-primary));
  opacity: 0.4;
  filter: blur(12px);
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(201, 162, 39, 0.3);
  position: relative;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, #a88620 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  min-width: 160px;
}

.btn-primary {
  background: var(--green-primary);
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 200, 5, 0.3);
}

.btn-primary:hover {
  background: #00e006;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 5, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--gold-muted);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 24px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-glow);
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== TOKENOMICS ===== */
.tokenomics-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.token-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.token-metric:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.token-metric-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.token-metric-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.token-metric-note {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== SOCIAL CARDS ===== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  min-width: 0;
}

.social-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateX(4px);
}

.social-card:hover .social-arrow {
  opacity: 1;
  transform: translateX(0);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.dex-icon-wrap {
  background: #fff;
}

.dex-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-info {
  flex: 1;
  min-width: 0;
}

.social-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.social-desc {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.social-arrow {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  flex-shrink: 0;
}

/* ===== CONTRACT ADDRESS ===== */
.ca-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.ca-input-wrap {
  display: flex;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 24px;
  transition: border-color var(--transition);
}

.ca-input-wrap:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.ca-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green-primary);
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.copy-btn:hover {
  background: #00e006;
  transform: scale(1.02);
}

.copy-btn.copied {
  background: var(--gold-primary);
  color: #000;
}

.ca-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== CHART ===== */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  box-shadow: var(--shadow-md);
}

.dex-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    max-width: 100%;
  }

  .tokenomics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 74, 36, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    margin-top: calc(var(--nav-height) + 30vh);
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .tokenomics-metrics {
    grid-template-columns: 1fr;
  }

  .ca-input-wrap {
    flex-direction: column;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .ca-input {
    text-align: center;
    padding: 8px 0;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .chart-card {
    padding-bottom: 120%;
  }

  .section {
    padding-top: 72px;
  }
}

@media (max-width: 480px) {
  .hero-logo-wrap,
  .hero-logo {
    width: 96px;
    height: 96px;
  }

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

  .btn {
    width: 100%;
  }
}
