:root {
  --red: #B31942;
  --red-hot: #E10600;
  --navy: #0A1F44;
  --navy-deep: #061228;
  --blue: #0A3161;
  --blue-bright: #3C7DD9;
  --white: #F7F4EF;
  --cream: #FFF8F0;
  --gold: #F5C842;
  --stripe: #C8102E;
  --ink: #0B1220;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: "Anton", sans-serif;
  --font-display: "Oswald", sans-serif;
  --font-body: "Barlow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy);
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
}

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

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

/* Ambient stars */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.35;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

/* Flag ribbons */
.flag-ribbons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.07;
}

.flag-ribbons span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 18vh;
  background: linear-gradient(
    90deg,
    transparent,
    var(--stripe) 20%,
    var(--cream) 50%,
    var(--blue-bright) 80%,
    transparent
  );
  transform: rotate(-8deg);
  animation: ribbon-drift 28s linear infinite;
}

.flag-ribbons span:nth-child(1) { top: 8%; animation-duration: 32s; }
.flag-ribbons span:nth-child(2) { top: 28%; animation-duration: 26s; animation-direction: reverse; opacity: 0.7; }
.flag-ribbons span:nth-child(3) { top: 48%; animation-duration: 34s; }
.flag-ribbons span:nth-child(4) { top: 68%; animation-duration: 24s; animation-direction: reverse; }
.flag-ribbons span:nth-child(5) { top: 88%; animation-duration: 30s; }

@keyframes ribbon-drift {
  from { transform: rotate(-8deg) translateX(-4%); }
  to { transform: rotate(-8deg) translateX(4%); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(6, 18, 40, 0.85), transparent);
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(6, 18, 40, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(245, 200, 66, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:not(.nav-buy) {
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:not(.nav-buy):hover {
  opacity: 1;
  color: var(--gold);
}

.nav-buy {
  background: var(--red);
  padding: 0.55rem 1rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s, transform 0.2s;
}

.nav-buy:hover {
  background: var(--red-hot);
  transform: translateY(-1px);
} 

@media (max-width: 640px) {
  .nav-links a:not(.nav-buy) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4.5rem;
  z-index: 1;
  overflow: hidden;
}

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

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.08);
  animation: hero-kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.16) translate(-1.5%, -1%); }
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 18, 40, 0.97) 0%, rgba(6, 18, 40, 0.55) 38%, rgba(10, 49, 97, 0.25) 65%, rgba(6, 18, 40, 0.35) 100%),
    linear-gradient(105deg, rgba(179, 25, 66, 0.28) 0%, transparent 42%, rgba(245, 200, 66, 0.12) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero-logo-wrap {
  opacity: 0;
  transform: translateY(24px) scale(0.92);
}

.hero-logo-wrap.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  animation: float-logo 5s ease-in-out 1s infinite;
}

.hero-logo {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(179, 25, 66, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

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

.brand {
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 14vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 20%, var(--gold) 55%, var(--red-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(10, 31, 68, 0.9));
  opacity: 0;
  transform: translateY(28px);
}

.brand.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s var(--ease-out) 0.12s, transform 0.85s var(--ease-out) 0.12s;
}

.ticker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  letter-spacing: 0.35em;
  color: var(--gold);
  text-indent: 0.35em;
  opacity: 0;
  transform: translateY(20px);
}

.ticker.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out) 0.22s, transform 0.8s var(--ease-out) 0.22s;
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 28rem;
  color: rgba(247, 244, 239, 0.88);
  opacity: 0;
  transform: translateY(20px);
}

.tagline.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out) 0.32s, transform 0.8s var(--ease-out) 0.32s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.cta-row.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out) 0.42s, transform 0.8s var(--ease-out) 0.42s;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-hot), var(--red));
  color: #fff;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(225, 6, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(225, 6, 0, 0.5);
}

.btn-ghost {
  border: 1.5px solid rgba(247, 244, 239, 0.45);
  background: rgba(6, 18, 40, 0.35);
  backdrop-filter: blur(8px);
}

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

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.65;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--red);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-track span:nth-child(even) {
  color: var(--gold);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* About */
.about {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(179, 25, 66, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(60, 125, 217, 0.15), transparent),
    linear-gradient(180deg, var(--navy) 0%, #0c2347 100%);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-visual img {
  width: min(320px, 70vw);
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow:
    0 0 0 8px var(--red),
    0 0 0 14px var(--blue-bright),
    0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  animation: float-logo 6s ease-in-out infinite;
}

.about-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 200, 66, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.about-copy p:last-child {
  font-size: 1.1rem;
  color: rgba(247, 244, 239, 0.82);
  max-width: 34rem;
}

@media (max-width: 800px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-copy p:last-child {
    margin-inline: auto;
  }
}

/* Join */
.join {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 6.5rem) 1.5rem;
  background:
    linear-gradient(180deg, #0c2347 0%, var(--blue) 45%, #081830 100%);
  text-align: center;
}

.join::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(179, 25, 66, 0.04) 40px,
      rgba(179, 25, 66, 0.04) 80px
    );
  pointer-events: none;
}

.join-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.join h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.join-inner > p:not(.eyebrow) {
  color: rgba(247, 244, 239, 0.8);
  margin-bottom: 2.25rem;
  font-size: 1.1rem;
}

.join-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.join-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.join-card-buy {
  background: linear-gradient(160deg, rgba(179, 25, 66, 0.45), rgba(10, 49, 97, 0.35));
  border-color: rgba(245, 200, 66, 0.45);
}

.join-icon {
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  line-height: 1;
}

.join-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-handle {
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .join-links {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem 3rem;
  background: #040d1c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.65);
}

.footer img {
  border-radius: 50%;
  border: 2px solid rgba(245, 200, 66, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-banner {
    transform: none;
  }

  .reveal,
  .hero-logo-wrap,
  .brand,
  .ticker,
  .tagline,
  .cta-row {
    opacity: 1;
    transform: none;
  }
}
