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

:root {
  --white: #ffffff;
  --off-white: #f7f9fc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-pale: #eff6ff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ─── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── HERO ─── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-hat-img {
  width: 260px;
  height: auto;
  margin-bottom: 48px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(-30px);
  animation: hat-drop 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes hat-drop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── MARQUEE ─── */

.marquee-section {
  overflow: hidden;
  padding: 40px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.marquee-track img {
  height: 200px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

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

#hero h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.7s ease 0.5s forwards;
}

#hero h1 span {
  color: var(--blue);
  display: block;
  font-size: 1.1em;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 420px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s ease 0.7s forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ca {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  opacity: 0;
  animation: fade-up 0.7s ease 1.1s forwards;
  letter-spacing: 0.02em;
}

.ca-address {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: var(--text);
  user-select: all;
  cursor: pointer;
  background: var(--off-white);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s ease 0.9s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-x {
  padding: 14px 16px;
  background: #000000;
  color: #ffffff;
}

.btn-x:hover {
  background: #1a1a1a;
}

.btn-x svg {
  display: block;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--off-white);
  border-color: var(--text-light);
  transform: translateY(-1px);
}

/* ─── SECTIONS ─── */

section, footer {
  font-family: 'Baloo 2', cursive;
}

section {
  padding: 100px 0;
}

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

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--blue);
}

/* ─── ABOUT ─── */

.about-header {
  margin-bottom: 56px;
}

.about-header h2 {
  margin-bottom: 0;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  position: relative;
  padding: 0;
}

.about-card-line {
  width: 40px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 20px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card.visible .about-card-line {
  transform: scaleX(1);
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--blue);
}

.about-card p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.65;
}

/* ─── TIMELINE ─── */

.timeline {
  position: relative;
  padding-left: 40px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -47px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--off-white);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.timeline-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 580px;
}

.timeline-body em {
  font-style: italic;
}

.timeline-body strong {
  color: var(--text);
}

/* ─── CARDS ─── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1);
}

.card-accent {
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card.visible .card-accent {
  transform: scaleX(1);
}

.card-content {
  padding: 32px 28px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ─── HOW TO BUY ─── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
}

.step-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 600px;
}

.step-body a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.step-body a:hover {
  text-decoration: underline;
}

/* ─── FOOTER ─── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── ANIMATIONS ─── */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
  .hero-hat-img {
    width: 180px;
  }

  .marquee-track img {
    height: 140px;
  }

  .about-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

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