/* USDOGE — Patriotic degen meme coin */
:root {
  --red: #c41e3a;
  --red-bright: #e63946;
  --white: #f8f9fa;
  --blue: #002868;
  --blue-light: #1a4480;
  --gold: #ffd700;
  --gold-dark: #d4af37;
  --navy: #0a1628;
  --navy-card: #111d33;
  --stripe: repeating-linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 33.33%,
    var(--white) 33.33%,
    var(--white) 66.66%,
    var(--blue) 66.66%,
    var(--blue) 100%
  );
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.preloader-active {
  overflow: hidden;
}

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

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

/* —— Preloader —— */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.4) 0%,
    rgba(10, 22, 40, 0.7) 100%
  );
  z-index: 1;
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
}

.tap-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.3),
    2px 2px 0 var(--red),
    -2px -2px 0 var(--blue);
  animation: pulse-gold 2s ease-in-out infinite;
}

.tap-hint {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes pulse-gold {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.15);
  }
}

/* —— Main site entrance —— */
#main-site {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

#main-site.visible {
  opacity: 1;
  transform: translateY(0);
}

#main-site > *:not(.page-background) {
  position: relative;
  z-index: 1;
}

/* —— Landing page background (123.jpg) —— */
.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: bg-drift 24s ease-in-out infinite;
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.5) 0%,
      rgba(10, 22, 40, 0.62) 45%,
      rgba(10, 22, 40, 0.78) 100%
    );
}

@keyframes bg-drift {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .page-bg-image {
    animation: none;
  }

  .page-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.55) 0%,
      rgba(10, 22, 40, 0.82) 100%
    );
  }
}

/* —— Header —— */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent;
  border-image: var(--stripe) 1;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}

.header.visible {
  transform: translateY(0);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.header-logo span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  list-style: none;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1.5rem;
  border-bottom: 3px solid var(--gold);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile a {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.7);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

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

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.15);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 40, 104, 0.5);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Sections common —— */
section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0 var(--red);
}

.section-subtitle {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.stars-bg::before {
  content: "★ ★ ★";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.2;
  font-size: 1.5rem;
  letter-spacing: 2rem;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--stripe);
}

.hero-banner {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: float-banner 4s ease-in-out infinite;
}

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

.hero-logo {
  width: 120px;
  margin: -60px auto 1.5rem;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  text-align: center;
  line-height: 0.95;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(3px 3px 0 var(--red)) drop-shadow(-2px -2px 0 var(--blue));
  letter-spacing: 0.05em;
}

.hero-tagline {
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  margin: 1rem 0 2rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ca-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  background: var(--navy-card);
  border: 2px dashed var(--gold);
  border-radius: 12px;
  max-width: 480px;
}

.ca-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  width: 100%;
  text-align: center;
}

.ca-value {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-all;
}

.copy-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.copy-btn:hover {
  transform: scale(1.05);
  background: var(--white);
}

.copy-btn.copied {
  background: #2ecc71;
  color: var(--white);
}

/* —— About —— */
.about {
  background: rgba(10, 22, 40, 0.55);
}

.about-card {
  background: rgba(17, 29, 51, 0.8);
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-card p {
  margin-bottom: 1.25rem;
}

.about-card p:last-child {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.05em;
}

/* —— How to Buy —— */
.how-to-buy {
  background: rgba(17, 29, 51, 0.65);
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--navy);
  border-radius: 12px;
  border-left: 4px solid var(--red);
  transition: transform 0.3s, border-color 0.3s;
}

.step:hover {
  transform: translateX(8px);
  border-left-color: var(--gold);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

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

.step p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.how-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* —— Chart —— */
.chart-section {
  background: rgba(10, 22, 40, 0.6);
}

.chart-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 10;
  min-height: 400px;
}

.chart-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* —— Gallery —— */
.gallery {
  background: rgba(17, 29, 51, 0.6);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 3px solid transparent;
  background: var(--navy-card);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.4s;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item::after {
  content: "🐕🇺🇸";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(10, 22, 40, 0.6);
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-item:hover {
  transform: scale(1.05) rotate(-1deg);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* —— Team —— */
.team {
  background: rgba(17, 29, 51, 0.65);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid rgba(255, 215, 0, 0.15);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.35s;
}

.team-card:hover {
  transform: translateY(-10px) rotate(1deg);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(196, 30, 58, 0.3);
}

.team-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid var(--gold);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.team-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* —— Socials —— */
.socials {
  background: rgba(10, 22, 40, 0.55);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--navy-card);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.social-card:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.social-icon {
  font-size: 2.5rem;
}

.social-card span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* —— Join CTA —— */
.join {
  background: rgba(10, 22, 40, 0.5);
  text-align: center;
  padding: 6rem 1.5rem;
}

.join h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.join p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* —— Footer —— */
.footer {
  background: rgba(6, 13, 24, 0.92);
  padding: 3rem 1.5rem 2rem;
  border-top: 4px solid;
  border-image: var(--stripe) 1;
}

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

.footer-ca {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 4px solid var(--gold);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: 700;
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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