/* ============================================================
   Exponential Tech — Main Stylesheet
   exponentialtech.ai
   ============================================================ */

/* Google Fonts loaded via <link> in header.php for performance */

/* ============================================================
   1. Design Tokens (CSS Custom Properties)
   ============================================================ */
:root {
  /* Backgrounds */
  --bg: #07090F;
  --surface: #0C0F1A;
  --surface-alt: #0E1225;

  /* Borders */
  --border: rgba(0, 194, 255, 0.06);
  --border-hover: rgba(0, 194, 255, 0.15);

  /* Text */
  --text: #fff;
  --text-soft: rgba(220, 230, 255, 0.85);
  --text-muted: rgba(180, 190, 220, 0.55);
  --text-faint: rgba(180, 190, 220, 0.3);

  /* Accent colours */
  --cyan: #00C2FF;
  --blue: #5B8FFF;
  --purple: #7B61FF;
  --lavender: #A78BFA;
  --pink: #FF6B9D;

  /* Gradients */
  --grad: linear-gradient(135deg, #00C2FF, #7B61FF);
  --grad-hover: linear-gradient(135deg, #33d4ff, #9a85ff);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: 100px 24px;
  --inner-max: 1080px;
  --radius: 14px;
  --radius-inner: 12px;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--purple);
  color: #fff;
}

::placeholder {
  color: var(--text-muted);
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #fff;
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. Layout — Sections & Inner
   ============================================================ */
.section {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
  position: relative;
}

.section--dark {
  background: var(--surface);
}

.section--alt {
  background: var(--surface-alt);
}

.inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   4. Grid Background (decorative)
   ============================================================ */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   5. Typography
   ============================================================ */
.label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diamond {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--grad);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-intro {
  max-width: 600px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.section-intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   6. Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 9, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav__logo img {
  width: 28px;
  height: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 1px;
}

.nav__cta {
  margin-left: 8px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
}

.nav__hamburger span:nth-child(1) { transform: translateY(-6px); }
.nav__hamburger span:nth-child(2) { transform: translateY(0); }
.nav__hamburger span:nth-child(3) { transform: translateY(6px); }

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7, 9, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  overflow-y: auto;
  z-index: 999;
  max-height: calc(100vh - 64px);
}

.nav__mobile.active {
  display: flex;
}

.nav__mobile .nav__link {
  font-size: 1.1rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav__mobile .btn {
  margin-top: 16px;
}

/* Search button in nav */
.nav__search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
}

.nav__search-btn:hover {
  color: var(--cyan);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  width: 100%;
  max-width: 620px;
  padding: 0 24px;
  position: relative;
}

.search-overlay__close {
  position: absolute;
  top: -48px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.search-overlay__close:hover {
  color: var(--text);
}

.search-overlay__field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.search-overlay__icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.search-overlay__results {
  margin-top: 16px;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-inner);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: var(--text-soft);
}

.search-result:hover {
  border-color: var(--border-hover);
  background: var(--surface-alt);
  color: var(--text);
}

.search-result__img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-result__info {
  flex: 1;
  min-width: 0;
}

.search-result__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result__excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result__meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.search-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  font-size: 0.95rem;
}

/* ============================================================
   7. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow:
    0 4px 20px rgba(0, 194, 255, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 32px rgba(0, 194, 255, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-hover);
}

.btn--secondary:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(0, 194, 255, 0.04);
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.82rem;
}

.btn--large {
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* ============================================================
   8. Cards (gradient border trick)
   ============================================================ */
.card {
  padding: 2px;
  background: var(--grad);
  border-radius: var(--radius);
  transition: all 0.35s ease;
}

.card:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
}

.card__inner {
  background: var(--surface);
  border-radius: var(--radius-inner);
  padding: 28px;
  height: 100%;
}

/* Card with subtle border (less prominent) */
.card--subtle {
  background: var(--border);
}

.card--subtle:hover {
  background: var(--border-hover);
}

.card--subtle .card__inner {
  background: var(--surface-alt);
}

/* Card without gradient border */
.card--flat {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card--flat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card--flat .card__inner {
  background: transparent;
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 1.2rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

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

/* ============================================================
   9. Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0, 194, 255, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(123, 97, 255, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0, 194, 255, 0.06);
  border: 1px solid rgba(0, 194, 255, 0.12);
  padding: 8px 18px;
  border-radius: 100px;
  width: fit-content;
}

.hero__badge .diamond {
  width: 4px;
  height: 4px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.08;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

/* ============================================================
   10. Stats Bar
   ============================================================ */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}

.stats__grid {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats__value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stats__label {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   11. Grid Layouts
   ============================================================ */
.grid {
  display: grid;
  gap: 24px;
}

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

/* Process steps — horizontal numbered cards */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process__step {
  text-align: center;
  padding: 32px 20px;
}

.process__number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.process__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

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

/* Services — 2 col */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================================
   12. FadeUp Animation
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--stagger, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   13. Footer
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}

.footer__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer__nav {
  display: flex;
  gap: 56px;
}

.footer__nav-group h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer__nav-group a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.25s ease;
}

.footer__nav-group a:hover {
  color: var(--cyan);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer__bottom-links a:hover {
  color: var(--cyan);
}

/* ============================================================
   14. Blog
   ============================================================ */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  padding: 2px;
  background: var(--border);
  border-radius: var(--radius);
  transition: all 0.35s ease;
}

.blog-card:hover {
  background: var(--border-hover);
  transform: translateY(-2px);
}

.blog-card__inner {
  background: var(--surface);
  border-radius: var(--radius-inner);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__img {
  overflow: hidden;
  border-radius: var(--radius-inner) var(--radius-inner) 0 0;
  aspect-ratio: 16 / 9;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.03);
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 194, 255, 0.06);
  padding: 3px 10px;
  border-radius: 4px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.blog-card__link:hover {
  gap: 10px;
  color: var(--cyan);
}

/* Featured blog card */
.blog-card--featured {
  background: var(--grad);
}

.blog-card--featured:hover {
  background: var(--grad-hover);
}

.blog-card--featured .blog-card__inner {
  display: flex;
  flex-direction: column;
}

.blog-card--featured .blog-card__image {
  height: 100%;
  min-height: 280px;
}

/* Blog post / article view */
.article {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.article__header {
  max-width: 100%;
}

.article__share {
  max-width: 780px;
}

.article__hero-img {
  max-width: 100%;
}

.article__body {
  max-width: 780px;
}

.article__with-toc {
  max-width: none;
}

.article__with-toc .article__body {
  max-width: none;
}

.article__header {
  margin-bottom: 40px;
}

.article__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  background: rgba(123, 97, 255, 0.08);
  padding: 5px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.article__edit-btn:hover {
  background: rgba(123, 97, 255, 0.18);
  color: #fff;
}

.article__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 194, 255, 0.06);
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep {
  margin: 0 8px;
  opacity: 0.4;
}
.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.article__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article__hero-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.article__body p {
  margin-bottom: 1.5em;
}

.article__body h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
}

.article__body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.article__body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: rgba(0, 194, 255, 0.03);
  border-radius: 0 8px 8px 0;
  color: var(--text-soft);
  font-style: italic;
}

.article__body ul,
.article__body ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
}

.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }

.article__body li {
  margin-bottom: 0.5em;
}

.article__body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__body a:hover {
  color: #fff;
}

.article__body code {
  font-size: 0.9em;
  background: rgba(0, 194, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--cyan);
}

.article__body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.article__body pre code {
  background: none;
  padding: 0;
  color: var(--text-soft);
}

.article__body img {
  border-radius: 10px;
  margin: 1.5em 0;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--grad);
  z-index: 1001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Article share buttons */
.article__share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article__share-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article__share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.share-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(0, 194, 255, 0.05);
}

.share-btn--linkedin:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.06);
}

.share-btn--x:hover {
  border-color: var(--text);
}

.share-btn--copy:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(123, 97, 255, 0.06);
}

/* Blog search + tag filters */
.blog-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.blog-search {
  position: relative;
  max-width: 400px;
}

.blog-search__input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.blog-search__input:focus {
  border-color: rgba(0, 194, 255, 0.3);
}

.blog-search__input::placeholder {
  color: var(--text-faint);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.blog-tag-btn:hover {
  border-color: rgba(0, 194, 255, 0.3);
  color: var(--text-soft);
}

.blog-tag-btn.active {
  border-color: var(--cyan);
  background: rgba(0, 194, 255, 0.08);
  color: var(--cyan);
}

.blog-tag-count {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: 2px;
}

.blog-card-wrap.filter-hidden {
  display: none !important;
}

/* Blog pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.blog-pagination__link,
.blog-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.blog-pagination__link {
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: transparent;
}

.blog-pagination__link:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(0, 194, 255, 0.05);
}

.blog-pagination__current {
  color: var(--text);
  border: 1px solid rgba(0, 194, 255, 0.3);
  background: rgba(0, 194, 255, 0.08);
}

.blog-pagination__ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
}

.blog-pagination__link--latest {
  color: var(--cyan);
  border-color: rgba(0, 194, 255, 0.25);
  font-weight: 600;
}

.blog-pagination__link--latest:hover {
  background: rgba(0, 194, 255, 0.12);
  border-color: var(--cyan);
}

/* ============================================================
   15. Contact Form
   ============================================================ */
.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 194, 255, 0.03);
  border: 1px solid rgba(0, 194, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: rgba(0, 194, 255, 0.3);
  background: rgba(0, 194, 255, 0.05);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300C2FF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================================
   16. Case Studies
   ============================================================ */
.case-study {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
}

.case-study:nth-child(even) {
  background: var(--surface);
}

.case-study__header {
  margin-bottom: 40px;
}

.case-study__client {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.case-study__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.case-study__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.case-study__block-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.case-study__block-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.case-study__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.case-study__stat {
  text-align: center;
  padding: 20px 28px;
  background: rgba(0, 194, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.case-study__stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.case-study__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   17. Lead Magnet Section
   ============================================================ */
.lead-magnet {
  padding: var(--section-pad);
  display: flex;
  justify-content: center;
}

.lead-magnet__card {
  padding: 2px;
  background: var(--grad);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
}

.lead-magnet__inner {
  background: var(--surface);
  border-radius: var(--radius-inner);
  padding: 52px 48px;
  text-align: center;
}

.lead-magnet__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.lead-magnet__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.lead-magnet__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.lead-magnet__form .lead-magnet__input-row {
  display: flex;
  gap: 12px;
}

.lead-magnet__form .lead-magnet__input-row .lead-magnet__input {
  flex: 1;
  min-width: 0;
}

.lead-magnet__input {
  padding: 14px 18px;
  background: rgba(0, 194, 255, 0.04);
  border: 1px solid rgba(0, 194, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.lead-magnet__input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.lead-magnet__input:focus {
  border-color: rgba(0, 194, 255, 0.35);
  background: rgba(0, 194, 255, 0.06);
}

/* ============================================================
   18. Principles / Feature Grid
   ============================================================ */
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   19. SquareMotif (decorative — positioned by inline styles)
   ============================================================ */
.square-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   20. Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

.relative { position: relative; }

.z-1 { z-index: 1; }

/* ============================================================
   21. Responsive — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 20px;
  }

  /* Nav */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
  }

  .hero__visual svg {
    max-width: 280px;
    height: auto;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

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

  .case-study__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-study__stats {
    flex-direction: column;
    gap: 16px;
  }

  /* Blog featured card */
  .blog-card--featured .blog-card__inner {
    grid-template-columns: 1fr;
  }

  .blog-card--featured .blog-card__image {
    height: 200px;
    min-height: auto;
  }

  /* Form */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Lead magnet */
  .lead-magnet__inner {
    padding: 32px 24px;
  }

  .lead-magnet__form {
    flex-direction: column;
  }

  .lead-magnet__form .lead-magnet__input-row {
    flex-direction: column;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Article */
  .article {
    padding: 100px 20px 60px;
  }
}

/* ============================================================
   Table of Contents (Blog posts)
   ============================================================ */
.article__with-toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1100px) {
  .article__with-toc {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }
}

.article__toc {
  display: none;
}

@media (min-width: 1100px) {
  .article__toc {
    display: block;
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

.toc__title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}

.toc__item {
  margin: 0;
}

.toc__item--sub {
  padding-left: 12px;
}

.toc__link {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}

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

.toc__link.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* Medium screens — tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ============================================================
   Light Theme
   ============================================================ */
html.light {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text: #1a1a2e;
  --text-soft: #2d2d44;
  --text-muted: rgba(45, 45, 68, 0.6);
  --text-faint: rgba(45, 45, 68, 0.35);
}

html.light body {
  color: var(--text-soft);
}

html.light .nav {
  background: rgba(245, 247, 250, 0.95);
  border-bottom-color: var(--border);
}

html.light .grid-bg {
  opacity: 0.03;
}

html.light .card,
html.light .blog-card {
  background: var(--surface);
  border-color: var(--border);
}

html.light .gradient-text {
  background: linear-gradient(135deg, #0090cc, #5a3fcf);
  -webkit-background-clip: text;
  background-clip: text;
}

html.light .reading-progress {
  background: linear-gradient(90deg, #0090cc, #5a3fcf);
}

html.light .footer {
  background: #ebeef3;
  border-top-color: var(--border);
}

html.light .nav__mobile {
  background: rgba(245, 247, 250, 0.98);
}

html.light .search-overlay {
  background: rgba(245, 247, 250, 0.95);
}

html.light .hero__overlay {
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 194, 255, 0.05) 0%, transparent 60%);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
}

.theme-toggle:hover {
  color: var(--cyan);
}

.theme-toggle__icon--light,
.theme-toggle__icon--dark {
  display: none;
}

html:not(.light) .theme-toggle__icon--light {
  display: block;
}

html.light .theme-toggle__icon--dark {
  display: block;
}

/* Code syntax highlighting (Prism.js overrides for dark theme) */
.article__body pre {
  background: #0d1117 !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

html.light .article__body pre {
  background: #f6f8fa !important;
  border-color: var(--border);
}

.article__body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88em;
}

.article__body :not(pre) > code {
  background: rgba(0, 194, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--cyan);
}

html.light .article__body :not(pre) > code {
  background: rgba(0, 144, 204, 0.1);
  color: #0077aa;
}

/* ============================================================
   Page Transitions
   ============================================================ */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageIn 0.35s ease-out;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, color 0.2s, border-color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Image lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(7, 9, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  z-index: 1500;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.cookie-consent.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-consent p {
  flex: 1;
  min-width: 180px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-consent__btns {
  display: flex;
  gap: 8px;
}

.cookie-consent__btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cookie-consent__btn:hover {
  opacity: 0.85;
}

.cookie-consent__btn--accept {
  background: var(--grad);
  color: #fff;
}

.cookie-consent__btn--decline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
}

/* Resume reading banner */
.resume-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1100;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.resume-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.resume-banner__btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
}

.resume-banner__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

/* ============================================================
   ROI Calculator
   ============================================================ */
.roi-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 32px;
  position: relative;
}

.roi-calc__step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.roi-calc__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.roi-calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.roi-calc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-calc__field--full {
  margin-bottom: 20px;
}

.roi-calc__label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.roi-calc__select,
.roi-calc__input {
  padding: 13px 16px;
  background: rgba(0, 194, 255, 0.04);
  border: 1px solid rgba(0, 194, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
}

.roi-calc__select option {
  background: var(--surface);
  color: var(--text);
}

.roi-calc__select:focus,
.roi-calc__input:focus {
  border-color: rgba(0, 194, 255, 0.35);
  background: rgba(0, 194, 255, 0.06);
}

.roi-calc__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.roi-calc__input-prefix {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}

.roi-calc__input-wrap .roi-calc__input {
  padding-left: 32px;
}

/* Slider */
.roi-calc__slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.roi-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 194, 255, 0.12);
  outline: none;
  transition: background 0.2s;
}

.roi-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0, 194, 255, 0.3);
  transition: transform 0.15s ease;
}

.roi-calc__slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.roi-calc__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0, 194, 255, 0.3);
}

.roi-calc__slider-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  min-width: 90px;
  text-align: right;
}

/* Calculate button */
.roi-calc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 12px;
}

.roi-calc__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.roi-calc__btn--outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-soft);
}

.roi-calc__btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.roi-calc__btn--full {
  width: 100%;
}

/* Results cards */
.roi-calc__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.roi-calc__card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 24px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: roiCardIn 0.5s ease-out forwards;
}

.roi-calc__card:nth-child(1) { animation-delay: 0.1s; }
.roi-calc__card:nth-child(2) { animation-delay: 0.2s; }
.roi-calc__card:nth-child(3) { animation-delay: 0.3s; }
.roi-calc__card:nth-child(4) { animation-delay: 0.4s; }

@keyframes roiCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.roi-calc__card--highlight {
  border-color: rgba(0, 194, 255, 0.2);
  background: rgba(0, 194, 255, 0.04);
}

.roi-calc__card-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.roi-calc__card-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.roi-calc__card-value--grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-calc__card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Bar chart */
.roi-calc__chart {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 28px 24px;
  margin-bottom: 28px;
}

.roi-calc__chart-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.roi-calc__bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roi-calc__bar-group {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  align-items: center;
  gap: 12px;
}

.roi-calc__bar-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.roi-calc__bar-track {
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.roi-calc__bar {
  height: 100%;
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.roi-calc__bar--before {
  background: rgba(255, 107, 157, 0.6);
}

.roi-calc__bar--after {
  background: var(--grad);
}

.roi-calc__bar-amount {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: right;
}

.roi-calc__chart-legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.roi-calc__chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.roi-calc__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.roi-calc__legend-dot--before {
  background: rgba(255, 107, 157, 0.6);
}

.roi-calc__legend-dot--after {
  background: var(--grad);
}

/* Gated / blurred section */
.roi-calc__gated {
  position: relative;
  min-height: 300px;
}

.roi-calc__blur-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

.roi-calc__gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.roi-calc__gate-card {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.roi-calc__gate-icon {
  margin-bottom: 16px;
}

.roi-calc__gate-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.roi-calc__gate-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.roi-calc__gate-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 194, 255, 0.04);
  border: 1px solid rgba(0, 194, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.25s ease;
}

.roi-calc__gate-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.roi-calc__gate-input:focus {
  border-color: rgba(0, 194, 255, 0.35);
}

.roi-calc__gate-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 16px;
  user-select: none;
}

.roi-calc__gate-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 194, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.roi-calc__gate-checkbox input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #00C2FF, #7B61FF);
  border-color: transparent;
}

.roi-calc__gate-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.roi-calc__gate-msg {
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.4;
}

/* Detail grid (unlocked) */
.roi-calc__detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roi-calc__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.roi-calc__detail-row:last-child {
  border-bottom: none;
}

.roi-calc__detail-row span:first-child {
  color: var(--text-soft);
}

.roi-calc__detail-row span:last-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
}

.roi-calc__detail-row--highlight span:last-child {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.05rem;
}

/* CTA at bottom */
.roi-calc__cta {
  margin-top: 36px;
  padding: 32px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  text-align: center;
}

.roi-calc__cta h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.roi-calc__cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Results reveal animation */
.roi-calc--results {
  animation: roiFadeIn 0.4s ease-out;
}

@keyframes roiFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .roi-calc {
    padding: 28px 20px;
  }

  .roi-calc__grid {
    grid-template-columns: 1fr;
  }

  .roi-calc__cards {
    grid-template-columns: 1fr;
  }

  .roi-calc__bar-group {
    grid-template-columns: 50px 1fr 80px;
    gap: 8px;
  }

  .roi-calc__slider-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .roi-calc__slider-value {
    text-align: left;
  }

  .roi-calc__gate-card {
    padding: 28px 20px;
  }

  .roi-calc__chart-legend {
    flex-direction: column;
    gap: 8px;
  }

  .roi-calc__detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Light theme overrides */
html.light .roi-calc {
  background: var(--surface);
  border-color: var(--border);
}

html.light .roi-calc__card {
  background: var(--surface-alt);
}

html.light .roi-calc__card--highlight {
  background: rgba(0, 144, 204, 0.04);
  border-color: rgba(0, 144, 204, 0.15);
}

html.light .roi-calc__chart {
  background: var(--surface-alt);
}

html.light .roi-calc__gate-card {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   Print Stylesheet
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #1a1a1a;
    font-size: 12pt;
  }

  .nav, .footer, .search-overlay, .lightbox, .cookie-consent,
  .back-to-top, .reading-progress, .resume-banner, .chatbot,
  .article__share, .article__toc, .hero, .stats,
  .lead-magnet, .blog-filters, .blog-pagination,
  .breadcrumbs, .grid-bg, .hero__overlay {
    display: none !important;
  }

  .article {
    padding: 0 !important;
  }

  .article__title {
    color: #000;
    font-size: 22pt;
  }

  .article__body {
    color: #1a1a1a;
    line-height: 1.6;
  }

  .article__body a {
    color: #1a1a1a;
    text-decoration: underline;
  }

  .article__body pre {
    background: #f5f5f5 !important;
    border: 1px solid #ddd;
    padding: 12px;
  }

  .article__body img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #000 !important;
    color: #000 !important;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="/"]::after {
    content: " (exponentialtech.ai" attr(href) ")";
  }

  a[href^="#"]::after,
  .btn::after {
    content: none;
  }
}


/* ============================================================
   Newsletter Opt-in Checkbox
   ============================================================ */
.lead-magnet__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 12px;
  line-height: 1.4;
  user-select: none;
}

.lead-magnet__checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 194, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.lead-magnet__checkbox input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #00C2FF, #7B61FF);
  border-color: transparent;
}

.lead-magnet__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lead-magnet__checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   AI Chatbot Widget
   ============================================================ */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  font-family: var(--font-body);
}

/* Toggle button */
.chatbot__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.chatbot__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 194, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.chatbot__toggle-icon--close {
  display: none;
}

.chatbot.open .chatbot__toggle-icon--chat {
  display: none;
}

.chatbot.open .chatbot__toggle-icon--close {
  display: block;
}

/* Chat window */
.chatbot__window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 500px;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 194, 255, 0.05);
}

.chatbot.open .chatbot__window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.08), rgba(123, 97, 255, 0.08));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot__header-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.chatbot__header-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}

.chatbot__header-close:hover {
  color: var(--text);
}

/* Messages area */
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chatbot__messages::-webkit-scrollbar {
  width: 5px;
}

.chatbot__messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot__messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Individual message */
.chatbot__msg {
  display: flex;
  max-width: 85%;
  animation: chatbotMsgIn 0.3s ease;
}

@keyframes chatbotMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot__msg--user {
  align-self: flex-end;
}

.chatbot__msg--assistant {
  align-self: flex-start;
}

.chatbot__msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}

.chatbot__msg--user .chatbot__msg-bubble {
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot__msg--assistant .chatbot__msg-bubble {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-soft);
}

.chatbot__link {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0,194,255,0.3);
  transition: text-decoration-color 0.15s;
}

.chatbot__link:hover {
  text-decoration-color: var(--cyan);
}

/* Typing indicator */
.chatbot__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  align-self: flex-start;
}

.chatbot__typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chatbotTyping 1.4s ease-in-out infinite;
}

.chatbot__typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot__typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatbotTyping {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Footer / input */
.chatbot__footer {
  padding: 12px 14px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot__input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.chatbot__input::placeholder {
  color: var(--text-faint);
}

.chatbot__input:focus {
  border-color: var(--cyan);
}

.chatbot__send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}

.chatbot__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chatbot__send:not(:disabled):hover {
  transform: scale(1.06);
}

.chatbot__send:not(:disabled):active {
  transform: scale(0.95);
}

.chatbot__powered {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

/* Move back-to-top button up when chatbot is present */
.chatbot ~ .back-to-top,
.chatbot ~ #backToTop {
  bottom: 92px;
}

/* Responsive: full-width on small screens */
@media (max-width: 480px) {
  .chatbot {
    bottom: 16px;
    right: 16px;
  }

  .chatbot__window {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
    transform-origin: bottom center;
  }

  .chatbot.open .chatbot__window {
    transform: translateY(0);
  }

  .chatbot.open .chatbot__toggle {
    display: none;
  }
}

/* ============================================================
   Service Detail Pages
   ============================================================ */

/* Card link wrapper (services grid) */
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card--link:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.08);
}

.card--link:hover .card__title {
  color: var(--cyan);
}

/* Service detail hero */
.service-detail__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.service-detail__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Deliverables list */
.service-detail__deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.service-detail__deliverable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  transition: border-color 0.25s ease;
}

.service-detail__deliverable:hover {
  border-color: var(--border-hover);
}

.service-detail__deliverable .diamond {
  margin-top: 4px;
  flex-shrink: 0;
}

/* Process steps */
.service-detail__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}

.service-detail__step:hover {
  border-color: var(--border-hover);
}

.service-detail__step-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.service-detail__step-content {
  flex: 1;
}

.service-detail__step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.service-detail__step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Audience list */
.service-detail__audience {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail__audience-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  transition: border-color 0.25s ease;
}

.service-detail__audience-item:hover {
  border-color: var(--border-hover);
}

.service-detail__audience-item .diamond {
  margin-top: 4px;
  flex-shrink: 0;
}

/* Responsive: service detail */
@media (max-width: 700px) {
  .service-detail__deliverables {
    grid-template-columns: 1fr;
  }

  .service-detail__step {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .service-detail__step-number {
    width: auto;
  }
}

/* ============================================================
   Audio Player (blog article narration)
   ============================================================ */
.article__audio {
  margin: 24px 0 32px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  transition: border-color 0.2s;
}

.audio-player:hover {
  border-color: var(--border-hover);
}

.audio-player__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.audio-player__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.25);
}

.audio-player__btn:active {
  transform: scale(0.96);
}

.audio-player__btn.playing {
  background: var(--grad-hover);
}

.audio-player__btn svg {
  display: block;
}

.audio-player__track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-player__progress {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.audio-player__time {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.audio-player__sep {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin: 0 -4px;
}

.audio-player__speed {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.15);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.audio-player__speed:hover {
  background: rgba(0, 194, 255, 0.15);
  color: #fff;
}

.audio-player__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .audio-player {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .audio-player__track {
    order: 2;
    flex-basis: 100%;
    margin: 4px 0;
  }

  .audio-player__label {
    order: 3;
    flex-basis: 100%;
    text-align: center;
    font-size: 0.75rem;
  }

  .audio-player__btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
