/* ═══════════════════════════════════════════════════════════════════════
   MOLOI METHOD — Production Stylesheet
   moloimethod.com | Agentic Engineering
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────────────────── */
:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --text: #F0EDE6;
  --text-body: #C8C8C8;
  --text-muted: #888888;
  --accent: #00D4FF;
  --accent-hover: #33DDFF;
  --gold: #C9A84C;
  --green: #00FF88;
  --red: #FF4444;
  --gradient-accent: linear-gradient(135deg, #00D4FF, #0066FF);
  --gradient-gold: linear-gradient(135deg, #C9A84C, #E8D48B);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing scale (1 = 0.5rem) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p + p {
  margin-top: 1em;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code, pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text-body);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

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

.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ── Grid System ────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

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

.cards-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
}

.hero__headline {
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero__cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease-out);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav__logo:hover {
  color: var(--accent);
}

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

.nav__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration);
}

.nav__toggle--active .nav__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active .nav__bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active .nav__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary,
.btn-primary {
  background: var(--gradient-accent);
  color: #000;
  border-color: transparent;
}

.btn--primary:hover,
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
  color: #000;
}

.btn--outline,
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover,
.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-hover);
}

.btn--ghost,
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover,
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.btn--lg {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease-out);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card--dark {
  background: var(--bg-card);
}

.card--accent {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, var(--bg-card) 100%);
}

.card--service {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card--system {
  position: relative;
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  color: var(--text);
}

.card__title--red {
  color: var(--red);
}

.card__title--cyan {
  color: var(--accent);
}

.card__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  margin-top: auto;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.card__list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-body);
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.card--dark .card__list li::before {
  background: var(--red);
}

.card--accent .card__list li::before {
  background: var(--green);
}

.card__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  width: calc(100% + 4rem);
}

/* ── Status Dots ────────────────────────────────────────────────────── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot--live {
  background: var(--green);
  animation: pulse-green 2s ease-in-out infinite;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Badges & Tags ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag-live {
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
}

.tag-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 0.4rem;
  animation: pulse-green 2s ease-in-out infinite;
}

/* ── Service Card ───────────────────────────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--duration) var(--ease-out);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

/* ── Pricing Tier ───────────────────────────────────────────────────── */
.pricing-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.pricing-tier--popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.pricing-tier--popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 100px;
}

.pricing-tier__name {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-tier__price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-tier__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-tier__features {
  margin: 2rem 0;
  text-align: left;
}

.pricing-tier__features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

.pricing-tier__features li:last-child {
  border-bottom: none;
}

.pricing-tier__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Comparison Table ───────────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
  font-size: 0.95rem;
}

.comparison-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ── CTA Banner ─────────────────────────────────────────────────────── */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 102, 255, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner__title {
  margin-bottom: 1rem;
}

.cta-banner__text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* ── Final CTA ──────────────────────────────────────────────────────── */
.final-cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 212, 255, 0.03) 100%);
}

.final-cta__headline {
  margin-bottom: 1rem;
}

.final-cta__sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ── Problem/Solution ───────────────────────────────────────────────── */
.problem-solution {
  padding: 6rem 0;
}

/* ── Services Preview ───────────────────────────────────────────────── */
.services-preview {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 212, 255, 0.02) 100%);
}

/* ── Live Systems ───────────────────────────────────────────────────── */
.live-systems {
  padding: 6rem 0;
}

/* ── Credentials ────────────────────────────────────────────────────── */
.credentials {
  padding: 6rem 0;
}

.credentials__scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cert-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-badge__org {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.cert-badge__name {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.cert-badge__year {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__heading {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--duration) var(--ease-out);
}

.footer__list a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Breadcrumbs ────────────────────────────────────────────────────── */
.breadcrumbs {
  padding: calc(var(--nav-height) + 1.5rem) 0 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumbs__item {
  color: var(--text-muted);
}

.breadcrumbs__item a {
  color: var(--text-muted);
}

.breadcrumbs__item a:hover {
  color: var(--accent);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--border);
}

/* ── FAQ Accordion ──────────────────────────────────────────────────── */
.faq {
  padding: 6rem 0;
}

.faq__title {
  margin-bottom: 2.5rem;
}

.faq__list {
  max-width: 800px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
}

.faq__question:hover {
  color: var(--accent);
}

.faq__icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__answer {
  padding: 0 0 1.25rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Stat Counter ───────────────────────────────────────────────────── */
.stat-counter {
  text-align: center;
}

.stat-counter__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-counter__label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ── Stats Bar ──────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

/* ── Blog ───────────────────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 4rem 0;
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-card-hover);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__title {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Blog sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.sidebar-section__title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-section__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-section__list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--duration);
}

.sidebar-section__list a:hover {
  color: var(--accent);
}

.sidebar-newsletter input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.sidebar-newsletter input[type="email"]::placeholder {
  color: var(--text-muted);
}

.sidebar-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* Blog post single */
.blog-post-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.blog-post-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Article / Prose content */
.blog-post-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.blog-toc {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
}

.blog-toc__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-toc__list a {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color var(--duration);
}

.blog-toc__list a:hover {
  color: var(--accent);
}

.blog-toc__list .toc-h3 {
  padding-left: 1rem;
  font-size: 0.8rem;
}

/* Prose styling for blog content */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose img {
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.3);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose table th,
.prose table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose table th {
  color: var(--text);
  font-weight: 600;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 4rem;
}

.author-bio__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  flex-shrink: 0;
  object-fit: cover;
}

.author-bio__name {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.author-bio__role {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.author-bio__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Related posts */
.related-posts {
  padding: 4rem 0;
}

.related-posts__title {
  margin-bottom: 2rem;
}

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

/* ── Case Studies ───────────────────────────────────────────────────── */
.case-study-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
}

.case-study-hero__client {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.case-study-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.case-study-hero__desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
}

.case-study-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.case-study-section__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.case-study-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.case-study-result {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
}

.case-study-result__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.case-study-result__label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.diagram-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--border-radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin: 2rem 0;
}

/* ── 404 Page ───────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.error-page__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page__text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--duration);
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.pagination .pagination--active {
  background: var(--gradient-accent);
  color: #000;
  border-color: transparent;
}

/* ── Keyframe Animations ────────────────────────────────────────────── */
@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered animation classes */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate="fade-in-up"] {
  transform: translateY(30px);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="slide-in-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-in-right"] {
  transform: translateX(30px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Explicit animation classes (non-scroll) */
.fade-in-up {
  animation: fade-in-up 0.6s var(--ease-out) both;
}

.fade-in {
  animation: fade-in 0.6s var(--ease-out) both;
}

.slide-in-left {
  animation: slide-in-left 0.6s var(--ease-out) both;
}

.slide-in-right {
  animation: slide-in-right 0.6s var(--ease-out) both;
}

/* Glow on hover for primary CTA */
.btn--primary:hover {
  animation: glow 2s ease-in-out infinite;
}

/* ── Utility Classes ────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.hidden-mobile { display: block; }
.hidden-desktop { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .container {
    max-width: 1080px;
  }
}

@media (max-width: 1024px) {
  .cards-grid--four,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: -1;
  }

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

  .stats-bar {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 4rem 0; }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__links--open {
    display: flex;
  }

  .cards-grid--two,
  .cards-grid--three,
  .cards-grid--four,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .blog-post-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 4rem;
  }

  .blog-toc {
    position: static;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
  }

  .blog-post-hero h1 {
    font-size: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: 80vh;
    padding: 4rem 0;
  }

  .hero__headline {
    font-size: 2.25rem;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .case-study-hero h1 {
    font-size: 2rem;
  }

  .error-page__code {
    font-size: 5rem;
  }

  .hidden-mobile { display: none; }
  .hidden-desktop { display: block; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  body { font-size: 1rem; }

  .container { padding: 0 1.25rem; }

  .hero__headline {
    font-size: 1.85rem;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
  }

  .pricing-tier__price {
    font-size: 2.5rem;
  }

  .stats-bar {
    gap: 1.5rem;
  }

  .stat-counter__number {
    font-size: 2.25rem;
  }
}
