@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=League+Spartan:wght@100..900&family=Stack+Sans+Headline:wght@200..700&family=Stack+Sans+Notch:wght@200..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

/* ═══════════════════════════════════════════════════
       TOKENS
    ═══════════════════════════════════════════════════ */
:root {
  --bg: #080810;
  --bg-mid: #0e0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.38);
  --faint: rgba(255, 255, 255, 0.12);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════
       RESET
    ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
       STAR FIELD CANVAS
    ═══════════════════════════════════════════════════ */
#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════
       NOISE OVERLAY — adds film grain texture
    ═══════════════════════════════════════════════════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════
       LAYOUT WRAPPER
    ═══════════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ═══════════════════════════════════════════════════
       NAV
    ═══════════════════════════════════════════════════ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 0 0;
  position: relative;
  z-index: 5;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  
}
.nav-wordmark {
  font-family: 'Google Sans', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  line-height: 1;

}
.nav-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s var(--ease-out);
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════════════ */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.8rem;
  animation: fade-up 0.8s var(--ease-out) both;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--faint);
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fade-up 0.9s 0.1s var(--ease-out) both;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #d4a8ff 0%, #ff9ec4 50%, #ffcf7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 48ch;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  animation: fade-up 1s 0.2s var(--ease-out) both;
}

.hero-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--faint), transparent);
  margin: 0 auto;
  animation: fade-up 1s 0.4s var(--ease-out) both;
}

/* ═══════════════════════════════════════════════════
       SECTION LABEL
    ═══════════════════════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label-text {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.section-label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════
       EXPERIENCE CARDS GRID
    ═══════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  perspective: 1200px;
}

/* Individual card */
.xp-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.3s;
  animation: card-in 0.8s var(--delay, 0.3s) var(--ease-out) both;
  will-change: transform;
}
.xp-card:nth-child(1) {
  --delay: 0.3s;
}
.xp-card:nth-child(2) {
  --delay: 0.45s;
}
.xp-card:nth-child(3) {
  --delay: 0.6s;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Disabled / coming soon */
.xp-card.disabled {
  cursor: default;
  pointer-events: none; /* remove for hover-only effects below */
}
.xp-card.disabled {
  pointer-events: all;
  cursor: default;
}
.xp-card.disabled:hover {
  transform: none !important;
}

/* Glow orb inside card */
.card-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  top: -60px;
  right: -60px;
  background: radial-gradient(circle, var(--card-accent) 0%, transparent 70%);
  opacity: 0.12;
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease-out);
  pointer-events: none;
}
.xp-card:not(.disabled):hover .card-orb {
  opacity: 0.22;
  transform: scale(1.15);
}

/* Card accent colours */
.xp-card[data-accent="birthday"] {
  --card-accent: hsl(42, 80%, 62%);
}
.xp-card[data-accent="mothers"] {
  --card-accent: hsl(340, 72%, 68%);
}
.xp-card[data-accent="fathers"] {
  --card-accent: hsl(210, 65%, 62%);
}

.xp-card:not(.disabled):hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* Card inner layout */
.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.2rem 2rem 2rem;
  gap: 0;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.6rem;
  display: block;
  transition: transform 0.3s var(--ease-spring);
  filter: drop-shadow(0 0 12px var(--card-accent));
}
.xp-card:not(.disabled):hover .card-icon {
  transform: scale(1.12) translateY(-3px);
}

.card-occasion {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--card-accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.card-title em {
  font-style: italic;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
  flex: 1;
}

.card-footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-badge {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
}
.card-badge.live {
  background: rgba(62, 207, 110, 0.12);
  border: 1px solid rgba(62, 207, 110, 0.25);
  color: #3ecf6e;
}
.card-badge.soon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.25s var(--ease-spring);
  background: var(--surface);
}
.xp-card:not(.disabled):hover .card-arrow {
  background: var(--card-accent);
  border-color: var(--card-accent);
  color: #fff;
  transform: translate(2px, -2px);
}

/* Coming soon overlay */
.card-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.6) 0%, transparent 60%);
  border-radius: 24px;
  pointer-events: none;
}
.card-soon-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
       STATS ROW
    ═══════════════════════════════════════════════════ */
.stats-row {
  display: flex;
  gap: 0;
  margin: 5rem 0 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fade-up 0.9s 0.7s var(--ease-out) both;
}
.stat {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════
       HOW IT WORKS
    ═══════════════════════════════════════════════════ */
.how-section {
  margin-top: 6rem;
  animation: fade-up 0.9s 0.5s var(--ease-out) both;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.how-step {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--faint);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.step-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════════════ */
footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Google Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #fff;
}
.footer-link.accent {
  color: hsl(340, 72%, 68%);
}
.footer-link.accent:hover {
  color: hsl(340, 80%, 80%);
}

.footer-copy {
  width: 100%;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════
       ANIMATIONS
    ═══════════════════════════════════════════════════ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .how-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 2.5rem auto 0;
  }
  .xp-card {
    min-height: 320px;
  }
  .stats-row {
    flex-direction: column;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: none;
  }
  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 1.25rem 5rem;
  }
  .hero {
    padding: 5rem 0 3.5rem;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
