/* =============================================
   Proteus AI — style.css
   Brand: #0D1B2A (navy) | #00C9B1 (teal) | #fff
   Font: Inter (Google Fonts)
   ============================================= */

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

:root {
  --navy: #0D1B2A;
  --navy-mid: #112233;
  --navy-light: #1a2e44;
  --teal: #00C9B1;
  --teal-dark: #00a896;
  --teal-glow: rgba(0, 201, 177, 0.15);
  --white: #ffffff;
  --off-white: #e8f0f7;
  --muted: #8aa0b8;
  --card-bg: #0f2236;
  --border: rgba(0, 201, 177, 0.25);
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--white);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-logo span em {
  color: var(--teal);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--teal);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
}

.nav-cta:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 201, 177, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 177, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 201, 177, 0.08) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-glow);
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--off-white);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 201, 177, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.hero-scroll {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
section {
  padding: 6rem 2rem;
}

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

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  color: var(--off-white);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content .highlight {
  color: var(--teal);
  font-weight: 600;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-item:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.stat-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--navy);
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 201, 177, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-price {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.service-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.service-cta:hover {
  gap: 0.7rem;
}

/* ============================================
   BOOKS
   ============================================ */
.books {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.books-header {
  text-align: center;
  margin-bottom: 3rem;
}

.books-header p {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.book-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.book-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 201, 177, 0.12);
}

.book-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.book-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.book-price {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
}

.book-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 201, 177, 0.1);
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.book-buy:hover {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.gumroad-banner {
  background: linear-gradient(135deg, var(--teal-glow), rgba(0, 168, 150, 0.1));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.gumroad-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gumroad-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

.gumroad-banner .btn-primary {
  flex-shrink: 0;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--navy);
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact .section-heading {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.contact-body {
  color: var(--off-white);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-btn-wrap {
  margin-bottom: 2.5rem;
}

.contact-btn-wrap .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.social-link:hover {
  color: var(--teal);
  border-color: var(--border);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav {
    position: sticky;
  }

  .hero-inner {
    padding-top: 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gumroad-banner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 1.25rem;
  }

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

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .contact-social {
    flex-direction: column;
    gap: 0.75rem;
  }
}
