:root {
  /* Pitch design system tokens — https://pitch.com */
  --violet: #6b53ff;        /* Signal Violet — primary action color */
  --violet-light: #8d49f7;  /* Lighter Violet — gradient stop, highlights */
  --violet-dark: #371789;   /* Deep Indigo — dark text/gradient end-stop */
  --yellow: #ffd02c;        /* Solar Yellow — energy accent, used sparingly */
  --orange: #ffa000;        /* Ember Orange — supporting accent */
  --hero-gradient: linear-gradient(120deg, #5718eb, #ab6ef9);

  --bg: #f0eff4;      /* Marble — page canvas */
  --bg-alt: #ffffff;  /* Paper — alt section bands */
  --card: #ffffff;    /* Paper — card surfaces */
  --card-2: #f6f5f9;  /* soft nested surface */
  --border: #dddfe5;  /* Mist — hairline borders */
  --border-2: #c7c9d3;

  --text: #2b2a35;      /* Slate Ink — headings, primary text */
  --text-body: #3f4250; /* Steel — body copy */
  --text-dim: #6f7387;  /* Fog — muted/secondary text */

  --radius: 26px;
  --radius-btn: 20px;
  --radius-badge: 20px;
  --radius-input: 10px;
  --radius-sm: 6px;
  --max: 1200px;
}

[data-theme="dark"] {
  --bg: #1c1b26;
  --bg-alt: #242330;
  --card: #242330;
  --card-2: #2c2b3a;
  --border: #383747;
  --border-2: #47465a;
  --text: #f5f4f9;
  --text-body: #d3d2df;
  --text-dim: #9997ab;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--violet);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 48px;
  font-size: 16px;
}

section { padding: 96px 0; }

.gradient-text { color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 20px rgba(107, 83, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(107, 83, 255, 0.45); }

.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 239, 244, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
[data-theme="dark"] header { background: rgba(28, 27, 38, 0.75); }
header.scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.85); }
[data-theme="dark"] header.scrolled { background: rgba(28, 27, 38, 0.92); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(107, 83, 255, 0.08); }
.nav-links a.active { color: var(--violet); background: rgba(107, 83, 255, 0.1); }

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--violet); color: var(--violet); }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero — full-bleed violet stage, theme-invariant */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
  background: var(--hero-gradient);
  color: #fff;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.55;
}
.hero-glow:not(.two) {
  top: -220px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 208, 44, 0.5), transparent 70%);
}
.hero-glow.two {
  bottom: -260px;
  left: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 208, 44, 0.28);
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
}

.hero-roles {
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 22px;
  min-height: 30px;
}
.hero-roles .cursor { color: var(--yellow); }

.hero p.lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .btn-primary { background: #fff; color: var(--violet-dark); box-shadow: 0 8px 24px rgba(10, 3, 89, 0.28); }
.hero .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 3, 89, 0.35); }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
}
.hero-stats div strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.hero-stats div span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 70px rgba(10, 3, 89, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.avatar-initials {
  font-size: 130px;
  font-weight: 800;
  color: var(--violet);
  opacity: 0.9;
}

.avatar-photo {
  width: 88%;
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
}

.float-chip {
  position: absolute;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(10, 3, 89, 0.25);
}
.float-chip.chip-1 { top: 8%; left: -10%; }
.float-chip.chip-2 { bottom: 6%; right: -8%; }
.float-chip .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  background: rgba(107, 83, 255, 0.12);
  flex-shrink: 0;
}
.float-chip.chip-2 .ico { color: var(--orange); background: rgba(255, 160, 0, 0.14); }

/* Services / Skills */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(107, 83, 255, 0.18); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(107, 83, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  margin-bottom: 20px;
}

.service-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-dim); font-size: 14.5px; }

/* Certifications — mirrors the blog tile pattern (card, radius, shadow, tag, hover) */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  padding: 24px 24px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(107, 83, 255, 0.18); }
.cert-tile .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  background: rgba(107, 83, 255, 0.14);
  color: var(--violet);
  margin-bottom: 14px;
}
.cert-tile .tag[data-issuer="google"] { background: rgba(255, 160, 0, 0.14); color: #b56a00; }
.cert-tile .tag[data-issuer="meta"] { background: rgba(8, 102, 255, 0.12); color: #0a5cd6; }
.cert-tile .tag[data-issuer="iskills"] { background: rgba(107, 83, 255, 0.14); color: var(--violet); }
.cert-tile .tag[data-issuer="linkedin"] { background: rgba(10, 102, 194, 0.12); color: #0a66c2; }
.cert-tile h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  flex: 1;
  margin-bottom: 18px;
}
.cert-tile .cert-date {
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* Portfolio */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border-2);
  background: var(--card);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab.active, .filter-tab:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(107, 83, 255, 0.18); }
.portfolio-card.hidden { display: none; }

.portfolio-thumb {
  height: 180px;
  background: var(--card-2);
  position: relative;
  overflow: hidden;
}
.portfolio-thumb picture,
.portfolio-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}
.portfolio-thumb img {
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.05); }
.portfolio-thumb span.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  background: rgba(43, 42, 53, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
}

.portfolio-body { padding: 22px 24px 26px; }
.portfolio-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -0.01em; }
.portfolio-body p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.portfolio-body a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  transition: transform 0.15s ease, color 0.15s ease;
}
.portfolio-body a:hover { transform: translateX(3px); color: var(--violet-dark); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-list { display: grid; gap: 16px; margin-top: 28px; }
.about-list li { display: flex; gap: 12px; color: var(--text-dim); font-size: 15px; }
.about-list li strong { color: var(--text); font-weight: 700; }
.check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(107, 83, 255, 0.12); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; font-weight: 800;
}

/* Contact — bookend violet band */
#contact.violet-band { background: var(--hero-gradient); color: #fff; position: relative; overflow: hidden; }
#contact.violet-band .section-tag { color: var(--yellow); }
#contact.violet-band .section-title,
#contact.violet-band .contact-item h4,
#contact.violet-band .article-cta h4 { color: #fff; }
#contact.violet-band .section-lead { color: rgba(255, 255, 255, 0.78); }
#contact.violet-band .contact-item { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1.5px solid rgba(255, 255, 255, 0.16); }
#contact.violet-band .contact-item .ico { background: rgba(255, 255, 255, 0.14); color: var(--yellow); }
#contact.violet-band .contact-item p, #contact.violet-band .contact-item a { color: rgba(255, 255, 255, 0.75); }
#contact.violet-band h4 { color: #fff; }
#contact.violet-band .social-row a { border-color: rgba(255, 255, 255, 0.25); color: #fff; background: rgba(255, 255, 255, 0.08); }
#contact.violet-band .social-row a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--violet-dark); }
#contact.violet-band .form-card { background: rgba(255, 255, 255, 0.97); box-shadow: 0 24px 60px rgba(10, 3, 89, 0.3); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  padding: 20px;
}
.contact-item .ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(107, 83, 255, 0.1);
  color: var(--violet); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-dim); font-size: 14.5px; }

.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 13px;
  border: 1.5px solid var(--border-2); background: var(--card); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.social-row a:hover { background: var(--violet); border-color: var(--violet); color: #fff; transform: translateY(-3px); }

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); }
.form-note { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row p { color: var(--text-dim); font-size: 13px; }
.back-top {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--border-2); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.back-top:hover { border-color: var(--violet); color: var(--violet); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 20px; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding-top: 120px; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 20px; }
  .float-chip { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 78px 16px auto 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(43, 42, 53, 0.2);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-body);
  border-radius: var(--radius-btn);
}
.mobile-menu a:hover { background: rgba(107, 83, 255, 0.08); color: var(--violet); }

/* Blog teaser (homepage) */
.blog-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.blog-teaser-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-teaser-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(107, 83, 255, 0.18); }
.blog-teaser-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-badge);
  background: rgba(107, 83, 255, 0.12);
  color: var(--violet);
  margin-bottom: 14px;
}
.blog-teaser-card h3 { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-bottom: 10px; max-width: 640px; }
.blog-teaser-card p { color: var(--text-dim); font-size: 15px; max-width: 640px; margin-bottom: 16px; }
.blog-teaser-card .read-more { font-size: 14px; font-weight: 700; color: var(--violet); }

/* Blog index page */
.blog-page-hero {
  padding: 150px 0 56px;
  background: var(--hero-gradient);
  color: #fff;
}
.blog-page-hero .section-tag { color: var(--yellow); }
.blog-page-hero .section-title { color: #fff; }
.blog-page-hero .section-lead { color: rgba(255, 255, 255, 0.8); }

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(43, 42, 53, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(107, 83, 255, 0.18); }
.blog-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.blog-card-meta .tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  background: rgba(107, 83, 255, 0.12);
  color: var(--violet);
}
.blog-card h2 { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-bottom: 10px; }
.blog-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.blog-card .read-more { font-size: 13px; font-weight: 700; color: var(--violet); }
.blog-card-placeholder {
  background: var(--card-2);
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 40px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Category badge colors per post tag */
.blog-card-meta .tag[data-cat="ai"], .article-hero .tag[data-cat="ai"] { background: rgba(255, 160, 0, 0.14); color: #b56a00; }
[data-theme="dark"] .blog-card-meta .tag[data-cat="ai"], [data-theme="dark"] .article-hero .tag[data-cat="ai"] { color: var(--orange); }
.blog-card-meta .tag[data-cat="marketing"], .article-hero .tag[data-cat="marketing"] { background: rgba(224, 62, 122, 0.13); color: #c22b6b; }
.blog-card-meta .tag[data-cat="design"], .article-hero .tag[data-cat="design"] { background: rgba(107, 83, 255, 0.12); color: var(--violet); }

/* Article page */
.article-hero {
  padding: 150px 0 46px;
  background: var(--hero-gradient);
  color: #fff;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.7); }
.breadcrumbs a:hover { color: #fff; }
.article-hero .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: var(--radius-badge);
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  max-width: 820px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  flex-wrap: wrap;
}
.article-meta .author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}
.article-meta .author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--yellow);
}
.article-meta .dot { opacity: 0.6; }

.article-body {
  padding: 50px 0 60px;
  background: var(--bg);
}
.article-content {
  max-width: 740px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-body);
}
.article-content > *:first-child { margin-top: 0; }
.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 44px 0 18px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
}
.article-content p { margin-bottom: 20px; color: var(--text-dim); line-height: 1.75; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content ul, .article-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--text-dim);
  line-height: 1.75;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 10px; }
.article-content li::marker { color: var(--violet); }
.article-content a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  border-left: 3px solid var(--violet);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.article-content code {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 14.5px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
.article-content th, .article-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.article-content th {
  background: var(--card-2);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content td strong { color: var(--text); }

.author-box {
  max-width: 740px;
  margin: 50px auto 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--violet);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(107, 83, 255, 0.3);
  padding: 26px;
}
.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--yellow);
  flex-shrink: 0;
}
.author-box h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.author-box p { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.author-box a { color: var(--yellow); font-weight: 700; }

.article-cta {
  max-width: 740px;
  margin: 32px auto 0;
  background: var(--card-2);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.article-cta p { color: var(--text-dim); font-size: 14px; }

@media (max-width: 720px) {
  .blog-index-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}
