/* ─── UFC Freedom 250 — Dark Fight Night / USA Theme ───────────────────────── */

:root {
  --black: #050508;
  --night: #0a0a0f;
  --night-mid: #12121a;
  --night-card: #16161f;
  --ufc-red: #d20a0a;
  --ufc-red-bright: #ff1a1a;
  --usa-blue: #1a3a6e;
  --usa-blue-bright: #2563b8;
  --white: #f5f5f7;
  --silver: #9ca3af;
  --gold: #e8c547;

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Roboto Condensed", sans-serif;

  --header-h: 72px;
  --radius: 6px;
  --glow-red: 0 0 40px rgba(210, 10, 10, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(210, 10, 10, 0.12) 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(5, 5, 8, 0.55) 0%,
      rgba(5, 5, 8, 0.78) 40%,
      rgba(5, 5, 8, 0.94) 75%,
      rgba(5, 5, 8, 0.98) 100%
    );
}

.cage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
}

.stripes-accent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ufc-red) 0px,
    var(--ufc-red) 36px,
    var(--white) 36px,
    var(--white) 72px,
    var(--usa-blue) 72px,
    var(--usa-blue) 108px
  );
  z-index: 50;
  opacity: 0.9;
}

.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(5, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ufc-red);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--glow-red);
}

.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(--white);
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(210, 10, 10, 0.5));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-freedom {
  display: block;
  font-size: 0.65em;
  color: var(--ufc-red-bright);
  letter-spacing: 0.15em;
}

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

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

.nav-links a:hover {
  color: var(--ufc-red-bright);
}

.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(--ufc-red);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  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(135deg, var(--ufc-red-bright) 0%, var(--ufc-red) 100%);
  color: var(--white);
  border-color: var(--ufc-red-bright);
  box-shadow: var(--glow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(210, 10, 10, 0.55);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
}

/* ── 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 5rem;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.25rem;
  border: 1px solid rgba(210, 10, 10, 0.5);
  background: rgba(210, 10, 10, 0.1);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.badge-star {
  color: var(--usa-blue-bright);
}

.hero-logo {
  width: min(300px, 70vw);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(210, 10, 10, 0.25));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 12px 40px rgba(0,0,0,0.8)) drop-shadow(0 0 20px rgba(210,10,10,0.2)); }
  50% { filter: drop-shadow(0 12px 40px rgba(0,0,0,0.8)) drop-shadow(0 0 45px rgba(210,10,10,0.45)); }
}

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

.hero-ufc {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--ufc-red);
  letter-spacing: 0.2em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(210, 10, 10, 0.6);
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 4px 0 var(--ufc-red), 0 8px 24px rgba(0, 0, 0, 0.9);
}

.hero-ticker {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-top: 0.5rem;
}

.hero-tagline {
  max-width: 580px;
  color: rgba(245, 245, 247, 0.85);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 2rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.hero-tagline strong {
  color: var(--ufc-red-bright);
}

.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-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

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

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

.copy-btn {
  flex-shrink: 0;
  background: rgba(210, 10, 10, 0.2);
  border: 1px solid var(--ufc-red);
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(210, 10, 10, 0.4);
}

.octagon-ring {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  border: 2px solid rgba(210, 10, 10, 0.15);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  pointer-events: none;
  opacity: 0.4;
}

/* ── Banner ────────────────────────────────────────────────────────────────── */
.banner-feature {
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid rgba(210, 10, 10, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), var(--glow-red);
}

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

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

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ufc-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  color: var(--white);
}

.section-subtitle {
  color: var(--silver);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.about {
  background: rgba(10, 10, 15, 0.85);
}

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

.about-card {
  padding: 2rem 1.75rem;
  background: var(--night-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border-top: 3px solid var(--ufc-red);
  transition: transform 0.25s, border-color 0.25s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 10, 10, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.usa-flag-icon {
  display: block;
  width: 40px;
  height: auto;
  border-radius: 3px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); */
  /* border: 1px solid rgba(255, 255, 255, 0.15); */
}

.usa-flag-icon--sm {
  width: 28px;
}

.footer-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.footer-glove {
  font-size: 1rem;
  line-height: 1;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

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

.about-card code {
  background: rgba(210, 10, 10, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--ufc-red-bright);
  font-size: 0.85em;
}

/* ── Stats ───────────────────────────────────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(90deg, var(--usa-blue) 0%, var(--night-mid) 30%, var(--night-mid) 70%, var(--ufc-red) 100%);
  border-top: 2px solid var(--ufc-red);
  border-bottom: 2px solid var(--usa-blue-bright);
  padding: 2rem 0;
}

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

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

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.35rem;
}

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

/* ── Fighter / Trump UFC ─────────────────────────────────────────────────────── */
.fighter-section {
  background: rgba(5, 5, 8, 0.9);
  overflow: hidden;
}

.fighter-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(210, 10, 10, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fighter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.fighter-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--ufc-red);
  box-shadow: var(--glow-red), 0 24px 60px rgba(0, 0, 0, 0.7);
}

.fighter-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 5, 8, 0.85) 100%);
  pointer-events: none;
}

.fighter-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.fighter-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--white);
  background: var(--ufc-red);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

.fighter-copy .section-label,
.fighter-copy .section-title {
  text-align: left;
}

.fighter-copy p {
  color: var(--silver);
  margin-bottom: 1.25rem;
}

.fighter-copy strong {
  color: var(--white);
}

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

.chart-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(210, 10, 10, 0.35);
  background: var(--night-card);
  position: relative;
}

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

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

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

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

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

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

.placeholder-hint code {
  color: var(--ufc-red-bright);
}

/* ── Buy ─────────────────────────────────────────────────────────────────────── */
.buy-section {
  background: rgba(10, 10, 15, 0.8);
}

.buy-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  background: var(--night-card);
  border: 1px solid rgba(210, 10, 10, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--glow-red);
}

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

.buy-content p {
  color: var(--silver);
  margin-bottom: 2rem;
}

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

.buy-logo {
  width: min(260px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 32px rgba(210, 10, 10, 0.35));
}

/* ── Community ───────────────────────────────────────────────────────────────── */
.community {
  background: rgba(5, 5, 8, 0.85);
  padding-bottom: 6rem;
}

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

.social-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--night-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  transition: all 0.25s;
}

.social-card:hover {
  border-color: var(--ufc-red);
  transform: translateY(-3px);
  box-shadow: var(--glow-red);
}

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

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

.social-icon.twitter {
  background: rgba(255, 255, 255, 0.08);
}

.social-icon.telegram {
  background: rgba(0, 136, 204, 0.2);
  color: #38bdf8;
}

.social-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-handle {
  display: block;
  font-size: 0.9rem;
  color: var(--silver);
  margin-top: 0.15rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 2px solid var(--ufc-red);
  padding: 3rem 0 2.5rem;
  background: var(--black);
  margin-bottom: 6px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--silver);
  max-width: 520px;
  margin: 0 auto 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(156, 163, 175, 0.6);
}

/* ── Toast ───────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ufc-red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
  pointer-events: none;
}

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

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.98);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 2px solid var(--ufc-red);
  }

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

  .nav-cta {
    display: none;
  }

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

  .fighter-grid,
  .buy-card {
    grid-template-columns: 1fr;
  }

  .fighter-visual {
    order: -1;
  }

  .buy-visual {
    order: -1;
  }

  .fighter-copy .section-label,
  .fighter-copy .section-title {
    text-align: center;
  }

  .fighter-copy {
    text-align: center;
  }

  .fighter-copy .btn {
    margin: 0 auto;
  }

  .stat-divider {
    display: none;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #chart-embed-container {
    padding-bottom: 85%;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .buy-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .buy-actions .btn {
    width: 100%;
  }
}
