/* ============================================================
   SKALDHAUS — Marketing Agency
   Design System & Stylesheet — Light Mode
   ============================================================ */

/* ---------- Google Fonts: Syne (headings) + Poppins (body) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Light Mode */
  --clr-bg:        #ffffff;
  --clr-surface:   #f5f7ff;
  --clr-surface-2: #eef1fb;
  --clr-glass:     rgba(108,99,255,0.04);
  --clr-border:    rgba(0,0,0,0.09);
  --clr-border-strong: rgba(108,99,255,0.2);

  --clr-primary:   #5b52f0;
  --clr-primary-g: #7c6cf5;
  --clr-accent:    #0099cc;
  --clr-accent2:   #e05656;
  --clr-gold:      #d4860a;

  --gradient-hero: linear-gradient(135deg, #5b52f0 0%, #0099cc 50%, #7c6cf5 100%);
  --gradient-card: linear-gradient(135deg, rgba(91,82,240,0.06) 0%, rgba(0,153,204,0.03) 100%);
  --gradient-cta:  linear-gradient(135deg, #5b52f0 0%, #7c6cf5 100%);

  --clr-text:      #0f172a;
  --clr-text-muted:#5a6480;
  --clr-text-dim:  #99a3b8;

  /* Typography */
  --font-body:     'Poppins', sans-serif;
  --font-heading:  'Poppins', sans-serif;

  /* Spacing */
  --section-pad:   110px;
  --container-max: 1200px;

  /* Radius */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     30px;

  /* Shadows */
  --shadow-sm:  0 2px 10px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.09);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.1);
  --shadow-pri: 0 8px 30px rgba(91,82,240,0.25);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.2s;
  --dur-med:     0.4s;
  --dur-slow:    0.7s;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-surface); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 99px; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: var(--section-pad) 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.badge::before {
  display: none;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, transparent, rgba(91, 82, 240, 0.4));
}

.section-label::after {
  background: linear-gradient(90deg, rgba(91, 82, 240, 0.4), transparent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--clr-text);
}

.section-sub {
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 56px;
  line-height: 1.75;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-pri);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(91,82,240,0.38);
}

.btn-ghost {
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-bg);
}

.btn-ghost:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--dur-med) var(--ease-out);
}

#navbar.scrolled {
  padding: 14px 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 88px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  margin: -16px 0;
}

.footer-logo {
  display: inline-block;
  line-height: 1;
  text-decoration: none;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  margin-top: -6px;
  margin-left: -4px;
  margin-bottom: 4px;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--dur-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--dur-med) var(--ease-out);
  border-radius: 99px;
}

.nav-links a:hover { color: var(--clr-text); }
.nav-links a:hover::after { width: 100%; }

/* Mega menu dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  display: none !important;
}

.nav-dropdown-trigger svg {
  transition: transform var(--dur-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  width: 960px;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Invisible bridge so hover doesn't break between trigger and panel */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

.mega-col {
  padding: 24px;
}

.mega-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-dim);
  margin-bottom: 16px;
}

/* Featured column */
.mega-featured {
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
}

/* Industries column */
.mega-industries {
  border-left: 1px solid var(--clr-border);
}

.mega-featured-card {
  padding: 20px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.mega-featured-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.mega-featured-icon svg {
  width: 20px;
  height: 20px;
}

.mega-featured-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.mega-featured-card p {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.mega-featured-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur-fast);
}

.mega-featured-link:hover {
  gap: 8px;
}

.mega-tools-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: all var(--dur-fast);
  width: 100%;
  justify-content: center;
}

.mega-tools-link:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  background: rgba(91,82,240,0.04);
}

.mega-tools-link::after {
  display: none !important;
}

/* Services grid column */
.mega-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Industries grid column */
.mega-industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-fast);
}

.mega-item:hover {
  background: var(--clr-surface);
}

/* Override nav-links a::after underline for mega items */
.mega-item::after {
  display: none !important;
}

.mega-item-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--clr-text-dim);
  margin-top: 2px;
  transition: all var(--dur-fast);
}

.mega-item:hover .mega-item-arrow {
  background: rgba(91,82,240,0.08);
  color: var(--clr-primary);
}

.mega-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1px;
}

.mega-item span {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  line-height: 1.35;
}

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--dur-med) var(--ease-out);
}

/* ---------- Hero ---------- */
#hero {
  min-height: calc(100vh - 10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding-top: 84px;
  padding-bottom: 0;
  background: var(--clr-bg);
}

#hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 16px;
  padding-bottom: 32px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 9s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91,82,240,0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,153,204,0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(124,108,245,0.1) 0%, transparent 70%);
  top: 40%;
  left: 38%;
  animation-delay: -5s;
  animation-duration: 11s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -18px) scale(1.04); }
  66%       { transform: translate(-18px, 14px) scale(0.96); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,82,240,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,82,240,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface);
  padding: 20px 0;
  overflow: hidden;
  z-index: 2;
  flex-shrink: 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.trust-strip .trust-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clr-text-dim);
  letter-spacing: 0.14em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* divider line between label and marquee */
.trust-strip-inner::after {
  display: none;
}

.trust-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: trust-scroll 28s linear infinite;
}

.trust-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-marquee-track .trust-logo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text-dim);
  opacity: 0.6;
  padding: 0 32px;
  white-space: nowrap;
  transition: opacity var(--dur-fast);
}

.trust-marquee-track .trust-logo:hover {
  opacity: 1;
  color: var(--clr-primary);
}

.trust-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-border);
  flex-shrink: 0;
}

.hero-badge {
  margin-bottom: 30px;
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--clr-text);
  animation: fade-up 0.8s 0.1s var(--ease-out) both;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--clr-text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
  font-weight: 400;
  animation: fade-up 0.8s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.3s var(--ease-out) both;
}

.hero-trust {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.4s var(--ease-out) both;
}

.trust-text {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trust-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-text-dim);
  opacity: 0.65;
  transition: opacity var(--dur-fast);
}

.trust-logo:hover { opacity: 1; }

/* Hero visual card */
.hero-visual {
  position: relative;
  width: 100%;
  z-index: 2;
  animation: fade-in-right 1s 0.3s var(--ease-out) both;
}

.hero-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hc-dot { width: 11px; height: 11px; border-radius: 50%; }
.hc-dot.red    { background: #ff5f57; }
.hc-dot.yellow { background: #ffbd2e; }
.hc-dot.green  { background: #28c840; }

/* ---------- Compact Hero Growth Journey Card ---------- */
.hero-compact-card {
  position: relative;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  box-shadow: 0 16px 36px -10px rgba(91,82,240,0.1);
  user-select: none;
}

.growth-graph-wrapper.compact-graph {
  height: 155px;
  margin-bottom: 14px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.outcome-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.outcome-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.outcome-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.outcome-arrow {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  font-weight: 600;
}

.outcome-target {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-text);
}

/* Dedicated Interactive Journey Section */
.interactive-journey-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 80px 0;
}

.journey-full-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

/* ---------- Full Interactive SEO Growth Journey Card ---------- */
.seo-journey-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: 0 24px 48px -12px rgba(91,82,240,0.12);
  user-select: none;
}

.journey-stage-header {
  margin-bottom: 16px;
}

.journey-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-primary);
  background: rgba(91,82,240,0.08);
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.journey-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0;
  transition: color 0.3s ease;
}

.growth-graph-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: grab;
}

.growth-graph-wrapper:active {
  cursor: grabbing;
}

.growth-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Node Labels on graph */
.graph-node-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  z-index: 2;
}

.graph-node-label.baseline-node {
  left: 12px;
  top: 10px;
}

.graph-node-label.target-node {
  right: 12px;
  top: 10px;
  border-color: rgba(91,82,240,0.3);
  background: rgba(245,247,255,0.95);
}

.graph-node-label strong {
  color: var(--clr-text);
  font-weight: 700;
  line-height: 1.2;
}

.graph-node-label span {
  color: var(--clr-text-muted);
  font-size: 0.65rem;
}

/* Draggable Favicon Handle */
.growth-drag-handle {
  position: absolute;
  top: 80%;
  left: 8%;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--clr-primary);
  box-shadow: 0 6px 18px rgba(91,82,240,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 10;
  transition: transform 0.1s ease-out, left 0.05s linear, top 0.05s linear;
  touch-action: none;
}

.growth-drag-handle:active {
  cursor: grabbing;
  transform: scale(1.12);
}

.handle-favicon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.handle-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--clr-primary);
  opacity: 0.5;
  animation: handle-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes handle-ping {
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.handle-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-text);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.handle-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: var(--clr-text) transparent transparent transparent;
}

/* Flip tooltip to bottom when handle is near the top edge */
.growth-drag-handle.tooltip-bottom .handle-tooltip {
  bottom: auto;
  top: calc(100% + 8px);
}

.growth-drag-handle.tooltip-bottom .handle-tooltip::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent var(--clr-text) transparent;
}

/* Slider Row */
.slider-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.slider-min-lbl, .slider-max-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  white-space: nowrap;
}

.growth-range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--clr-border);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.growth-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(91,82,240,0.4);
  transition: transform 0.15s ease;
}

.growth-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 4 Credibility Metric Cards Grid (2x2) */
.credibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.credibility-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.credibility-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91,82,240,0.3);
  box-shadow: var(--shadow-sm);
}

.cred-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cred-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cred-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clr-text);
  transition: color 0.25s ease;
}

.cred-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.cred-score-max {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text-dim);
}

/* Progress bar for Topical Authority */
.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: var(--clr-border);
  border-radius: 99px;
  margin: 6px 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #5b52f0);
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Status Pill for AI Visibility */
.status-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  display: inline-block;
  transition: all 0.3s ease;
}

.status-pill.stage-1 {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.status-pill.stage-2 {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.status-pill.stage-3 {
  background: rgba(91, 82, 240, 0.15);
  color: var(--clr-primary);
}

.cred-sub {
  font-size: 0.68rem;
  color: var(--clr-text-dim);
  margin-top: 3px;
  line-height: 1.35;
}

/* Stage Deliverables Checklist */
.stage-highlights-container {
  background: rgba(245, 247, 255, 0.6);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.highlights-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.highlights-list li {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.25s ease;
}

.chk-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(91, 82, 240, 0.12);
  color: var(--clr-primary);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Footnote / Trust message */
.sim-trust-footnote {
  text-align: center;
  font-size: 0.68rem;
  color: var(--clr-text-dim);
  border-top: 1px solid var(--clr-border);
  padding-top: 10px;
}

/* Trust Roadmap CTA Banner below visual */
.hero-roadmap-cta {
  margin-top: 36px;
  padding: 24px 32px;
  background: #ffffff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.roadmap-subtext {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

.roadmap-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-roadmap-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .roadmap-btn-group {
    flex-direction: column;
    width: 100%;
  }
  .roadmap-btn-group .btn {
    width: 100%;
    justify-content: center;
  }
  .credibility-grid {
    grid-template-columns: 1fr;
  }
}

.metric-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.metric-box {
  flex: 1;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.mini-chart {
  height: 76px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  animation: bar-grow 1.5s var(--ease-out) both;
}

@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

.bar:nth-child(1) { height: 30%; background: rgba(91,82,240,0.3); animation-delay: 0.1s; }
.bar:nth-child(2) { height: 50%; background: rgba(91,82,240,0.4); animation-delay: 0.2s; }
.bar:nth-child(3) { height: 40%; background: rgba(91,82,240,0.35); animation-delay: 0.3s; }
.bar:nth-child(4) { height: 68%; background: rgba(91,82,240,0.5); animation-delay: 0.4s; }
.bar:nth-child(5) { height: 55%; background: rgba(91,82,240,0.45); animation-delay: 0.5s; }
.bar:nth-child(6) { height: 80%; background: rgba(0,153,204,0.65); animation-delay: 0.6s; }
.bar:nth-child(7) { height: 92%; background: var(--clr-primary); animation-delay: 0.7s; }

.ai-mentions-row { display: flex; gap: 8px; flex-wrap: wrap; }

.ai-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid;
}

.ai-pill.active {
  background: rgba(0,153,204,0.08);
  border-color: rgba(0,153,204,0.3);
  color: var(--clr-accent);
}

.ai-pill.active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulse-dot 1.5s infinite;
}

.ai-pill.pending {
  background: var(--clr-surface);
  border-color: var(--clr-border);
  color: var(--clr-text-muted);
}

/* ---------- Services ---------- */
#services {
  background: var(--clr-surface);
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), var(--clr-accent), transparent);
  opacity: 0.4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  cursor: default;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: var(--clr-border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(91,82,240,0.06);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card.featured {
  background: linear-gradient(135deg, rgba(91,82,240,0.04), rgba(0,153,204,0.02));
  border-color: rgba(91,82,240,0.18);
  grid-column: span 2;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.icon-purple { background: rgba(91,82,240,0.1);  }
.icon-cyan   { background: rgba(0,153,204,0.1);   }
.icon-violet { background: rgba(124,108,245,0.1); }
.icon-red    { background: rgba(224,86,86,0.1);   }
.icon-gold   { background: rgba(212,134,10,0.1);  }

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-text);
}

.service-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  transition: all var(--dur-fast);
}

.service-card:hover .tag {
  border-color: rgba(91,82,240,0.25);
  color: var(--clr-primary);
  background: rgba(91,82,240,0.05);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--clr-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 22px;
  transition: gap var(--dur-fast);
}

.service-link:hover { gap: 12px; }

/* ---------- Stats ---------- */
#stats {
  background: var(--clr-bg);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  background: var(--clr-bg);
  padding: 44px 28px;
  text-align: center;
  position: relative;
  transition: background var(--dur-med);
  border-right: 1px solid var(--clr-border);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--clr-surface); }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Process ---------- */
#process {
  background: var(--clr-surface);
  position: relative;
  overflow: hidden;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent), var(--clr-primary-g));
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 2px solid rgba(91,82,240,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin: 0 auto 26px;
  transition: all var(--dur-med) var(--ease-spring);
  box-shadow: var(--shadow-sm);
}

.step:hover .step-num {
  background: var(--clr-primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-pri);
  border-color: var(--clr-primary);
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.step p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ---------- AI Flow Diagram ---------- */
#ai-ecosystem {
  background: var(--clr-surface);
  position: relative;
  overflow: hidden;
}

.flow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 60px 0 30px;
  position: relative;
}

/* Flow Stage */
.flow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  max-width: 220px;
}

/* Flow Node (circle icon) */
.flow-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  transition: all var(--dur-med) var(--ease-spring);
  cursor: default;
}

.flow-node svg {
  width: 28px;
  height: 28px;
}

.flow-node-user {
  background: linear-gradient(135deg, #e8e6ff, #d5d1ff);
  border: 2px solid rgba(91,82,240,0.2);
  color: var(--clr-primary);
}

.flow-node-ai {
  background: linear-gradient(135deg, #daf0f7, #c3e8f5);
  border: 2px solid rgba(0,153,204,0.2);
  color: #0099cc;
}

.flow-node-mention {
  background: linear-gradient(135deg, #e8e6ff, #f0e6ff);
  border: 2px solid rgba(124,108,245,0.2);
  color: #7c6cf5;
}

.flow-node-leads {
  background: linear-gradient(135deg, #d4f5e9, #b8efd9);
  border: 2px solid rgba(16,185,129,0.2);
  color: #10b981;
}

.flow-stage:hover .flow-node {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(91,82,240,0.18);
}

/* Labels */
.flow-stage-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-text);
  margin-top: 14px;
}

.flow-stage-sub {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Connector lines */
.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 80px;
  height: 72px;
  position: relative;
}

.flow-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-border), var(--clr-border-strong), var(--clr-border));
  border-radius: 2px;
  overflow: hidden;
}

.flow-particle {
  position: absolute;
  top: -2px;
  left: 0;
  width: 8px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  opacity: 0.8;
  animation: particle-flow 2s ease-in-out infinite;
}

@keyframes particle-flow {
  0%   { left: -8px; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { left: calc(100% + 8px); opacity: 0; }
}

@keyframes particle-flow-v {
  0%   { top: -8px; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { top: calc(100% + 8px); opacity: 0; }
}

.flow-arrow {
  position: absolute;
  right: -6px;
  width: 16px;
  height: 16px;
  color: var(--clr-text-dim);
}

.flow-arrow svg {
  width: 16px;
  height: 16px;
}

/* User query bubble */
.flow-query-bubble {
  margin-top: 16px;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--clr-text);
  font-style: italic;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow-sm);
  max-width: 200px;
}

.flow-query-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--clr-primary);
  margin-right: 4px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* AI pills */
.flow-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
  max-width: 200px;
}

.flow-ai-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.flow-ai-pill:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(91,82,240,0.05);
}

/* AI response card */
.flow-ai-response {
  margin-top: 16px;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  max-width: 240px;
  box-shadow: var(--shadow-sm);
}

.flow-response-header {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.flow-response-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-border-strong);
}

.flow-response-dot:nth-child(1) { background: #e05656; }
.flow-response-dot:nth-child(2) { background: #d4a30a; }
.flow-response-dot:nth-child(3) { background: #10b981; }

.flow-ai-response p {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--clr-text-muted);
  margin: 0;
}

.flow-brand-highlight {
  color: var(--clr-primary);
  font-weight: 700;
  background: rgba(91,82,240,0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Lead outcomes */
.flow-outcomes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
  max-width: 180px;
}

.flow-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text);
  padding: 8px 14px;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast);
}

.flow-outcome:hover {
  border-color: #10b981;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.flow-outcome svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}


/* ---------- Why Choose Us ---------- */
#why-us {
  background: var(--clr-surface);
}

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

.why-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-bg);
  text-align: center;
  transition: all var(--dur-med) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-border-strong);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(91,82,240,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.why-icon svg {
  width: 24px;
  height: 24px;
  color: var(--clr-primary);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.why-card p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ---------- Testimonials ---------- */
#testimonials { background: var(--clr-bg); overflow: hidden; }

.testimonials-track-wrapper {
  overflow: hidden;
  position: relative;
  margin: 0 -28px;
  padding: 20px 0;
}

.testimonials-track-wrapper::before,
.testimonials-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-track-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--clr-bg), transparent);
}

.testimonials-track-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--clr-bg), transparent);
}

.testimonials-track {
  display: flex;
  gap: 22px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.testimonials-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  width: 370px;
  flex-shrink: 0;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--dur-med);
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  border-color: var(--clr-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tc-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.tc-star {
  width: 14px;
  height: 14px;
  fill: var(--clr-gold);
}

.tc-quote {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--clr-text-muted);
  margin-bottom: 22px;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.tc-name  { font-weight: 700; font-size: 0.875rem; color: var(--clr-text); }
.tc-role  { font-size: 0.78rem; color: var(--clr-text-muted); }

/* ---------- CTA ---------- */
#cta {
  position: relative;
  overflow: hidden;
  background: var(--clr-surface);
  padding: 100px 0;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(91,82,240,0.07), transparent);
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.12;
  color: var(--clr-text);
}

.cta-inner p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-bottom: 44px;
  line-height: 1.75;
}

/* ---------- Contact ---------- */
#contact { background: var(--clr-bg); }

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

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
  color: var(--clr-text);
}

.contact-info p {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cd-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(91,82,240,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-icon svg {
  width: 20px;
  height: 20px;
  color: var(--clr-primary);
}

.cd-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.cd-text strong { font-weight: 600; font-size: 0.9rem; }

.contact-form {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--clr-text);
  transition: all var(--dur-fast);
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(91,82,240,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-dim);
}

/* ---------- Footer ---------- */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-top: 10px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
  margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 11px; }

.footer-col ul li a {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  transition: color var(--dur-fast);
}

.footer-col ul li a:hover { color: var(--clr-primary); }

.social-links,
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-link,
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.social-link svg,
.social-icon-btn svg {
  width: 16px;
  height: 16px;
  color: var(--clr-text-muted);
}

.social-link:hover,
.social-icon-btn:hover {
  background: rgba(91,82,240,0.08);
  border-color: rgba(91,82,240,0.3);
  transform: translateY(-2px);
}

.social-link:hover svg,
.social-icon-btn:hover svg { color: var(--clr-primary); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--clr-text-dim);
  font-size: 0.82rem;
}

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

.footer-bottom-links a {
  color: var(--clr-text-dim);
  font-size: 0.82rem;
  transition: color var(--dur-fast);
}

.footer-bottom-links a:hover { color: var(--clr-primary); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-text);
  transition: color var(--dur-fast);
}

.mobile-menu a:hover { color: var(--clr-primary); }

.mobile-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 1.5rem;
  color: var(--clr-text-muted);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  #hero .container { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .stats-grid .stat-item:nth-child(1),
  .stats-grid .stat-item:nth-child(2) { border-bottom: 1px solid var(--clr-border); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .flow-connector { width: 50px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-strip .trust-text { display: none; }
  .flow-diagram {
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px;
  }
  .flow-stage { max-width: 280px; }
  .flow-connector {
    width: 2px;
    height: 50px;
    flex-direction: column;
  }
  .flow-line {
    width: 2px;
    height: 100%;
  }
  .flow-particle {
    top: 0;
    left: -2px;
    width: 6px;
    height: 8px;
    animation: particle-flow-v 2s ease-in-out infinite;
  }
  .flow-arrow {
    right: auto;
    bottom: -6px;
    top: auto;
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(91,82,240,0.15);
  color: var(--clr-text);
}

/* ---------- Service Landing Pages Styles ---------- */
.page-hero {
  padding-top: 140px;
  padding-bottom: 70px;
  background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--clr-text-muted);
  transition: color var(--dur-fast);
}

.breadcrumb a:hover {
  color: var(--clr-primary);
}

.breadcrumb-sep {
  color: var(--clr-text-dim);
}

.breadcrumb-current {
  color: var(--clr-primary);
  font-weight: 600;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.page-hero-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.page-hero-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--clr-text);
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--clr-text);
  font-weight: 500;
}

.highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(91,82,240,0.1);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Feature grid / Deliverables */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.deliverable-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
}

.deliverable-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary-g);
  box-shadow: var(--shadow-md);
}

.deliverable-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr-primary);
}

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

.deliverable-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-container {
  max-width: 840px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--clr-bg);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.faq-item.active {
  border-color: var(--clr-primary-g);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast);
  color: var(--clr-text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--clr-primary);
  background: rgba(91,82,240,0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px 28px;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .deliverables-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   SERVICE PAGE ARCHITECTURE & CONVERSION COMPONENTS (skaldhaus.com alignment)
   ========================================================================== */

/* Eyebrow Badge with Glowing Indicator */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 82, 240, 0.08);
  border: 1px solid rgba(91, 82, 240, 0.18);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ba9e0;
  box-shadow: 0 0 10px #3ba9e0;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Trust Bar */
.trust-bar {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item-check {
  color: var(--clr-primary);
  font-weight: 700;
}

/* Outcomes Grid (3 Columns) */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.outcome-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--dur-normal);
  display: flex;
  flex-direction: column;
}

.outcome-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 82, 240, 0.3);
  box-shadow: var(--shadow-md);
}

.outcome-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.outcome-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.outcome-card p {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Process Steps Grid (4 Columns) */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.process-step-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--dur-normal);
}

.process-step-card:hover {
  border-color: rgba(91, 82, 240, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.process-step-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(91, 82, 240, 0.2);
  line-height: 1;
  margin-bottom: 14px;
}

.process-step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 10px;
}

.process-step-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* FAQ Details Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-details {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.faq-details[open] {
  border-color: rgba(91, 82, 240, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-summary h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1.4;
}

.faq-plus-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--clr-primary);
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}

.faq-details[open] .faq-plus-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 28px 24px 28px;
  color: var(--clr-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .outcomes-grid { grid-template-columns: 1fr; }
  .process-steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .process-steps-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 640px) {
  .deliverables-grid { grid-template-columns: 1fr; }
}

/* Featured Work / Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.portfolio-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 82, 240, 0.3);
  box-shadow: var(--shadow-md);
}

.portfolio-img-wrapper {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(91,82,240,0.06), rgba(59,169,224,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.portfolio-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 61, 145, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-card-content {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 10px;
}

.portfolio-result-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 82, 240, 0.08);
  border: 1px solid rgba(91, 82, 240, 0.2);
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.portfolio-link:hover {
  color: var(--clr-text-heading);
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CASE STUDY PAGE LAYOUT (TOC, Author Box, Content Grid)
   ========================================================================== */

.cs-hero {
  padding: 120px 0 48px;
  background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
}

.cs-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.cs-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 82, 240, 0.08);
  border: 1px solid rgba(91, 82, 240, 0.2);
  color: var(--clr-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--clr-text-heading);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cs-sub {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cs-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--clr-border);
  gap: 20px;
  flex-wrap: wrap;
}

.cs-author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #3ba9e0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.cs-author-info {
  display: flex;
  flex-direction: column;
}

.cs-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-text-heading);
}

.cs-author-role {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

.cs-meta-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* 2-Column Case Study Grid */
.cs-body-section {
  padding: 64px 0 96px;
}

.cs-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sticky Table of Contents */
.cs-toc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.cs-toc-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
}

.cs-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-toc-link {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
  line-height: 1.4;
}

.cs-toc-link:hover,
.cs-toc-link.active {
  color: var(--clr-primary);
  background: rgba(91, 82, 240, 0.08);
  font-weight: 600;
}

/* Main Article Content */
.cs-article {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--clr-text);
}

.cs-article section {
  margin-bottom: 56px;
  scroll-margin-top: 110px;
}

.cs-article h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clr-text-heading);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cs-article p {
  margin-bottom: 20px;
  color: var(--clr-text-muted);
}

/* Metrics Overview Box */
.cs-metrics-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.cs-metric-card {
  text-align: center;
}

.cs-metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.cs-metric-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Highlight Quote Callout */
.cs-callout {
  background: rgba(91, 82, 240, 0.05);
  border-left: 4px solid var(--clr-primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clr-text-heading);
  line-height: 1.7;
}

/* Author Box */
.author-box-card {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 64px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #3ba9e0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-box-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-text-heading);
  margin-bottom: 4px;
}

.author-box-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.author-box-bio {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.author-box-socials {
  display: flex;
  gap: 12px;
}

.author-box-socials a {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--dur-fast);
}

.author-box-socials a:hover {
  color: var(--clr-primary);
}

/* Responsive Case Study Grid */
@media (max-width: 992px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-toc-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 32px;
  }
  .cs-metrics-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cs-metrics-box {
    grid-template-columns: 1fr;
  }
  .author-box-card {
    flex-direction: column;
  }
}
