/* ============================================================
   PANDA GROWTH — Page CSS
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
@import url("https://fonts.cdnfonts.com/css/nexa");
:root {
  --ink: #000000;
  --paper: #ffffff;
  --warm: #f5f0e8;
  --accent-warm: #e8ddd0;
  --muted: rgba(0, 0, 0, 0.55);
  --muted-strong: rgba(0, 0, 0, 0.65);
  --muted-light: rgba(255, 255, 255, 0.55);
  --line-soft: rgba(0, 0, 0, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nexa", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.tbps-growth-body {
  padding-top: 0 !important;
}

/* ── Astra heading colour overrides ─────────────────────────────────────────
   Astra sets h1–h4 colour globally; !important is needed in dark sections. */

/* Dark sections: hero, case, stack, cta, marquee */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero-title,
.case h2,
.case h3,
.stack h2,
.stack h3,
.stack .name,
.faq h2,
.cta h2,
.cta h3 {
  color: #fff !important;
}

/* Dark service cards */
.sc-card-dark .sc-title,
.sc-card-dark h3,
.sc-card-dark h4 {
  color: #fff !important;
}

/* Light service cards & light sections */
.sc-light .sc-title,
.sc-light h3,
.sc-light h4,
.section-title,
.ops-left h2,
.ops-step h4,
.faq-left h2,
.faq-q,
.metrics h2,
.services h2 {
  color: var(--ink) !important;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

/* Grid backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 40%,
    transparent 80%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

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

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.hero-ticker {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-ticker .tick {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-ticker .arr-up::before {
  content: "▲";
  font-size: 9px;
  color: var(--paper);
}

.hero-ticker .arr-dn::before {
  content: "▼";
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-ticker .val {
  color: var(--paper);
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  margin-top: auto;
}

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff !important;
}

.hero-title .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}

.hero-title .underline {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 400;
}

.hero-title .underline::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.05em;
  height: 0.18em;
  background: var(--paper);
  z-index: -1;
}

.hero-title .strike {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.45);
}

.hero-title .strike::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: var(--paper);
  transform: rotate(-2deg);
}

/* Live chart card (right column) */
.hero-chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.chart-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
}

.chart-head .live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.chart-stat-num {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.chart-stat-num .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}

.chart-stat-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.chart-svg {
  width: 100%;
  height: 140px;
  display: block;
}

.chart-foot {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
}

.hero-desc {
  grid-column: 1 / -1;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 28px;
}

.hero-desc p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.hero-desc p strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--paper);
}

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

.btn-light {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper);
}

/* ============ MARQUEE ============ */
.marquee {
  margin-top: 72px;
  overflow: hidden;
  padding: 22px 0;
  background: var(--paper);
  position: relative;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      #c0c0c0 15%,
      #333 50%,
      #c0c0c0 85%,
      transparent 100%
    )
    1;
  box-shadow:
    0 -6px 24px rgba(0, 0, 0, 0.07),
    0 6px 24px rgba(0, 0, 0, 0.1);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #fff, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  animation: mscroll 36s linear infinite;
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 500;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.marquee-track .ital {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.marquee-track .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes mscroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============ METRICS BAR ============ */
.metrics {
  background: var(--paper);
  padding: 80px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.metric {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line-soft);
  position: relative;
}

.metric:last-child {
  border-right: none;
}

.metric:not(:first-child) {
  padding-left: 32px;
}

.metric-num {
  font-family: "Fraunces", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.metric-num .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.55;
}

.metric-num .sm {
  font-size: 0.5em;
  vertical-align: super;
}

.metric-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.metric-sub {
  font-size: 13px;
  color: var(--muted-strong);
  line-height: 1.5;
  margin-top: 8px;
}

/* ============ SERVICES ============ */
.services {
  padding: 120px 0 60px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.section-title .ital {
  font-style: italic;
  font-weight: 400;
}

.section-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card.wide {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}

.sc-inner {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.sc-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.75;
}

.sc-title {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}

.sc-card-dark .sc-title,
.sc-paid .sc-title {
  color: #fff !important;
}

.sc-title .ital {
  font-style: italic;
  font-weight: 400;
}

.sc-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-strong);
  margin-top: 8px;
  max-width: 380px;
}

.sc-card-dark .sc-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* Card visuals */
.sc-paid {
  background: var(--ink);
  color: var(--paper);
}

.sc-card-dark {
  background: var(--ink);
  color: var(--paper);
}

.sc-light {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

/* Paid Ads: line chart */
.sc-paid-chart {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  width: 100%;
  z-index: 0;
}

.sc-paid-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* SEO: keyword cluster */
.sc-seo-cluster {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 270px;
}

.sc-seo-cluster::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  height: 210px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.055) 0%,
    transparent 68%
  );
  border-radius: 50%;
  pointer-events: none;
}

.sc-seo-cluster .kw {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
  animation: kw-float 3.2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.sc-seo-cluster .kw:nth-child(7) {
  animation-delay: 0s;
}
.sc-seo-cluster .kw:nth-child(8) {
  animation-delay: 0.55s;
}
.sc-seo-cluster .kw:nth-child(9) {
  animation-delay: 1.1s;
}
.sc-seo-cluster .kw:nth-child(10) {
  animation-delay: 1.7s;
}
.sc-seo-cluster .kw:nth-child(11) {
  animation-delay: 0.3s;
}

.sc-seo-cluster .kw.filled {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  animation: core-pulse 2.4s ease-in-out infinite;
  z-index: 1;
}

.sc-seo-cluster .line {
  position: absolute;
  height: 1px;
  background: var(--ink);
  opacity: 0.18;
  transform-origin: left center;
}

@keyframes kw-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    outline: 3px solid transparent;
    outline-offset: 2px;
  }
  50% {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.38);
    outline: 3px solid rgba(0, 0, 0, 0.1);
    outline-offset: 5px;
  }
}

/* Lifecycle: funnel */
.sc-funnel {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-funnel .row {
  background: var(--paper);
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink);
  font-weight: 600;
  justify-content: space-between;
}

.sc-funnel .row span:last-child {
  opacity: 0.6;
}

/* Content: doc stack */
.sc-docs {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
}

.sc-docs .doc {
  width: 180px;
  height: 200px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 20px;
  position: absolute;
}

.sc-docs .doc:nth-child(1) {
  transform: rotate(-6deg) translateX(-30px);
}

.sc-docs .doc:nth-child(2) {
  transform: rotate(2deg);
}

.sc-docs .doc:nth-child(3) {
  transform: rotate(8deg) translateX(30px);
}

.sc-docs .doc .h {
  height: 6px;
  background: var(--ink);
  border-radius: 2px;
  margin-bottom: 10px;
}

.sc-docs .doc .h.sm {
  width: 60%;
}

.sc-docs .doc .l {
  height: 3px;
  background: var(--ink);
  opacity: 0.3;
  border-radius: 2px;
  margin-bottom: 6px;
}

.sc-docs .doc .l.w {
  width: 70%;
}

/* Wide dashboard card */
.sc-dash {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 8px;
}

.sc-dash-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.sc-dash-right {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.sc-dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sc-dash-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sc-dash-row .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sc-dash-row .num {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sc-dash-row .delta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--paper);
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.sc-dash-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 50px;
}

.sc-dash-bars div {
  flex: 1;
  background: var(--paper);
  border-radius: 2px 2px 0 0;
  opacity: 0.8;
}

/* ============ CASE STUDY (RESULTS) ============ */
.case {
  margin: 120px 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.case::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.case-inner {
  position: relative;
  z-index: 2;
}

.case-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.case-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.case h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff !important;
}

.case h2 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.78;
}

.case-quote {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.case-quote .name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
  display: block;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.case-result {
  padding: 30px 24px 30px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.case-result:last-child {
  border-right: none;
}

.case-result:not(:first-child) {
  padding-left: 24px;
}

.case-result-num {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-result-num .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}

.case-result-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
}

.case-result-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* ============ PROCESS / OPERATING SYSTEM ============ */
.ops {
  padding: 60px 0 120px;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ops-left {
  position: sticky;
  top: 100px;
}

.ops-left h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.ops-left h2 .ital {
  font-style: italic;
  font-weight: 400;
}

.ops-left p {
  font-size: 16px;
  color: var(--muted-strong);
  line-height: 1.55;
  max-width: 380px;
  margin-top: 28px;
}

.ops-left .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.ops-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ops-step {
  padding: 36px 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 56px 1fr 30px;
  gap: 20px;
  align-items: start;
  transition: padding-left 0.3s ease;
  cursor: default;
}

.ops-step:hover {
  padding-left: 8px;
}

.ops-step:last-child {
  border-bottom: 1px solid var(--ink);
}

.ops-step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
}

.ops-step h4 {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.ops-step h4 .ital {
  font-style: italic;
  font-weight: 400;
}

.ops-step p {
  font-size: 14px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.ops-step .arr {
  font-family: "Fraunces", serif;
  font-size: 24px;
  color: var(--muted);
  padding-top: 6px;
  text-align: right;
  transition: transform 0.3s;
}

.ops-step:hover .arr {
  transform: translateX(6px);
  color: var(--ink);
}

/* ============ STACK ============ */
.stack {
  position: relative;
  background: #0a0a0a;
  color: var(--paper);
  padding: 100px 0;
  border-radius: 32px;
  overflow: hidden;
}

/* Grid lines — same pattern as hero but fading toward edges */
.stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    black 50%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    black 50%,
    transparent 100%
  );
}

/* Glow accents */
.stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 45% at 100% 100%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 35% at 0% 0%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.stack > .container {
  position: relative;
  z-index: 1;
}

.stack-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.stack-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff !important;
}

.stack-head h2 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}

.stack-head p {
  font-size: 17px;
  color: #fff;
  line-height: 1.5;
  max-width: 440px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.tool {
  aspect-ratio: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s;
  cursor: default;
}

.tool:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tool .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #fff;
}

.tool .name {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tool .name .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}

.tool .cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
}

/* ============ FAQ ============ */
.faq {
  padding: 120px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.faq-left h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.faq-left h2 .ital {
  font-style: italic;
  font-weight: 400;
}

.faq-left p {
  font-size: 15px;
  color: var(--muted-strong);
  line-height: 1.55;
  margin-top: 24px;
}

.faq-items {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--ink);
  padding: 24px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--ink);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  gap: 24px;
}

.faq-q .ital {
  font-style: italic;
  font-weight: 400;
}

.faq-q .plus {
  font-family: "Nexa", sans-serif;
  font-weight: 300;
  font-size: 28px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    margin-top 0.4s ease;
  font-size: 15px;
  color: var(--muted-strong);
  line-height: 1.6;
  max-width: 580px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  margin-top: 16px;
}

/* ============ CTA ============ */
.cta {
  background: #0a0a0a;
  color: var(--paper);
  border-radius: 32px;
  padding: 80px 60px;
  margin: 0 0 100px;
  position: relative;
  overflow: hidden;
}

/* Diagonal stripe texture */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
}

/* Corner glow accents */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 75% at 100% 100%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 35%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 60% at 0% 0%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 35%,
      transparent 65%
    );
  pointer-events: none;
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}

.cta h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff !important;
}

.cta h2 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.78;
}

.cta h2 u {
  text-decoration: none;
  border-bottom: 4px solid var(--paper);
  padding-bottom: 4px;
}

.cta-side p {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn .arr {
  transition: transform 0.2s;
}

.cta-btn:hover .arr {
  transform: translateX(4px);
}
/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    padding-top: 100px;
    padding-bottom: 50px;
  }

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

  .hero-desc {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-ticker {
    display: none;
  }

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

  .metric {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding-left: 0 !important;
    padding-right: 0;
  }

  .metric:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
    padding-right: 16px;
  }

  .metric:nth-child(even) {
    padding-left: 16px !important;
  }

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

  .service-card.wide {
    grid-column: span 1;
    aspect-ratio: 5/4;
  }

  .sc-dash {
    grid-template-columns: 1fr;
  }

  .case {
    padding: 50px 28px;
  }

  .case-head,
  .case-results {
    grid-template-columns: 1fr;
  }

  .case-result {
    padding-left: 0 !important;
    border-right: none;
  }

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

  .ops-left {
    position: static;
  }

  .stack-head {
    grid-template-columns: 1fr;
  }

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

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

  .cta {
    padding: 50px 28px;
  }

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

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Right column: chart on top, CTA at bottom — aligns to bottom of headline */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Nexa", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s;
  white-space: nowrap;
}
.hero-cta:hover {
  transform: translateY(-2px);
}
.hero-cta .arr {
  font-family: "Nexa", sans-serif;
  font-size: 16px;
  transition: transform 0.2s;
}
.hero-cta:hover .arr {
  transform: translateX(3px);
}

/* Live chart card (right column) */
.hero-chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.chart-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
}
.chart-head .live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.chart-stat-num {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.chart-stat-num .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}
.chart-stat-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
.chart-svg {
  width: 100%;
  height: 140px;
  display: block;
}
.chart-foot {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .marquee-track {
    animation-duration: 18s;
  }

  .hero {
    height: 100svh;
  }
  .hero-inner {
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .hero-top {
    margin-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(58px, 9vw, 48px);
  }
  .chart-svg,
  .chart-foot {
    display: none;
  }

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

  .metric:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .metric:nth-child(even) {
    padding-left: 0 !important;
  }

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

  .case {
    padding: 32px 20px;
  }

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

  .cta {
    padding: 40px 20px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .services {
    padding: 60px 0 40px;
  }

  .metrics {
    padding: 48px 0;
  }

  /* Hide all card decorative visuals — too cramped on mobile */
  .sc-paid-chart,
  .sc-seo-cluster,
  .sc-funnel,
  .sc-docs,
  .sc-dash-right {
    display: none;
  }

  /* All cards: reduce padding, allow taller height */
  .service-card {
    aspect-ratio: 4 / 3;
  }

  .sc-inner {
    padding: 20px;
  }

  /* Analytics wide card: make single column, show only left (text) */
  .sc-dash {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    padding: 0;
    height: 100%;
  }

  .sc-dash-left {
    padding: 20px;
    justify-content: space-between;
    height: 100%;
  }

  .hero-chart {
    padding: 16px;
  }

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

  .chart-stat-num {
    font-size: 24px;
  }
}
