/* ============================================================
   SEO SERVICES PAGE
   Uses the same BrainX home palette: ink, white, red, red-light, paper
   ============================================================ */
:root {
  --color-ink: #0A0A0F;
  --color-white: #FFFFFF;
  --color-red: #E14B3A;
  --color-red-dark: #C73A2A;
  --color-red-light: #F05A4A;
  --color-red-tint: #F3E1DE;
  --color-red-tint-2: #EECEC8;
  --color-paper: #F7F6F4;
  --color-charcoal: #3E3F44;
  --color-line: #E6E5E2;
  --color-gray: #8A8B92;
  /* softer dark for hero/cta — not pure black */
  --color-surface-dark: #1C1C24;
  --color-surface-dark-2: #232330;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 20px 40px -16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 40px 60px -24px rgba(0, 0, 0, 0.12);
  --container-pad: clamp(20px, 4vw, 24px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-white);
  color: var(--color-ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.seo-page {
  background: var(--color-white);
  color: var(--color-ink);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 13px;
  position: relative;
}

.section-kicker::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-light));
}

.section-kicker-light { color: var(--color-red-tint-2); }
.section-kicker-light::after { background: linear-gradient(90deg, var(--color-red-light), #F7A072); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border-color: rgba(225, 75, 58, 0.6);
  box-shadow: 0 16px 30px -16px rgba(225, 75, 58, 0.55);
}

.btn-primary:hover { box-shadow: 0 20px 36px -16px rgba(225, 75, 58, 0.65); }

.btn-soft {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-soft:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.32); }

.center-heading {
  max-width: 710px;
  margin: 0 auto clamp(34px, 5vw, 54px);
  text-align: center;
}

.center-heading .section-kicker::after { margin-left: auto; margin-right: auto; }

.center-heading h2,
.intro-heading h2,
.benefits-content h2,
.types-heading h2,
.deliverables-card h2,
.seo-cta-box h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.center-heading h2 { max-width: 760px; margin: 0 auto; }

/* ============================================================
   HERO — minimal, softer dark, centered, compact
   ============================================================ */
.seo-hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-surface-dark), var(--color-surface-dark-2));
  color: var(--color-white);
  padding: clamp(72px, 8vw, 96px) 0 clamp(52px, 6vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-hero-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.breadcrumb-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
}

.breadcrumb-line a { transition: color 0.25s var(--ease); }
.breadcrumb-line a:hover { color: var(--color-white); }
.breadcrumb-line strong { color: var(--color-red-tint-2); font-weight: 700; }

.seo-hero-inner .section-kicker::after { margin-left: auto; margin-right: auto; }

.seo-hero-inner h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.seo-hero-inner p {
  max-width: 560px;
  margin: 18px auto 0;
  color: #C7C9D1;
  font-size: 15.5px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.hero-stat {
  flex: 1;
  max-width: 180px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.hero-stat:last-child { border-right: 0; }

.hero-stat strong {
  display: block;
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.hero-stat span {
  display: block;
  font-size: 12.5px;
  color: #A6A7B0;
}

/* ============================================================
   INTRO
   ============================================================ */
.seo-intro {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: var(--color-charcoal);
  font-size: 16px;
  line-height: 1.8;
}

.intro-copy p { margin: 0; }

/* ============================================================
   SEO PILLARS — dark banded panel with 4 cards
   ============================================================ */
.seo-pillars {
  padding: clamp(60px, 8vw, 90px) 0;
  background: linear-gradient(160deg, var(--color-surface-dark), var(--color-surface-dark-2));
  color: var(--color-white);
}

.seo-pillars .center-heading h2 { color: var(--color-white); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.pillar-card {
  background: var(--color-surface-dark);
  padding: 30px 24px;
  transition: background 0.3s var(--ease);
}

.pillar-card:hover {
  background: rgba(225, 75, 58, 0.14);
}

.pillar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red-light);
  margin-bottom: 14px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pillar-card p {
  margin: 0;
  color: #B7B8C0;
  font-size: 13.5px;
  line-height: 1.65;
}

/* ============================================================
   SERVICES — asymmetric bento grid
   ============================================================ */
.seo-services {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--color-paper);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}

.bento-card {
  grid-column: span 2;
  padding: 26px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.bento-card-lg {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--color-red-tint);
  border-color: transparent;
  justify-content: center;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 75, 58, 0.3);
  box-shadow: var(--shadow-card);
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--color-red-tint);
  color: var(--color-red);
}

.bento-card-lg .bento-icon {
  background: var(--color-white);
  width: 54px;
  height: 54px;
}

.bento-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card-lg .bento-icon svg { width: 26px; height: 26px; }

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.bento-card-lg h3 { font-size: 20px; }

.bento-card p {
  margin: 0;
  color: var(--color-charcoal);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.seo-benefits {
  padding: clamp(68px, 9vw, 100px) 0;
  background: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.benefits-content p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--color-charcoal);
  line-height: 1.8;
}

.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-charcoal);
  font-size: 15px;
}

.check-list span {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-red-tint);
  position: relative;
}

.check-list span::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--color-red);
  border-bottom: 2px solid var(--color-red);
  transform: rotate(-45deg);
}

.benefits-panel {
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(160deg, var(--color-surface-dark), var(--color-surface-dark-2));
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.panel-top,
.panel-stat {
  position: relative;
  z-index: 1;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 5px rgba(225, 75, 58, 0.18);
}

.panel-stat {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-stat:last-child { border-bottom: 0; padding-bottom: 0; }

.panel-stat > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-red-tint-2);
  background: rgba(255, 255, 255, 0.08);
}

.panel-stat strong { display: block; margin-bottom: 5px; }
.panel-stat p { margin: 0; color: #C7C9D1; font-size: 14px; line-height: 1.6; }

/* ============================================================
   PROCESS — chevron-connected steps
   ============================================================ */
.seo-process {
  padding: clamp(68px, 9vw, 100px) 0;
  background: var(--color-paper);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.step-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 26px 20px 24px;
  text-align: center;
}

.step-card:first-child { border-radius: 16px 0 0 16px; }
.step-card:last-child { border-radius: 0 16px 16px 0; }
.step-card:not(:first-child) { border-left: 0; }

.step-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -11px;
  width: 20px;
  height: 20px;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.step-card:last-child::after { display: none; }

.step-ghost {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 34px;
  color: var(--color-red-tint);
  line-height: 1;
  margin-bottom: 6px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
}

.step-card p {
  margin: 0;
  color: var(--color-charcoal);
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================
   FOCUS AREAS — minimal bordered list
   ============================================================ */
.seo-focus {
  padding: clamp(68px, 9vw, 100px) 0;
  background: var(--color-white);
}

.focus-wrapper {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.types-heading p {
  margin: 18px 0 0;
  color: var(--color-charcoal);
  line-height: 1.8;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 14.5px;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}

.focus-item:nth-child(odd) { border-right: 1px solid var(--color-line); padding-right: 20px; }
.focus-item:nth-child(even) { padding-left: 20px; }

.focus-item:hover {
  padding-left: 12px;
  color: var(--color-red);
}

.focus-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red);
  opacity: 0.7;
}

/* ============================================================
   DELIVERABLES
   ============================================================ */
.seo-deliverables {
  padding: clamp(68px, 9vw, 100px) 0;
  background: var(--color-paper);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.deliverables-card {
  border-radius: 22px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 30px 26px;
  box-shadow: 0 16px 36px -32px rgba(0, 0, 0, 0.4);
}

.deliverables-card.dark-card {
  background: linear-gradient(160deg, var(--color-surface-dark), var(--color-surface-dark-2));
  color: var(--color-white);
  border-color: transparent;
}

.deliverables-card p {
  margin: 18px 0 0;
  color: #C7C9D1;
  line-height: 1.75;
}

.deliverables-card h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.deliverables-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.deliverables-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-charcoal);
  font-size: 14.5px;
}

.deliverables-card li::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-red);
}

/* ============================================================
   CTA
   ============================================================ */
.seo-cta {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--color-white);
}

.seo-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 26px;
  color: var(--color-white);
  background: linear-gradient(160deg, var(--color-surface-dark), var(--color-surface-dark-2));
  box-shadow: var(--shadow-lg);
}

.seo-cta-box p {
  max-width: 680px;
  margin: 16px 0 0;
  color: #C7C9D1;
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .deliverables-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-card:nth-child(3)::after { display: none; }
  .step-card:nth-child(3) { border-radius: 0 16px 16px 0; }
  .step-card:nth-child(4) { border-radius: 16px 0 0 16px; border-left: 1px solid var(--color-line); }
}

@media (max-width: 920px) {
  .intro-grid,
  .benefits-grid,
  .focus-wrapper {
    grid-template-columns: 1fr;
  }

  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card,
  .bento-card-lg { grid-column: span 2; grid-row: auto; }

  .intro-heading,
  .types-heading { text-align: center; }
  .intro-heading .section-kicker::after,
  .types-heading .section-kicker::after { margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .step-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card { border-radius: 0 !important; border-left: 1px solid var(--color-line) !important; }
  .step-card::after { display: none; }
  .step-row { border-radius: 16px; overflow: hidden; border: 1px solid var(--color-line); }
  .step-row .step-card { border: 0; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }

  .focus-item:nth-child(odd) { border-right: 0; padding-right: 4px; }
  .focus-grid { grid-template-columns: 1fr; }

  .seo-cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .seo-cta-box .section-kicker::after { margin-left: auto; margin-right: auto; }
  .seo-cta-box .btn { width: 100%; }
}

@media (max-width: 560px) {
  .seo-hero { padding: 64px 0 40px; }
  .seo-hero-inner h1 { font-size: clamp(1.6rem, 8vw, 2.1rem); }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }

  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { border-right: 0; flex: 1 1 40%; }

  .breadcrumb-line { font-size: 11px; gap: 7px; }

  .pillar-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; }

  .deliverables-card,
  .benefits-panel {
    border-radius: 18px;
    padding: 22px 20px;
  }

  .center-heading h2,
  .intro-heading h2,
  .benefits-content h2,
  .types-heading h2,
  .deliverables-card h2,
  .seo-cta-box h2 {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}