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

:root {
  --amber: #F2A900;
  --amber-dark: #D4920A;
  --amber-light: #FFF3D6;
  --amber-faint: rgba(242, 169, 0, 0.08);
  --bg: #FFFCF5;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --border: #E8E0D0;
  --dark: #1A1A2E;
  --success: #22C55E;
  --radius: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
}

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

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

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: var(--dark);
  text-align: center;
}

.section-label {
  display: block;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 540px;
  margin: 0 auto 56px;
}

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

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 252, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--amber-dark);
}

.nav-cta {
  background: var(--amber);
  color: var(--text) !important;
  font-weight: 700 !important;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--amber-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  padding: clamp(120px, 16vw, 160px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex-shrink: 0;
  position: relative;
}

.hero-logo {
  width: clamp(200px, 28vw, 340px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(242, 169, 0, 0.2));
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-heading {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* ===== Animated Drink Text ===== */
.drink-cycle {
  position: relative;
  display: inline-block;
  color: var(--amber-dark);
  min-width: 200px;
}

.drink-cycle span {
  display: inline-block;
  position: absolute;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  animation: drinkFade 12s infinite;
}

.drink-cycle span:nth-child(1) { animation-delay: 0s; }
.drink-cycle span:nth-child(2) { animation-delay: 2s; }
.drink-cycle span:nth-child(3) { animation-delay: 4s; }
.drink-cycle span:nth-child(4) { animation-delay: 6s; }
.drink-cycle span:nth-child(5) { animation-delay: 8s; }
.drink-cycle span:nth-child(6) { animation-delay: 10s; }

@keyframes drinkFade {
  0%   { opacity: 0; transform: translateY(10px); }
  2%   { opacity: 1; transform: translateY(0); }
  14%  { opacity: 1; transform: translateY(0); }
  17%  { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; }
}

.drink-cycle::after {
  content: 'Guinness';
  visibility: hidden;
  font-weight: inherit;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badge-row a {
  display: inline-block;
  transition: transform 0.2s;
}

.badge-row a:hover {
  transform: translateY(-2px);
}

.store-badge {
  height: 48px;
  border-radius: 10px;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--dark);
  padding: 28px 0;
}

.stats-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-pill-value {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--amber);
}

.stat-pill-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(242, 169, 0, 0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--amber-faint);
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(242, 169, 0, 0.3);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Connector dashes */
.steps-grid .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0, var(--amber) 6px,
    transparent 6px, transparent 12px
  );
  opacity: 0.5;
}

/* ===== Community ===== */
.community-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}

.community-text {
  flex: 1;
}

.community-visual {
  flex-shrink: 0;
}

.community-logo {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(242, 169, 0, 0.15));
  animation: heroFloat 5s ease-in-out infinite;
  animation-delay: -2s;
}

.community-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.cheers-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cheers-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cheers-points {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--amber-dark);
  background: var(--amber-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  min-width: 48px;
  text-align: center;
}

.cheers-action {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ===== Download CTA ===== */
.section-dark .badge-row {
  justify-content: center;
}

.download-icon {
  border-radius: 14px;
  margin: 0 auto 24px;
  box-shadow: 0 6px 24px rgba(242, 169, 0, 0.3);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

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

.footer-copy {
  line-height: 1.8;
}

.footer-copy a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-logo {
    width: 180px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .badge-row {
    justify-content: center;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid .step::after {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .community-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .community-logo {
    width: 160px;
  }

  .community-body {
    margin-left: auto;
    margin-right: auto;
  }

  .section-label,
  .section-title {
    text-align: center !important;
  }

  .cheers-breakdown {
    align-items: center;
  }

  .stat-pill {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-logo {
    width: 240px;
  }
}

/* ===== Legal pages ===== */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  color: #4B5563;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
