/* ─── Foo‑D Campaign-1 ─── */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Pacifico&display=swap');

/* ── Design tokens (ported from landing) ── */
:root {
  --font-primary: 'Quicksand', sans-serif;
  --font-accent: 'Pacifico', cursive;

  --mango-100: #FFF8E1;
  --mango-500: #FFC107;
  --mango-600: #FFB300;
  --mango-900: #FF6F00;
  --coral-500: #FF7E67;
  --coral-900: #D32F2F;
  --leaf-500: #2E7D32;
  --neutral-50: #FFFEF7;
  --neutral-100: #F5F5F5;
  --neutral-200: #E0E0E0;
  --neutral-500: #9E9E9E;
  --neutral-800: #424242;
  --neutral-900: #212121;

  --branded-gradient: radial-gradient(circle at 25% 25%,
      #FFC107 0%,
      #FFB300 40%,
      #FF7E67 70%,
      #D32F2F 100%);
  --branded-gradient-linear: linear-gradient(135deg,
      #FF6F00 0%,
      #E65100 40%,
      #D84315 70%,
      #B71C1C 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: #1a1510;
  color: var(--neutral-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ── Locale toggle ── */
.locale-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.locale-btn {
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.locale-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.locale-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.fade-in-up {
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

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

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.2) brightness(0.45);
  transform: scale(1.05);
}

/* Warm gradient overlay blending into the photo */
.bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(ellipse at 50% 30%,
      rgba(255, 193, 7, 0.08) 0%,
      transparent 70%);
}

/* ── Main content ── */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ── Layout ── */
.layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.layout-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  order: 1;
}

.layout-video {
  width: 100%;
  display: flex;
  justify-content: center;
  order: 2;
}

.signup-section {
  order: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease 0.3s;
}

.signup-section.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Hero ── */
.hero-section {
  text-align: center;
  margin-bottom: 8px;
  max-width: 480px;
  width: 100%;
}

.hero-logo {
  display: block;
  width: clamp(160px, 35vw, 200px);
  margin: 0 auto;
  line-height: 0;
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.04);
}

.hero-logo svg {
  width: 100%;
  height: auto;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 12px 14px 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  text-align: right;
}

/* ── Narrative Animation ── */
.narrative-container {
  position: relative;
  height: 160px;
  width: 100%;
  padding-top: 12px;
}

.narrative-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s;
  visibility: hidden;
  pointer-events: none;
}

.narrative-block.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.narrative-block.exit {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 1.5s ease-out, transform 1.5s ease-out, visibility 1.5s;
}

.narrative-pt1 {
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-primary);
  line-height: 1.4;
  margin: 0;
}

.narrative-pt1::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

.narrative-pt1.done-typing::after {
  display: none;
}

.narrative-pt2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  color: #fff;
  font-family: var(--font-primary);
  line-height: 1.4;
  margin: 0;
}

.narrative-pt2::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

.narrative-pt2.done-typing::after {
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.narrative-headline {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.narrative-subhead {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 8px 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Video card ── */
.layout-video {
  display: none;
}

.layout.show-video .layout-video {
  display: flex;
  justify-content: center;
  animation: fadeUpIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.video-card {
  width: min(85vw, 42vh, 360px);
  height: auto;
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 20px;
  margin: 0 auto 16px;
}

/* Branded glow behind the card */
.video-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 20px;
  background: var(--branded-gradient-linear);
  opacity: 0.25;
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.video-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.15),
    0 20px 50px -12px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Signup section ── */
.signup-section {
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin-bottom: 16px;
  padding-top: 0;
}

.signup-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.signup-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 18px;
}

.signup-form {
  display: flex;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.signup-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
}

.signup-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.signup-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border: none;
  background: var(--branded-gradient-linear);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.25);
}

.signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
  background: linear-gradient(135deg, #FF7B00 0%, #FF9E00 100%);
}

.signup-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signup-success {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mango-500);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .main {
    padding: 24px 32px 32px;
  }

  .layout {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "content video"
      "signup  video";
    gap: 24px 0;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    transition: gap 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .layout.show-video {
    gap: 16px 40px;
  }

  .layout-content {
    grid-area: content;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    width: clamp(280px, 45vw, 480px);
  }

  .layout-video {
    grid-area: video;
    display: flex;
    justify-content: center;
    animation: none;
    width: 0;
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    align-self: center;
    overflow: visible;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
      transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .layout.show-video .layout-video {
    width: auto;
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  .video-card {
    width: min(40vw, 45vh, 380px);
    height: auto;
    flex-shrink: 0;
    border-radius: 24px;
    margin-bottom: 0;
  }

  .signup-section {
    grid-area: signup;
    text-align: center;
    margin: 0 auto;
    padding-top: 0;
    align-self: end;
    width: clamp(280px, 45vw, 480px);
  }

  .hero-section {
    text-align: center;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .narrative-container {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .narrative-block {
    height: auto;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-logo {
    margin: 0 auto 4px;
    width: 160px;
  }

  .hero-tagline {
    margin: 0 0 8px 0;
    text-align: center;
  }

  .narrative-headline,
  .narrative-subhead {
    margin: 0 0 16px;
  }



  .video-card::before {
    border-radius: 24px;
  }

  .video-inner {
    border-radius: 24px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ── Focus visible ── */
*:focus-visible {
  outline: 2px solid var(--mango-600);
  outline-offset: 4px;
}

/* ── Accessibility: prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}