/* ─── Hunterius Maximus — Ancient Roman / Parchment Theme ───────────────── */

:root {
  --stone-dark: #1a1410;
  --stone-mid: #2a2218;
  --stone-light: #3d3228;
  --crimson: #7e0912;
  --crimson-bright: #a8141f;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8a6f18;
  --parchment: #f0e4c8;
  --parchment-dark: #dcc9a3;
  --parchment-shadow: #b8a47a;
  --cream: #faf3e4;
  --ink: #1f1810;
  --ink-muted: #4a3d2e;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --font-accent: "IM Fell English", Georgia, serif;

  --header-h: 72px;
  --radius: 3px;
  --shadow: 0 4px 28px rgba(10, 8, 6, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--stone-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Background layers ───────────────────────────────────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-image {
  position: absolute;
  inset: 0;
  background: url("background.png") center center / cover no-repeat;
  background-attachment: fixed;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(126, 9, 18, 0.25) 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(26, 20, 16, 0.45) 0%,
      rgba(26, 20, 16, 0.65) 40%,
      rgba(26, 20, 16, 0.88) 75%,
      rgba(26, 20, 16, 0.95) 100%
    );
}

.marble-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
}

.roman-border {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  z-index: 50;
}

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

/* ── Header ────────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(201, 162, 39, 0.3);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.5);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.logo-sub {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(232, 197, 71, 0.7);
}

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

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--crimson-bright) 0%, var(--crimson) 100%);
  color: var(--cream);
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(126, 9, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #c41824 0%, var(--crimson-bright) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(126, 9, 18, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.14);
  transform: translateY(-1px);
}

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

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1rem 4rem;
  position: relative;
}

.hero-banner {
  width: min(900px, 95vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

.hero-logo {
  width: min(180px, 40vw);
  height: auto;
  object-fit: contain;
  margin: -2.5rem auto 1rem;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
  animation: logo-float 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(126, 9, 18, 0.2);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.75));
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--crimson-bright);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero-ticker {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  margin-top: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-motto {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(232, 197, 71, 0.75);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  color: rgba(250, 243, 228, 0.92);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-tagline strong {
  color: var(--gold-light);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-contract {
  width: min(640px, 92vw);
}

.contract-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contract-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.contract-box code {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--cream);
  word-break: break-all;
  text-align: left;
}

.copy-btn {
  flex-shrink: 0;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  padding: 0.4rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  background: rgba(201, 162, 39, 0.3);
}

.hero-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0.6;
}

.ornament-line {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-symbol {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  position: relative;
}

.about {
  background: rgba(26, 20, 16, 0.7);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  color: rgba(250, 243, 228, 0.65);
  font-size: 1.05rem;
}

/* ── Parchment cards ───────────────────────────────────────────────────────── */
.parchment {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #f5ebd4 0%, var(--parchment) 40%, var(--parchment-dark) 100%);
  color: var(--ink);
  border: 1px solid var(--parchment-shadow);
  box-shadow:
    var(--shadow),
    inset 0 0 80px rgba(184, 164, 122, 0.25);
  position: relative;
}

.parchment::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(126, 9, 18, 0.18);
  pointer-events: none;
  border-radius: 1px;
}

.parchment::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(126, 9, 18, 0.15), transparent);
  pointer-events: none;
}

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.about-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.card-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--crimson);
  color: var(--crimson);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  background: rgba(126, 9, 18, 0.06);
}

/* ── Stats strip ───────────────────────────────────────────────────────────── */
.stats-strip {
  background:
    linear-gradient(90deg, rgba(61, 50, 40, 0.95) 0%, rgba(126, 9, 18, 0.9) 50%, rgba(61, 50, 40, 0.95) 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 2rem 0;
}

.stats-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
}

/* ── Chart ─────────────────────────────────────────────────────────────────── */
.chart-section {
  background: rgba(0, 0, 0, 0.45);
}

.chart-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}

#chart-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 65%;
}

#chart-embed-container.show-placeholder {
  padding-bottom: 0;
}

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

.chart-placeholder {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--ink-muted);
}

.chart-placeholder.hidden {
  display: none;
}

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

.placeholder-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.placeholder-hint code {
  background: rgba(126, 9, 18, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--crimson);
}

/* ── Buy section ───────────────────────────────────────────────────────────── */
.buy-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius);
}

.buy-content .section-label,
.buy-content .section-title {
  text-align: left;
}

.buy-content p {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.buy-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.buy-logo {
  width: min(280px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

/* ── Community ─────────────────────────────────────────────────────────────── */
.community {
  background: rgba(26, 20, 16, 0.65);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: rgba(42, 34, 24, 0.85);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--cream);
  transition: all 0.25s;
}

.social-card:hover {
  border-color: var(--gold);
  background: rgba(61, 50, 40, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.social-icon.twitter {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.social-icon.telegram {
  background: rgba(0, 136, 204, 0.25);
  color: #4fc3f7;
}

.social-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.social-handle {
  display: block;
  font-size: 0.85rem;
  color: rgba(250, 243, 228, 0.6);
  margin-top: 0.15rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: rgba(15, 12, 9, 0.95);
  border-top: 2px solid rgba(201, 162, 39, 0.25);
  padding: 3rem 0 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(250, 243, 228, 0.5);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

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

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250, 243, 228, 0.35);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--crimson);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 20, 16, 0.98);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
  }

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

  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-logo {
    margin-top: -1.5rem;
    width: min(140px, 50vw);
  }

  .buy-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .buy-content .section-label,
  .buy-content .section-title {
    text-align: center;
  }

  .buy-actions {
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .bg-image {
    background-attachment: scroll;
  }
}
