@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --navy:         #1A1A4E;
  --navy-mid:     #2D2D6B;
  --cobalt:       #0066FF;
  --cobalt-dark:   #0047CC;
  --sky:           #4D9FFF;
  --sky-soft:      #EBF3FF;
  --gold:          #F5A623;
  --gold-soft:     #FFF4E6;
  --bg:            #FFFBF5;
  --bg-alt:        #FFF5EB;
  --bg-blue-tint:  #EBF3FF;
  --fg:            #1A1A2E;
  --fg-muted:      #4A4A6A;
  --border:        #E8E4F0;
  --border-sky:    #C8DFFF;
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAV ========== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 0 0 20px 20px;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-cta {
  background: var(--cobalt) !important;
  color: white !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--cobalt-dark) !important;
  transform: translateY(-1px);
}

/* ========== HERO ========== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text {
  /* text column — existing hero content */
}

.hero-visual {
  position: relative;
  width: 420px;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-soft) 0%, var(--bg-blue-tint) 50%, rgba(245,166,35,0.06) 100%);
  box-shadow:
    0 0 0 1px var(--border-sky),
    0 24px 60px rgba(0,102,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.quest-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--sky-soft);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  width: fit-content;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
  max-width: 780px;
}

.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gold);
  opacity: 0.35;
  border-radius: 3px;
}

.hero-lede {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-detail {
  font-size: 0.95rem;
  color: var(--fg-muted);
  opacity: 0.7;
  font-style: italic;
}

/* ========== HERO ACTIONS ========== */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-btn-primary {
  display: inline-block;
  background: var(--cobalt);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s;
}
.hero-btn-primary:hover { background: var(--cobalt-dark); }
.hero-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.15s;
}
.hero-btn-secondary:hover { border-color: var(--fg-muted); }

/* ========== SECTION SHARED ========== */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--fg);
}

.section-description {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ========== QUEST CARDS ========== */
.quests-section {
  background: var(--sky-soft);
}

.quest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.quest-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-sky);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.12);
  border-color: var(--sky);
}

.quest-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.quest-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
}

.quest-tag.time {
  background: var(--sky-soft);
  color: var(--navy);
}

.quest-tag.skill {
  background: var(--gold-soft);
  color: #8A5500;
}

.quest-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--fg);
  line-height: 1.3;
}

.quest-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.quest-who {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--cobalt);
  font-weight: 600;
}

/* ========== HOW IT WORKS ========== */
.how-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--bg);
}

.how-section .section-label {
  color: var(--sky);
}

.how-section .section-heading {
  color: var(--bg);
}

.how-section .section-description {
  color: rgba(255, 251, 245, 0.65);
}

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

.how-step {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(77, 159, 255, 0.15);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.how-step:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 159, 255, 0.35);
}

.how-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--sky);
  margin-bottom: 14px;
}

.how-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg);
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.9rem;
  color: rgba(255, 251, 245, 0.55);
  line-height: 1.65;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(180deg, var(--sky-soft) 0%, white 100%);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-preview {
  background: white;
  border-radius: 16px;
  padding: 36px;
  border: 1.5px solid var(--border-sky);
  box-shadow: 0 8px 40px rgba(77, 159, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(77, 159, 255, 0.12);
}

.newsletter-preview .preview-header {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}

.newsletter-preview h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--fg);
}

.newsletter-preview p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.newsletter-text .section-label {
  color: var(--navy);
}

.newsletter-features {
  list-style: none;
  margin-top: 20px;
}

.newsletter-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
  padding-left: 24px;
  position: relative;
}

.newsletter-features li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: var(--sky);
  font-weight: 700;
}

/* ========== NEWSLETTER SIGNUP INLINE ========== */
.newsletter-signup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border-sky);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.15);
}
.newsletter-btn {
  background: var(--cobalt);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.newsletter-btn:hover {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
}
.newsletter-signup-msg {
  width: 100%;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ========== CLOSING ========== */
.closing-section {
  text-align: center;
  padding: 100px 24px;
}

.closing-section .closing-inner {
  max-width: 650px;
  margin: 0 auto;
}

.closing-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--fg);
}

.closing-section p {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ========== FOOTER ========== */
footer {
  background: var(--navy);
  padding: 40px 24px;
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

footer a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    min-height: auto;
    padding: 60px 20px 40px;
  }

  section {
    padding: 60px 20px;
  }

  .quest-grid {
    gap: 16px;
  }

  .quest-card {
    padding: 24px;
  }
}

@media (min-width: 640px) {
  .quest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    width: 100%;
    height: 320px;
    order: -1; /* canvas above text on mobile/tablet */
  }

  .hero {
    max-width: 900px;
  }
}