/* ============================================
   Penetration Testing Vendor
   Dark Navy theme matching get-a-quote page
   Accent: Green #34D399 (Affordable Pentesting brand)
   ============================================ */

/* Fonts - matching AP: IBM Plex Sans, Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  /* Dark navy palette matching get-a-quote */
  --primary: #34D399;
  --primary-light: #6EE7B7;
  --primary-dark: #059669;
  --primary-muted: rgba(52, 211, 153, 0.1);
  --primary-border: rgba(52, 211, 153, 0.2);

  --navy: #0D1117;
  --navy-light: #161B22;
  --navy-card: #1C2128;
  --border: #30363D;

  --dark: #F0F6FC;           /* Headings - light on dark bg */
  --dark-hero: #0D1117;
  --dark-section: #0D1117;

  --light-bg: #161B22;
  --cream-bg: #1C2128;

  --white: #F0F6FC;
  --gray-100: #1C2128;
  --gray-200: #30363D;
  --gray-300: #30363D;
  --gray-500: #8B949E;
  --gray-700: #C9D1D9;

  --font-display: 'IBM Plex Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --max-width: 1200px;
  --radius-card: 20px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* Typography */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p { margin-bottom: 1rem; color: var(--gray-500); line-height: 1.7; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section--light { background: var(--light-bg); }
.section--cream { background: var(--cream-bg); }
.section--dark { background: var(--dark-section); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }
.text-center { text-align: center; }

/* ===== HEADER / NAV ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo:hover { color: var(--primary); }
.nav__logo svg { width: 26px; height: 26px; color: var(--primary); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
}

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

.nav__cta {
  background: var(--primary);
  color: #0D1117 !important;
  padding: 0.65rem 1.5rem;
  border-radius: 48px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: all 0.2s !important;
  white-space: nowrap;
}

.nav__cta:hover { background: var(--primary-dark); color: #fff !important; box-shadow: 0 4px 20px rgba(52,211,153,0.3); }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.nav__dropdown-toggle:hover { color: var(--primary); }
.nav__dropdown-toggle svg { width: 12px !important; height: 12px !important; min-width: 12px; transition: transform 0.2s; }
.nav__dropdown:hover .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__links .nav__dropdown-menu,
ul .nav__dropdown-menu,
.nav__dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  background: #1C2128 !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4) !important;
  z-index: 100;
  list-style: none !important;
  flex-direction: column !important;
  backdrop-filter: blur(12px);
}
.nav__dropdown:hover > .nav__dropdown-menu { display: block !important; }
.nav__dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
}
.nav__dropdown-menu a:hover { color: var(--primary); background: rgba(52,211,153,0.08); border-radius: 6px; margin: 0 0.35rem; padding: 0.6rem 0.9rem; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, #0D1117 0%, #111820 50%, #0D1117 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 { font-size: 3.5rem; max-width: 750px; }
.hero p { font-size: 1.15rem; max-width: 600px; color: var(--gray-500); margin-bottom: 2rem; }

.hero__badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.hero__badge svg { color: var(--primary); flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary { background: var(--primary); color: #0D1117; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(52,211,153,0.3); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #0D1117; }

.btn--dark { background: var(--navy-card); color: var(--white); border: 1px solid var(--border); }
.btn--dark:hover { background: var(--navy-light); color: var(--white); }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== CARDS ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ===== STATS ===== */
.stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; }
.stat__label { font-size: 0.9rem; color: var(--gray-500); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--navy-light);
  padding: 2rem 0;
  text-align: center;
}

.trust-bar p {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.5;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-500);
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--navy-card);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: var(--shadow-card);
}

.testimonial__text { font-style: italic; font-size: 1.05rem; margin-bottom: 1rem; color: var(--gray-700); }
.testimonial__author { font-family: var(--font-heading); font-weight: 700; color: var(--dark); }
.testimonial__role { font-size: 0.85rem; color: var(--gray-500); }

/* ===== PROCESS STEPS ===== */
.steps { counter-reset: step; }

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #0D1117;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; }

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq__q {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__q span { color: var(--primary); font-size: 1.3rem; }

.faq__a { margin-top: 0.75rem; color: var(--gray-500); display: none; }
.faq__item.active .faq__a { display: block; }

/* ===== BLOG CARDS ===== */
.blog-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

.blog-card__img {
  height: 200px;
  background: linear-gradient(135deg, #111820 0%, #0D1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3rem;
}

.blog-card__body { padding: 1.5rem; }
.blog-card__tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.blog-card__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card__title a { color: var(--dark); }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt { font-size: 0.9rem; color: var(--gray-500); }

/* ===== BLOG POST ===== */
.post { max-width: 780px; margin: 0 auto; }
.post h1 { font-size: 2.2rem; color: var(--dark); }
.post__meta { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 2rem; }
.post h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.post h3 { margin-top: 2rem; font-size: 1.3rem; }
.post ul, .post ol { margin: 1rem 0 1rem 1.5rem; color: var(--gray-500); }
.post li { margin-bottom: 0.5rem; }
.post blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--navy-light);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(52, 211, 153, 0.06) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--primary-border);
  border-bottom: 1px solid var(--primary-border);
  position: relative;
}

.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { color: var(--gray-700); max-width: 600px; margin: 0 auto 2rem; }

/* Blog post inline CTA variant */
.blog-post__cta {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(52, 211, 153, 0.06) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}

.blog-post__cta h3 { color: var(--white); margin-bottom: 0.75rem; }
.blog-post__cta p { color: var(--gray-700); max-width: 550px; margin: 0 auto 1.5rem; }

.cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--primary);
  color: #0D1117;
  transition: all 0.2s;
  text-decoration: none;
}

.cta-button:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(52,211,153,0.3); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: var(--navy-light);
  color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #484F58; }

.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== PRICING CARDS ===== */
.pricing-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--gray-500);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p { font-size: 0.9rem; max-width: 300px; margin-top: 0.75rem; color: var(--gray-500); }

.footer h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 0.6rem; }
.footer p { color: var(--gray-700); }
.footer a { color: var(--gray-500); font-size: 0.9rem; }
.footer a:hover { color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ===== MOBILE & TOUCH OPTIMIZATION ===== */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(52, 211, 153, 0.15);
}

figure svg { max-width: 100%; height: auto; }

.nav__cta, .btn, .btn--primary, .faq__q, .nav__toggle { min-height: 44px; }

body { overflow-x: hidden; }

.post img, .post svg, .post figure { max-width: 100%; height: auto; }

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 968px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .container { padding: 0 1.5rem; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav__links.active li { width: 100%; }
  .nav__links.active a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--gray-700);
  }
  .nav__links.active li:last-child a {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }
  .nav__dropdown-menu {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 0 1rem !important;
    min-width: 0 !important;
    display: none !important;
  }
  .nav__dropdown-menu::before { display: none; }
  .nav__dropdown.active .nav__dropdown-menu { display: block !important; }
  .nav__dropdown:hover > .nav__dropdown-menu { display: none !important; }
  .nav__dropdown-toggle { width: 100%; padding: 0.75rem 0; font-size: 1rem; color: var(--gray-700); border-bottom: 1px solid var(--border); }
  .nav__dropdown-menu a { padding: 0.5rem 0; border-bottom: 1px solid rgba(48,54,61,0.5); font-size: 0.9rem; }
  .nav { padding: 0 1.5rem; }

  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }

  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }

  .stats { gap: 2rem; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer { padding: 3rem 0 1.5rem; }

  .btn-group { flex-direction: column; }
  .btn { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; }
  .btn--primary { width: auto; }

  .post { padding: 0 0.25rem; }
  .post h1 { font-size: 1.6rem; line-height: 1.2; }
  .post h2 { font-size: 1.3rem; }
  .post h3 { font-size: 1.1rem; }

  .blog-card__body { padding: 1.25rem; }
  .blog-card__title { font-size: 1.05rem; }
  .blog-card__img { height: 150px; }

  .faq__q { padding: 0.5rem 0; min-height: 48px; font-size: 1rem; }
  .faq__item { padding: 1rem 0; }

  .post div[style*="padding:2rem"] { padding: 1.5rem !important; }

  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ===== RESPONSIVE: SMALL PHONES ===== */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.75rem; }
  .post h1 { font-size: 1.4rem; }
  .container { padding: 0 1rem; }
  .nav { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .blog-card__img { height: 120px; }
  .card { padding: 1.5rem; }

  figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  figure svg { min-width: 500px; }
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== ARTICLE LAYOUT ===== */
.article { padding: 2rem 0; }
.article__header { margin-bottom: 2rem; }
.article__header h1 { color: var(--dark); font-size: 2.2rem; }
.article__meta { color: var(--gray-500); font-size: 0.9rem; margin-top: 0.5rem; }
.article__meta span { margin-right: 1.5rem; }
.article__content { max-width: 780px; margin: 0 auto; }
.article__content h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.article__content h3 { margin-top: 2rem; font-size: 1.3rem; }
.article__content p { margin-bottom: 1rem; color: var(--gray-500); line-height: 1.7; }

/* Blog post layout (new-style posts) */
.blog-post { padding: 6rem 2rem 2rem; }
.blog-post__header {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}
.blog-post__header h1 { text-align: left; }
.blog-post__header .blog-post__meta { text-align: left; }
.blog-post__hero {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  margin: 0 auto 2rem;
  display: block;
}
.blog-post__content {
  max-width: 780px;
  margin: 0 auto;
}
.blog-post__content h1 {
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.blog-post__content h2 {
  color: var(--white);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.blog-post__content h3 {
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.blog-post__content p {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.blog-post__content ul, .blog-post__content ol {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.blog-post__content li {
  margin-bottom: 0.5rem;
}
.blog-post__content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.3);
  text-underline-offset: 2px;
}
.blog-post__content a:hover {
  text-decoration-color: var(--primary);
}
/* SVG diagrams in blog posts — constrain width */
.blog-post__content figure,
.blog-post__content svg,
.article__content figure,
.article__content svg,
.article-body figure,
.article-body svg,
article figure,
article svg {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: auto;
}
.blog-post__content figure,
.article__content figure,
.article-body figure,
article figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.blog-post__content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--gray-700);
  font-style: italic;
}
.blog-post__content strong {
  color: var(--white);
}
.blog-post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.blog-post__back {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.blog-post__back:hover { text-decoration: underline; }
.blog-post__reading-time {
  color: var(--gray-500);
}
@media (max-width: 768px) {
  .blog-post { padding: 5rem 1.25rem 1.5rem; }
  .blog-post__content h1 { font-size: 1.8rem; }
  .blog-post__content h2 { font-size: 1.35rem; }
  .blog-post__content p { font-size: 1rem; }
}

/* Typeform embed */
.typeform-container {
  width: 100%;
  min-height: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 2rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-30px) translateX(20px); }
  50% { transform: translateY(-60px) translateX(0px); }
  75% { transform: translateY(-30px) translateX(-20px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-40px); }
}

@keyframes float3 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-in-up { opacity: 0; transform: translateY(30px); }
.fade-in-up.visible { animation: fadeInUp 0.6s ease-out forwards; }
.fade-in-up:nth-child(1).visible { animation-delay: 0s; }
.fade-in-up:nth-child(2).visible { animation-delay: 0.1s; }
.fade-in-up:nth-child(3).visible { animation-delay: 0.2s; }
.fade-in-up:nth-child(4).visible { animation-delay: 0.3s; }
.fade-in-up:nth-child(5).visible { animation-delay: 0.4s; }
.fade-in-up:nth-child(6).visible { animation-delay: 0.5s; }

/* Nav scroll effect */
.header.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Accessibility: Respect prefers-reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
