@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');

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

:root {
  --primary: #1A7A8A;
  --primary-light: #2B9EAF;
  --primary-dark: #125C69;
  --accent: #F4A261;
  --accent-dark: #E07A3C;
  --bg: #F5F8FA;
  --surface: #ffffff;
  --text: #1A2B3C;
  --text-secondary: #5A7184;
  --text-hint: #9DB0BE;
  --success: #2ECC71;
  --joggy-pink: #FF6F91;
  --joggy-blue: #3B82F6;
  --divider: #E8EEF2;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */

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

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

/* ─── Navigation ─── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

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

nav .logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav .logo .brain-icon {
  font-size: 1.5rem;
}

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

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

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

/* ─── Hero ─── */

.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(175deg, #e8f6f8 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(26, 122, 138, 0.04);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(244, 162, 97, 0.05);
}

.joggy-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.joggy-hero img {
  filter: drop-shadow(0 8px 24px rgba(255, 111, 145, 0.25));
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 122, 138, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 122, 138, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(26, 122, 138, 0.25);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(26, 122, 138, 0.04);
}

/* ─── Features grid ─── */

.features {
  padding: 80px 24px;
}

.features .section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 48px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--divider);
  transition: all 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: rgba(26, 122, 138, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

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

/* ─── Categories strip ─── */

.categories {
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.categories h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.categories .sub {
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 40px;
  font-weight: 600;
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.cat-pill {
  width: calc(33.333% - 12px);
  min-width: 140px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}

.cat-pill:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.cat-pill .emoji {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.cat-pill .name {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.95;
}

/* ─── How it works ─── */

.how-it-works {
  padding: 80px 24px;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── CTA banner ─── */

.cta-banner {
  padding: 60px 24px;
  text-align: center;
  background: var(--bg);
}

.cta-card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fff8f0, #f0fafc);
  border-radius: 20px;
  padding: 48px 36px;
  border: 1px solid var(--divider);
}

.cta-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.cta-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 600;
}

/* ─── Footer ─── */

footer {
  padding: 40px 24px;
  border-top: 1px solid var(--divider);
  background: var(--surface);
}

footer .inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

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

footer .footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

footer .copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-hint);
  margin-top: 16px;
}

/* ─── Legal pages ─── */

.legal-page {
  padding: 120px 24px 80px;
}

.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 32px;
}

.legal-page .back:hover { text-decoration: underline; }

.legal-page h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.legal-page .effective {
  font-size: 0.85rem;
  color: var(--text-hint);
  margin-bottom: 36px;
  font-weight: 600;
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

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

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

.legal-page a { color: var(--primary); }

.legal-page strong { color: var(--text); }

/* ─── Responsive ─── */

@media (max-width: 600px) {
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1.05rem; }
  .features, .how-it-works { padding: 60px 20px; }
  .features h2, .how-it-works h2 { font-size: 1.6rem; }
  .categories h2 { font-size: 1.5rem; }
  .cat-pill { width: calc(50% - 10px); min-width: 120px; }
  nav .nav-links { gap: 16px; }
  nav .nav-links a { font-size: 0.8rem; }
  footer .inner { justify-content: center; text-align: center; }
}
