/* ──────────────────────────────────────────────
   styles.css — Enrolled.co
   Dark, minimal, mobile-first.
   ────────────────────────────────────────────── */

/* ── CSS Custom Properties (easy to change colors/fonts in one place) ── */
:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --border: #1E1E1E;
  --text: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-dim: #666666;
  --accent: #4F46E5;
  --accent-hover: #6366F1;
  --font-display: 'Satoshi', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1120px;
  --section-padding: 120px 24px;
  --section-padding-mobile: 80px 20px;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}
img {
  max-width: 100%;
  display: block;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: var(--section-padding);
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
}
h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
}
p {
  color: var(--text-secondary);
  max-width: 600px;
}
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 20px;
  height: 20px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo-text .dot {
  color: var(--accent);
}

/* ── Nav link ── */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  padding: 180px 24px 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: 800px;
}
.hero h1 span {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.5;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ── Hero load animation ── */
.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards;
}
.hero-visible {
  /* animation-delay set via JS */
}
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════
   PROBLEM SECTION
   ══════════════════════════════════════════════ */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.problem-card h3 {
  color: var(--text);
}
.problem-card p {
  font-size: 15px;
  line-height: 1.6;
}
.problem-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--border);
  margin-bottom: 12px;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s;
}
.step:hover {
  border-color: var(--accent);
}
.step-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
}
.how-also {
  margin-top: 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.how-also p {
  font-size: 15px;
}

/* ══════════════════════════════════════════════
   WHAT YOU GET
   ══════════════════════════════════════════════ */
.benefits {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefits-list {
  list-style: none;
  margin-top: 48px;
  display: grid;
  gap: 0;
}
.benefits-list li {
  font-size: 18px;
  font-weight: 500;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.benefits-list li:last-child {
  border-bottom: none;
}
.check {
  width: 24px;
  height: 24px;
  background: rgba(79, 70, 229, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════════
   WHO IT'S FOR
   ══════════════════════════════════════════════ */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.industry-tag {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.industry-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}
.who-context {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer h2 {
  margin-bottom: 16px;
}
.footer p {
  margin: 0 auto 24px;
  text-align: center;
}
.footer .nav-link {
  margin-top: 16px;
  margin-bottom: 64px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 0;
  margin-bottom: 0;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.footer-contact {
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════
   AI CONSULTING
   ══════════════════════════════════════════════ */
.consulting {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.consulting-content {
  margin-bottom: 40px;
}
.consulting-content p {
  font-size: 17px;
  margin-top: 16px;
  max-width: 640px;
}
.consulting-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.consulting-card {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s;
}
.consulting-card:hover {
  border-color: var(--accent);
}
.consulting-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.consulting-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   NAV LINKS (multiple links in header)
   ══════════════════════════════════════════════ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ══════════════════════════════════════════════
   SERVICES GRID (homepage)
   ══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  padding: 36px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s;
}
.service-card:hover {
  border-color: var(--accent);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  margin-bottom: 20px;
}
.service-details {
  list-style: none;
  padding: 0;
}
.service-details li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}
.service-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ══════════════════════════════════════════════
   INDUSTRY CARDS (homepage)
   ══════════════════════════════════════════════ */
.industries-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.industry-card {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.industry-card:hover {
  border-color: var(--accent);
  color: inherit;
}
/* Featured card — the one with a real page to link to */
.industry-card-featured {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
}
.industry-card-featured:hover {
  background: rgba(79, 70, 229, 0.1);
}
.industry-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.industry-card-icon svg {
  width: 28px;
  height: 28px;
}
.industry-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}
.industry-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.industry-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.industry-card-link.coming-soon {
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside grids */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile first adjustments
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile);
  }
  .hero {
    padding: 140px 20px 80px;
    min-height: auto;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .consulting-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industries-detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .benefits-list li {
    font-size: 16px;
  }
  .nav-link {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 16px 20px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  .logo-text {
    font-size: 20px;
  }
}
