/* =============================================
   MVPBlueprint.com – Global Stylesheet
   ============================================= */

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

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-darker: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #f59e0b;
  --success: #10b981;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: white;
  color: var(--gray-800);
  line-height: 1.6;
}

/* —— NAV —— */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 7px; }
.nav-logo span { font-weight: 800; font-size: 1rem; color: var(--gray-900); letter-spacing: -0.02em; }
.nav-logo .logo-accent { color: var(--primary); }

.nav-links { display: flex; gap: 4px; list-style: none; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* —— HAMBURGER —— */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  width: 40px;
  height: 40px;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.main-nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.main-nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
.main-nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* —— HERO —— */
.hero {
  background: linear-gradient(160deg, #e0f2fe 0%, #f0f9ff 50%, white 100%);
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-darker);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto 24px;
}
.hero h1 span { color: var(--primary); }

.hero-intro {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(14,165,233,0.3); }

.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--gray-700);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--gray-200);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }

/* —— SIDEBAR LAYOUT —— */
.page-layout {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  gap: 48px;
  align-items: flex-start;
}

/* —— TABLE OF CONTENTS (sidebar) —— */
.toc-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.toc-sidebar h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.toc-sidebar .toc-links a {
  display: block;
  font-size: 0.84rem;
  color: var(--gray-500);
  text-decoration: none;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--gray-200);
  transition: all 0.2s;
  line-height: 1.4;
  margin-bottom: 2px;
}
.toc-sidebar nav a:hover { color: var(--primary); border-left-color: var(--primary); }
.toc-sidebar nav a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.toc-sidebar .toc-cta {
  margin-top: 32px;
  background: var(--primary-light);
  border-radius: 12px;
  padding: 18px;
}
.toc-sidebar .toc-cta p {
  font-size: 0.82rem;
  color: var(--primary-darker);
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.toc-sidebar .toc-cta a {
  display: block;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
}
.toc-sidebar .toc-cta a:hover { background: var(--primary-dark); border-left-color: transparent; }

/* —— MAIN CONTENT —— */
.main-content {
  flex: 1;
  min-width: 0;
}

/* —— ARTICLE SECTIONS —— */
.article-section {
  margin-bottom: 72px;
  scroll-margin-top: 80px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}

.article-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 32px 0 12px;
}

.article-section p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 18px;
}

.article-section ul,
.article-section ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.article-section li {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 6px;
}

.article-section strong { color: var(--gray-900); font-weight: 700; }

/* —— CALLOUT BOXES —— */
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.callout p {
  color: var(--primary-darker);
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.callout-warn {
  background: #fef3c7;
  border-left-color: var(--accent);
}
.callout-warn p { color: #92400e; }

.callout-success {
  background: #d1fae5;
  border-left-color: var(--success);
}
.callout-success p { color: #065f46; }

/* —— INFO CARDS GRID —— */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.info-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.info-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }

.info-card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* —— STEP LIST —— */
.step-list { margin: 28px 0; }

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
}

/* —— TABLE —— */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--gray-50); }
th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gray-200);
}
td { padding: 12px 16px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* —— COMPARISON CARDS —— */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
@media (max-width: 580px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  border-radius: var(--radius);
  padding: 22px;
}
.compare-card.pros { background: #d1fae5; border: 1.5px solid #6ee7b7; }
.compare-card.cons { background: #fee2e2; border: 1.5px solid #fca5a5; }
.compare-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.compare-card.pros h4 { color: #065f46; }
.compare-card.cons h4 { color: #991b1b; }
.compare-card ul { padding-left: 18px; margin: 0; }
.compare-card li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 4px; }
.compare-card.pros li { color: #065f46; }
.compare-card.cons li { color: #991b1b; }

/* —— EXAMPLES BLOCK —— */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.example-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
}
.example-card .company {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.example-card .mvp-desc {
  font-size: 0.82rem;
  color: var(--primary-darker);
  font-weight: 600;
  margin-bottom: 8px;
}
.example-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* —— CHECKLIST —— */
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-700);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* —— INLINE CTA —— */
.inline-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  color: white;
  margin: 40px 0;
}
.inline-cta h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.inline-cta p { font-size: 0.92rem; opacity: 0.85; margin-bottom: 20px; }
.inline-cta a {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.inline-cta a:hover { opacity: 0.9; }

/* —— DIVIDER —— */
.section-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 64px 0;
}

/* —— FAQ —— */
.faq-list { margin: 20px 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-arrow { font-size: 1rem; transition: transform 0.3s; color: var(--gray-400); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; font-size: 0.92rem; color: var(--gray-600); padding-bottom: 18px; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* —— FOOTER CTA —— */
.footer-cta {
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  color: white;
  text-align: center;
  padding: 80px 24px;
}
.footer-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.footer-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.footer-cta .btn-light {
  background: white;
  color: var(--primary-darker);
  padding: 15px 36px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.footer-cta .btn-light:hover { opacity: 0.92; }

/* —— FOOTER —— */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 24px;
  font-size: 0.82rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 24px; height: 24px; border-radius: 5px; opacity: 0.7; }
.footer-logo span { font-weight: 700; color: var(--gray-300); font-size: 0.88rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* —— MOBILE BREAKPOINT —— */
@media (max-width: 900px) {
  .page-layout { flex-direction: column; padding: 40px 20px 60px; gap: 0; }
  .toc-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 40px;
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
  }
  .toc-sidebar .toc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: white;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 16px 16px;
    z-index: 99;
    list-style: none;
  }
  .main-nav.open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem !important;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 6px;
    text-align: center;
    border-radius: 8px !important;
    padding: 12px !important;
  }
}

@media (max-width: 580px) {
  .toc-sidebar .toc-links { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* Hero */
  .hero { padding: 56px 20px 48px; }
  .hero-intro { font-size: 1rem; }
  .hero-stat .num { font-size: 1.5rem; }

  /* Sections */
  .article-section { margin-bottom: 48px; }
  .section-divider { margin: 40px 0; }
  .article-section h3 { margin: 24px 0 10px; }

  /* Buttons – full width on small screens */
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  /* Inline CTA */
  .inline-cta { padding: 28px 20px; }
  .inline-cta h3 { font-size: 1.1rem; }

  /* Footer CTA */
  .footer-cta { padding: 56px 20px; }

  /* Footer links stacked */
  .footer-links { flex-direction: column; gap: 10px; align-items: center; }

  /* Step items */
  .step-item { gap: 14px; }
  .step-num { width: 34px; height: 34px; font-size: 0.82rem; }

  /* Callout */
  .callout { padding: 14px 16px; }

  /* Table font */
  table { font-size: 0.82rem; }
  th, td { padding: 10px 12px; }
}
