/* ============================================================
   THE PRESIDENTIAL SMART SPEAKER — Retro Americana Toy Box
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --color-cream: #f5f0e1;
  --color-red: #b22234;
  --color-blue: #002868;
  --color-gold: #c5a036;
  --color-gold-bright: #d4af37;
  --color-brown: #5c4033;
  --color-white: #ffffff;
  --color-off-white: #faf7ef;

  --font-display: 'Bungee Shade', system-ui;
  --font-headline: 'Bebas Neue', system-ui;
  --font-body: 'Special Elite', system-ui;

  --stripe-height: 8px;
  --section-pad: 80px 24px;
  --max-width: 960px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-brown);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
  /* Paper texture via subtle noise */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(92, 64, 51, 0.03) 50px,
      rgba(92, 64, 51, 0.03) 51px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(92, 64, 51, 0.02) 50px,
      rgba(92, 64, 51, 0.02) 51px
    );
}

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

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

/* ---------- Patriotic Stripe Bar ---------- */
.patriotic-stripe {
  height: var(--stripe-height);
  background: repeating-linear-gradient(
    90deg,
    var(--color-red) 0px,
    var(--color-red) 30px,
    var(--color-white) 30px,
    var(--color-white) 34px,
    var(--color-blue) 34px,
    var(--color-blue) 64px,
    var(--color-white) 64px,
    var(--color-white) 68px
  );
  animation: stripeSlide 0.6s ease-out both;
}

@keyframes stripeSlide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* ---------- Decorative Stars ---------- */
.star {
  position: absolute;
  width: 24px;
  height: 24px;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  opacity: 0.35;
  pointer-events: none;
}

.star--gold { background: var(--color-gold); }
.star--navy { background: var(--color-blue); }

.star--1 { top: 12%; left: 5%; width: 32px; height: 32px; }
.star--2 { top: 8%; right: 8%; width: 20px; height: 20px; }
.star--3 { top: 30%; left: 3%; width: 18px; height: 18px; }
.star--4 { top: 45%; right: 4%; width: 26px; height: 26px; }
.star--5 { top: 65%; left: 7%; width: 22px; height: 22px; }
.star--6 { top: 80%; right: 6%; width: 16px; height: 16px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: var(--section-pad);
  padding-top: 60px;
  padding-bottom: 100px;
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Title */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  color: #244280;
  text-shadow:
    2px 2px 0 rgba(36, 66, 128, 0.2),
    4px 4px 0 rgba(36, 66, 128, 0.1);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* Decorative stars under title */
.hero__stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero__star {
  width: 16px;
  height: 16px;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
}

.hero__star--blue { background: var(--color-blue); }
.hero__star--red { background: var(--color-red); }

/* Tagline */
.hero__tagline {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--color-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Product Image */
.hero__product-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero__product-img {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(0 0 24px rgba(197, 160, 54, 0.5));
  animation: goldenPulse 3s ease-in-out infinite;
}

@keyframes goldenPulse {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(197, 160, 54, 0.5)); }
  50%      { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)); }
}

.hero__product-img:hover {
  filter: drop-shadow(0 0 48px rgba(212, 175, 55, 0.9));
}

/* Selling Points */
.hero__selling-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 56px;
}

.hero__point {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--color-off-white);
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  padding: 8px 18px;
  position: relative;
}

.hero__point::before {
  content: '\2605'; /* star */
  color: var(--color-gold);
  margin-right: 8px;
}

/* ============================================================
   SPEECH BUBBLES
   ============================================================ */
.speech-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.speech-bubble {
  position: relative;
  background: var(--color-off-white);
  border: 3px solid var(--color-red);
  border-radius: 18px;
  padding: 20px 24px;
  max-width: 340px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--color-brown);
  line-height: 1.5;
  box-shadow: 3px 3px 0 rgba(92, 64, 51, 0.15);
  transition: transform 0.2s ease;
}

.speech-bubble--left {
  transform: rotate(-1.5deg);
}

.speech-bubble--right {
  transform: rotate(1.5deg);
}

.speech-bubble--left:hover {
  transform: rotate(1.5deg);
}

.speech-bubble--right:hover {
  transform: rotate(-1.5deg);
}

/* Tail */
.speech-bubble__tail {
  position: absolute;
  bottom: -16px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 16px solid var(--color-red);
}

.speech-bubble--left .speech-bubble__tail {
  left: 32px;
}

.speech-bubble--right .speech-bubble__tail {
  right: 32px;
}

/* Inner white triangle to hollow out the tail */
.speech-bubble__tail::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: -11px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 13px solid var(--color-off-white);
}

/* ============================================================
   BUY NOW SECTION
   ============================================================ */
.buy-now {
  background: var(--color-blue);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal stripe texture */
.buy-now::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.02) 20px,
    rgba(255, 255, 255, 0.02) 21px
  );
  pointer-events: none;
}

.buy-now__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Heading */
.buy-now__heading {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--color-cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Price Callout */
.buy-now__price-callout {
  display: inline-block;
  border: 3px dashed var(--color-gold);
  border-radius: 8px;
  padding: 16px 40px;
  margin-bottom: 20px;
  background: rgba(197, 160, 54, 0.08);
}

.buy-now__price {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--color-gold);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.buy-now__subtitle {
  font-family: var(--font-headline);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: rgba(245, 240, 225, 0.9);
}

/* CTA Button */
.btn {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--cta {
  background: var(--color-red);
  color: var(--color-white);
  padding: 16px 48px;
  border-radius: 6px;
  box-shadow:
    0 4px 0 #7a1724,
    0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn--cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 6px 0 #7a1724,
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(212, 175, 55, 0.4);
}

.btn--cta:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #7a1724,
    0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Badges */
.buy-now__badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-body);
  font-size: 1.15rem;
  padding: 8px 16px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
  transition: transform 0.2s ease;
}

.badge:hover {
  transform: rotate(0deg) translateY(-2px);
}

.badge--satire {
  color: #f5a0a8;
  border: 2px dashed #f5a0a8;
  background: rgba(245, 240, 225, 0.06);
}

.badge--china {
  color: var(--color-gold-bright);
  border: 2px dashed var(--color-gold-bright);
  background: rgba(245, 240, 225, 0.06);
}

/* ============================================================
   MAGA-GPT SECTION
   ============================================================ */
.maga-gpt {
  padding: 32px 24px;
  text-align: center;
  background: var(--color-red);
}

.maga-gpt__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.maga-gpt__heading {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: var(--section-pad);
  text-align: center;
  background: var(--color-cream);
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact__heading {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact__subheading {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-brown);
  margin-bottom: 40px;
}

.contact__form {
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-brown);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-brown);
  padding: 10px 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--color-gold);
  box-shadow: 0 2px 0 var(--color-gold);
}

.form-input::placeholder {
  color: rgba(92, 64, 51, 0.4);
  font-style: italic;
}

.form-input--textarea {
  resize: vertical;
  min-height: 100px;
  border: 2px solid var(--color-brown);
  border-radius: 4px;
  padding: 12px;
}

.form-input--textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold);
}

.btn--submit {
  width: 100%;
  margin-top: 8px;
}

/* Form Status */
.form-status {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.form-status--success {
  color: #2e7d32;
}

.form-status--error {
  color: var(--color-red);
}

/* ============================================================
   reCAPTCHA
   ============================================================ */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-notice {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(92, 64, 51, 0.65);
  text-align: center;
}

.recaptcha-notice a {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-blue);
  color: var(--color-cream);
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.footer__disclaimer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.8);
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(245, 240, 225, 0.65);
}

/* ============================================================
   ANIMATIONS — Page Load
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease-out forwards;
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.anim-pop-left {
  opacity: 0;
  transform: translateX(-40px) rotate(-1.5deg);
  animation: popLeft 0.5s ease-out forwards;
  animation-delay: 1.5s;
}

.anim-pop-right {
  opacity: 0;
  transform: translateX(40px) rotate(1.5deg);
  animation: popRight 0.5s ease-out forwards;
  animation-delay: 1.7s;
}

/* Stagger delays */
.anim-delay-1 { animation-delay: 0.3s; }
.anim-delay-2 { animation-delay: 0.5s; }
.anim-delay-3 { animation-delay: 0.7s; }
.anim-delay-4 { animation-delay: 0.85s; }
.anim-delay-5 { animation-delay: 1.0s; }
.anim-delay-6 { animation-delay: 1.15s; }
.anim-delay-7 { animation-delay: 1.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes popLeft {
  to {
    opacity: 1;
    transform: translateX(0) rotate(-1.5deg);
  }
}

@keyframes popRight {
  to {
    opacity: 1;
    transform: translateX(0) rotate(1.5deg);
  }
}

/* ============================================================
   ANIMATIONS — Scroll Reveals
   ============================================================ */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px 16px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .hero__title {
    font-size: clamp(1.3rem, 7vw, 2.2rem);
  }

  .hero__product-img {
    max-width: 280px;
  }

  .hero__selling-points {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero__point {
    font-size: 0.95rem;
    padding: 6px 14px;
  }

  .speech-bubbles {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .speech-bubble {
    max-width: 100%;
  }

  .btn--cta {
    padding: 14px 32px;
    font-size: 1.1rem;
  }

  .star { display: none; }
}
