/* ============================================
   Gosling — gosling.app
   Warm, organic, refined.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --eggshell: #FAF7F2;
  --surface: #FFFFFF;
  --secondary-bg: #F5F1EB;
  --charcoal: #2D2A26;
  --warm-gray: #7A7468;
  --muted: #A8A29E;
  --gold: #E8A317;
  --gold-light: #F5C84C;
  --gold-hover: #D4920F;
  --sage: #7FA37E;
  --sage-light: #D4E6D3;
  --sage-dark: #5E8A5D;
  --sand: #E8E2D9;
  --light-sand: #F0EBE3;

  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--eggshell);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- NAV ---- */

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

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--charcoal);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--warm-gray);
  transition: color 0.2s;
}

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

/* ---- HERO ---- */

.hero {
  text-align: center;
  padding: 40px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-mascot {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.hero-mascot img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

.mascot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  opacity: 0.6;
  z-index: 0;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--warm-gray);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ---- APP STORE BADGE ---- */

.app-store-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-link:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.app-store-link img {
  height: 52px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* ---- FEATURES ---- */

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 42, 38, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon.sage {
  background: var(--sage-light);
  color: var(--sage-dark);
}

.feature-icon.gold {
  background: #FDF3DC;
  color: var(--gold);
}

.feature-icon.sand {
  background: var(--light-sand);
  color: var(--warm-gray);
}

.feature-icon.blue {
  background: #E0EDF2;
  color: #5E7C8A;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.feature-card p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.55;
}

/* ---- CTA SECTION ---- */

.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--secondary-bg);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.cta-mascot {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
  animation-delay: -2s;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--charcoal);
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-sub {
  color: var(--warm-gray);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ---- FOOTER ---- */

.footer {
  padding: 48px 24px;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-gray);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---- LEGAL PAGES ---- */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.legal .legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.legal p {
  font-size: 16px;
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal ul {
  margin: 0 0 16px 20px;
  color: var(--warm-gray);
  font-size: 16px;
  line-height: 1.7;
}

.legal li {
  margin-bottom: 6px;
}

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

.legal a:hover {
  color: var(--charcoal);
}

.legal strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ---- FADE-IN ANIMATIONS ---- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


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

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 60px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero {
    padding: 20px 24px 40px;
  }

  .hero-mascot img {
    width: 180px;
    height: 180px;
  }

  .mascot-glow {
    width: 220px;
    height: 220px;
  }

  .nav {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .hero-mascot img {
    width: 150px;
    height: 150px;
  }

  .mascot-glow {
    width: 190px;
    height: 190px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .cta-section h2 {
    font-size: 22px;
  }
}
