/* ===== Variables ===== */
:root {
  --patriot-red: #B22234;
  --patriot-blue: #0A3161;
  --patriot-navy: #041E42;
  --patriot-gold: #FFD700;
  --patriot-cream: #F5F0E1;
  --pistachio: #93C572;
  --pistachio-light: #B8E986;
  --pistachio-dark: #5A8F3C;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-80: rgba(255, 255, 255, 0.8);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-patriotic: 'Russo One', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 80rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--patriot-navy);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--patriot-gold); color: var(--patriot-navy); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }

/* ===== Utilities ===== */
.text-gradient-gold {
  background: linear-gradient(90deg, var(--patriot-gold), #fef08a, var(--patriot-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.text-gradient-patriot {
  background: linear-gradient(90deg, var(--patriot-red), #fff, var(--patriot-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-10);
  border-radius: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.section-label {
  color: var(--patriot-gold);
  font-family: var(--font-patriotic);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.star-decoration {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.stripes-bg {
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(178, 34, 52, 0.03) 10px, rgba(178, 34, 52, 0.03) 20px);
}

.stars-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.15'%3E%3Cpath d='M30 0l3.5 10.8H44.5L34 17.5l3.5 10.8L30 21.6l-7.5 6.7L26 17.5 15.5 10.8h11L30 0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-patriotic);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--patriot-navy);
  background: linear-gradient(90deg, var(--patriot-red), var(--patriot-gold), var(--patriot-red));
  background-size: 200% 100%;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: btnShimmer 3s ease infinite;
}

.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5); }
.btn-primary:active { transform: scale(0.95); }
.btn-primary.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-patriotic);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--patriot-gold);
  border: 2px solid rgba(255, 215, 0, 0.6);
  background: rgba(10, 49, 97, 0.3);
  backdrop-filter: blur(4px);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.btn-secondary:hover { transform: scale(1.05); background: rgba(255, 215, 0, 0.2); border-color: var(--patriot-gold); }
.btn-secondary:active { transform: scale(0.95); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-60px); }
.reveal-left.revealed { transform: translateX(0); }
.reveal-right { transform: translateX(60px); }
.reveal-right.revealed { transform: translateX(0); }
.reveal-scale { transform: scale(0.85); }
.reveal-scale.revealed { transform: scale(1); }

/* ===== Cursor glow ===== */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, rgba(178,34,52,0.04) 40%, transparent 70%);
  filter: blur(48px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

#cursor-glow.visible { opacity: 1; }

/* ===== Particles ===== */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  animation: particleFloat var(--dur) var(--delay) ease-in-out infinite;
}

.particle.star { background: rgba(255, 215, 0, 0.4); }
.particle.dot { border-radius: 50%; background: rgba(178, 34, 52, 0.3); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  animation: slideDown 0.8s ease forwards;
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: transform 0.5s;
}

.navbar-brand:hover img { transform: scale(1.1) rotate(5deg); }

.navbar-brand-text { display: none; }
.navbar-brand-text .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.navbar-brand-text .ticker {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 215, 0, 0.7);
  font-family: var(--font-patriotic);
  letter-spacing: 0.15em;
}

.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-60);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--patriot-gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--patriot-gold); }
.nav-links a:hover::after { width: 100%; }

.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-x {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.875rem;
  transition: border-color 0.3s, color 0.3s;
}
.btn-x:hover { border-color: rgba(255,215,0,0.5); color: var(--patriot-gold); }
.btn-x svg { width: 1rem; height: 1rem; }

@media (min-width: 640px) {
  .navbar-brand-text { display: block; }
  .btn-x { display: flex; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,30,66,0.3) 0%, rgba(4,30,66,0.6) 40%, rgba(4,30,66,0.95) 100%);
}

.hero .stripes-bg, .hero .stars-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero .stripes-bg { opacity: 0.5; }

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  filter: blur(120px);
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}

.hero-mascot {
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 10;
  display: none;
  animation: floatMascot 5s ease-in-out infinite;
}

.hero-mascot img {
  width: 16rem;
  filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 1rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  animation: fadeInScale 0.6s ease 0.2s both;
}

.live-dot {
  position: relative;
  width: 0.75rem; height: 0.75rem;
}

.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pistachio-light);
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.live-dot::after {
  content: '';
  position: relative;
  display: block;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--pistachio);
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--patriot-gold);
}

.glitch-text {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.5));
  animation: fadeInUp 0.8s ease 0.4s both;
}

.glitch-text .main { position: relative; z-index: 10; animation: textGlitch 4s infinite; }
.glitch-text .ghost-red {
  position: absolute; top: 0; left: 0;
  color: var(--patriot-red);
  opacity: 0.3;
  clip-path: inset(0 0 50% 0);
  animation: glitch 4s infinite;
}
.glitch-text .ghost-blue {
  position: absolute; top: 0; left: 0;
  color: var(--patriot-blue);
  opacity: 0.3;
  clip-path: inset(50% 0 0 0);
  animation: glitch 4s infinite reverse;
}

.hero-ticker {
  font-family: var(--font-patriotic);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--white-80);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-desc .pistachio { color: var(--pistachio-light); font-weight: 600; }
.hero-desc .maga { color: var(--patriot-red); font-weight: 700; }

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 1s both;
}

.hero-cta svg { width: 1.25rem; height: 1.25rem; }

.hero-ca {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  animation: fadeIn 0.8s ease 1.2s both;
}

.hero-ca .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-50);
}

.hero-ca code {
  font-size: 0.875rem;
  color: var(--patriot-gold);
  font-family: ui-monospace, monospace;
}

.hero-ca button {
  color: var(--white-40);
  transition: color 0.3s;
}
.hero-ca button:hover { color: var(--patriot-gold); }
.hero-ca button svg { width: 1rem; height: 1rem; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-40);
  animation: fadeIn 0.8s ease 1.5s both;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-indicator svg {
  width: 1.25rem; height: 1.25rem;
  animation: bounceDown 2s ease-in-out infinite;
}

.hero-flag-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--patriot-red), #fff, var(--patriot-blue));
  z-index: 20;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
}

@media (min-width: 1024px) {
  .hero-content { text-align: left; padding-left: 2rem; }
  .hero-desc { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-mascot { display: block; }
}

@media (min-width: 1280px) {
  .hero-mascot img { width: 20rem; }
}

/* ===== About ===== */
.about {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--patriot-navy), rgba(10,49,97,0.2), var(--patriot-navy));
}

.about .stripes-bg { position: absolute; inset: 0; opacity: 0.3; }

.about-header { text-align: center; margin-bottom: 4rem; position: relative; }
.about-header p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--white-60);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(90deg, rgba(178,34,52,0.2), rgba(255,215,0,0.2), rgba(10,49,97,0.2));
  border-radius: 1.5rem;
  filter: blur(32px);
}

.about-image-wrap > img:first-of-type {
  position: relative;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--white-10);
  transition: transform 0.3s;
}

.about-image-wrap:hover > img:first-of-type { transform: scale(1.02); }

.about-logo-float {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 8rem;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.5));
  animation: wiggle 4s ease-in-out infinite;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.4);
}

.feature-card .icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.feature-card:hover .icon { transform: scale(1.1); }

.feature-card h3 {
  font-family: var(--font-patriotic);
  font-size: 1.125rem;
  color: var(--patriot-gold);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--white-50);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-logo-float { width: 10rem; }
}

/* ===== Tokenomics ===== */
.tokenomics {
  position: relative;
  padding: 8rem 1rem;
}

.tokenomics-bg { position: absolute; inset: 0; background: var(--patriot-navy); }

.tokenomics-divider {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.5), transparent);
}

.deco-star {
  position: absolute;
  width: 0.75rem; height: 0.75rem;
  background: rgba(255, 215, 0, 0.3);
  animation: starTwinkle 3s ease-in-out infinite;
}

.stats-grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card {
  padding: 2rem;
  text-align: center;
  border-color: rgba(255, 215, 0, 0.1);
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 215, 0, 0.4);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.stat-value .suffix { font-size: 1.5rem; }

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-50);
}

.distribution-card {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
}

@media (min-width: 768px) {
  .distribution-card { padding: 3rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.distribution-card h3 {
  font-family: var(--font-patriotic);
  font-size: 1.5rem;
  text-align: center;
  color: var(--patriot-gold);
  margin-bottom: 2rem;
}

.bar-row { margin-bottom: 1.5rem; }
.bar-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.bar-header span:last-child { color: var(--patriot-gold); }

.bar-track {
  height: 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0;
  transition: width 1.2s ease;
}

.bar-fill.pistachio { background: linear-gradient(90deg, var(--pistachio), var(--pistachio-light)); }
.bar-fill.gold { background: linear-gradient(90deg, var(--patriot-gold), #fde047); }

.distribution-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--white-40);
}

/* ===== Roadmap ===== */
.roadmap {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
}

.roadmap-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--patriot-navy), rgba(10,49,97,0.1), var(--patriot-navy));
}

.roadmap .stars-pattern { position: absolute; inset: 0; opacity: 0.2; }

.roadmap-header { text-align: center; margin-bottom: 5rem; position: relative; }

.timeline { position: relative; }

.timeline-line {
  display: none;
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,215,0,0.5), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.timeline-card {
  padding: 2rem;
  transition: transform 0.3s;
}

.timeline-card:hover { transform: scale(1.02); }
.timeline-card.active { border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1); }

.badge-live {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(147, 197, 114, 0.2);
  color: var(--pistachio-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.timeline-card .phase {
  color: var(--patriot-gold);
  font-family: var(--font-patriotic);
  font-size: 0.875rem;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin: 0.25rem 0 1rem;
}

.timeline-card li {
  color: var(--white-50);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-card li .star { color: var(--patriot-gold); }

.timeline-dot {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--patriot-navy);
  border: 2px solid var(--patriot-gold);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.timeline-dot-inner {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.5);
}

.timeline-dot-inner.active {
  background: var(--pistachio);
  animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .timeline-line, .timeline-dot { display: flex; }

  .timeline-item {
    flex-direction: row;
    align-items: center;
    margin-bottom: 3rem;
  }

  .timeline-item:nth-child(even) { flex-direction: row-reverse; }

  .timeline-content { width: 50%; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: right; padding-right: 3rem; }
  .timeline-item:nth-child(even) .timeline-content { text-align: left; padding-left: 3rem; }

  .timeline-item:nth-child(odd) .timeline-card li { flex-direction: row-reverse; }
  .timeline-spacer { width: 50%; }
}

/* ===== Community ===== */
.community {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
  text-align: center;
}

.community-bg { position: absolute; inset: 0; background: var(--patriot-navy); }

.flag-stripes {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  display: flex;
  flex-direction: column;
}

.flag-stripes div { flex: 1; }
.flag-stripes div:nth-child(odd) { background: var(--patriot-red); }

.community-logo {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(147, 197, 114, 0.5));
  animation: floatMascot 4s ease-in-out infinite;
}

.community-desc {
  font-size: 1.125rem;
  color: var(--white-60);
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.community-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.community-x {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 20rem;
  justify-content: center;
}

.community-x:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.community-x svg { width: 2rem; height: 2rem; transition: transform 0.3s; }
.community-x:hover svg { transform: scale(1.1); }
.community-x .title { font-family: var(--font-patriotic); font-size: 1.25rem; text-align: left; }
.community-x .handle { font-size: 0.875rem; color: var(--white-50); }

.marquee-wrap {
  margin-top: 4rem;
  overflow: hidden;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.05em;
  padding-right: 2rem;
}

@media (min-width: 640px) {
  .community-cta { flex-direction: row; justify-content: center; }
  .community-x, .community-cta .btn-primary { width: auto; }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  border-top: 1px solid var(--white-10);
  background: rgba(4, 30, 66, 0.8);
  backdrop-filter: blur(4px);
}

.footer-flag {
  height: 0.25rem;
  background: linear-gradient(90deg, var(--patriot-red), #fff, var(--patriot-blue));
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img { width: 4rem; height: 4rem; object-fit: contain; }
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.footer-brand .copy {
  font-size: 0.75rem;
  color: var(--white-40);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--white-50);
  transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover { color: var(--patriot-gold); transform: scale(1.2); }
.footer-links svg { width: 1.5rem; height: 1.5rem; }
.footer-links .pump-link {
  font-family: var(--font-patriotic);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--patriot-navy); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--patriot-red), var(--patriot-gold));
  border-radius: 4px;
}

/* ===== Keyframes ===== */
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes textGlitch {
  0%, 95%, 100% { text-shadow: none; }
  96% { text-shadow: 2px 0 var(--patriot-red), -2px 0 var(--patriot-blue); }
  97% { text-shadow: -2px 0 var(--patriot-red), 2px 0 var(--patriot-blue); }
}

@keyframes slideDown {
  from { transform: translateY(-100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

@keyframes glowPulse {
  0%, 100% { filter: brightness(1); opacity: 0.8; }
  50% { filter: brightness(1.3); opacity: 1; }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

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

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translate(var(--dx), -100px) rotate(360deg); opacity: 0.6; }
  90% { opacity: 0; }
}

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