html {
  scroll-behavior: smooth;
}

/* ── Logo Carousel ── */
.logo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.05) 8%,
    rgba(0,0,0,0.3) 18%,
    black 32%,
    black 68%,
    rgba(0,0,0,0.3) 82%,
    rgba(0,0,0,0.05) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.05) 8%,
    rgba(0,0,0,0.3) 18%,
    black 32%,
    black 68%,
    rgba(0,0,0,0.3) 82%,
    rgba(0,0,0,0.05) 92%,
    transparent 100%
  );
}


.logo-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
  will-change: transform;
}

/* Fixed-size container — gives every logo the same visual footprint */
.logo-slot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 52px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transform: scale(var(--carousel-scale, 1));
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.logo-slot:hover {
  transform: translateY(-4px) scale(var(--carousel-scale, 1));
  border-color: rgba(13,148,136,0.15);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 24px rgba(13,148,136,0.1), 0 0 0 1px rgba(13,148,136,0.05);
}

/* Wider slot for horizontal / text-heavy logos */
.logo-slot--wide {
  width: 160px;
}

/* Taller slot for stacked icon+text logos */
.logo-slot--tall {
  height: 64px;
  width: 110px;
}

/* Extra-large slot for logos that need more space */
.logo-slot--xl {
  width: 200px;
  height: 68px;
}

/* Extra-extra-large for wide text-heavy logos */
.logo-slot--xxl {
  width: 260px;
  height: 80px;
}

/* Small slot for logos that are too dominant */
.logo-slot--sm {
  width: 110px;
  height: 44px;
}

.logo-slot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(0%) contrast(1) brightness(1);
  opacity: 0.85;
  transition: opacity 0.4s ease, filter 0.4s ease, mix-blend-mode 0.4s ease;
}

.logo-slot:hover img {
  filter: grayscale(0%) contrast(1) brightness(1);
  mix-blend-mode: normal;
  opacity: 1;
}

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

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

/* ── Logo wordmark ── */
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 200;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-child.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Dot grid pattern ── */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(13, 148, 136, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Gradient line accent ── */
.gradient-line {
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #e4c767);
  border-radius: 2px;
}

/* ── Card hover with glow ── */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(13, 148, 136, 0.05);
}

/* ── Float animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

/* ── Pill button with glow ── */
.btn-pill {
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35), 0 0 60px rgba(13, 148, 136, 0.1);
}
.btn-pill:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

/* ── CTA pattern overlay ── */
.cta-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

/* ── Letter spacing for headings ── */
h1, h2, h3 {
  letter-spacing: -0.025em;
}

/* ══════════════════════════════════════════════
   HERO AI DEMO - Phone Mockup Animation System
   ══════════════════════════════════════════════ */

/* Hero gradient mesh background */
.hero-mesh {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(13,148,136,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(228,199,103,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(13,148,136,0.12) 0%, transparent 35%),
    radial-gradient(ellipse at 70% 70%, rgba(13,148,136,0.06) 0%, transparent 50%),
    #1e293b;
}

/* ── Hero layered depth system ── */
.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 70%);
}

/* Connection lines in background */
@keyframes line-flow {
  0% { stroke-dashoffset: 800; }
  100% { stroke-dashoffset: 0; }
}
.hero-conn-line {
  stroke-dasharray: 8 12;
  animation: line-flow 20s linear infinite;
}
.hero-conn-line:nth-child(2) { animation-duration: 25s; animation-delay: -5s; }
.hero-conn-line:nth-child(3) { animation-duration: 18s; animation-delay: -8s; }
.hero-conn-line:nth-child(4) { animation-duration: 22s; animation-delay: -3s; }

/* ── Data input particles ── */
@keyframes flow-to-phone {
  0% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.8) rotate(var(--rot, 0deg));
  }
  12% { opacity: var(--peak-op, 0.85); }
  75% { opacity: 0.5; }
  100% {
    opacity: 0;
    transform: translate(0px, 0px) scale(0.3) rotate(0deg);
  }
}
.data-frag {
  position: absolute;
  top: 50%;
  left: 60%;
  animation: flow-to-phone var(--dur, 8s) var(--ease, ease-in-out) infinite;
  animation-delay: var(--delay, 0s);
  font-family: 'Plus Jakarta Sans', monospace;
  pointer-events: none;
}
.data-frag-cell {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 9px;
  color: rgba(203,213,225,0.9);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.data-frag-cell.frag-teal {
  border-color: rgba(13,148,136,0.35);
  color: rgba(94,234,212,0.9);
  box-shadow: 0 0 12px rgba(13,148,136,0.2), 0 2px 8px rgba(0,0,0,0.15);
}
.data-frag-cell.frag-amber {
  border-color: rgba(228,199,103,0.35);
  color: rgba(228,199,103,0.9);
  box-shadow: 0 0 12px rgba(228,199,103,0.2), 0 2px 8px rgba(0,0,0,0.15);
}
.data-frag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.data-frag-grid span {
  background: rgba(255,255,255,0.05);
  padding: 3px 5px;
  font-size: 7px;
  color: rgba(148,163,184,0.7);
}

/* ── Output visualization fragments ── */
@keyframes emerge-from-phone {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  20% { opacity: var(--peak-op, 0.8); }
  75% { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translate(var(--ex), var(--ey)) scale(var(--es, 0.9));
  }
}
.output-frag {
  position: absolute;
  top: 50%;
  left: 60%;
  animation: emerge-from-phone var(--dur, 10s) ease-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}
.output-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 10px rgba(13,148,136,0.08);
}

/* ── Phone 3D transforms ── */
.phone-3d-wrapper {
  perspective: 1000px;
  position: relative;
  z-index: 20;
}
.phone-3d {
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.15s ease-out;
  will-change: transform;
  position: relative;
  z-index: 20;
}
.phone-3d-shadow {
  position: absolute;
  bottom: -30px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.35) 0%, transparent 70%);
  filter: blur(20px);
  transform: rotateX(80deg);
}

/* Phone frame */
.demo-phone-frame {
  width: 280px;
  background: linear-gradient(135deg, #0a0f1a 0%, #111827 100%);
  border-radius: 2.5rem;
  padding: 10px;
  position: relative;
  z-index: 20;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Phone glow behind frame */
.demo-phone-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, rgba(13,148,136,0.12) 0%, transparent 65%);
  filter: blur(50px);
  animation: glow-breathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Animated gradient border on phone */
.demo-phone-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 2.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13,148,136,0.4), transparent 40%, transparent 60%, rgba(228,199,103,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Screen container */
.demo-screen {
  background: #111827;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  height: 500px;
}

/* Status bar (always visible) */
.demo-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 6px;
  position: relative;
  z-index: 30;
  background: #111827;
  font-size: 10px;
  color: #94a3b8;
}

/* Bottom nav (always visible) */
.demo-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(to top, #111827 80%, transparent);
  padding: 12px 16px 14px;
  display: flex;
  justify-content: space-around;
}
.demo-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  color: #475569;
  transition: color 0.3s;
}
.demo-nav-item.active {
  color: #0d9488;
}
.demo-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid currentColor;
  position: relative;
}
.demo-nav-item.active .demo-nav-dot {
  background: rgba(13,148,136,0.2);
  border-color: #0d9488;
}
.demo-nav-item.active .demo-nav-dot::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #0d9488;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/* ── Demo layers (stacked screens) ── */
.demo-layer {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  bottom: 50px;
  overflow: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.5s ease;
  opacity: 0;
  pointer-events: none;
}
.demo-layer.active {
  opacity: 1;
  pointer-events: auto;
}

/* Data layer blur-out when AI processes */
.demo-layer.blur-out {
  opacity: 0.15;
  filter: blur(4px);
  transform: scale(0.96);
}

/* ── Spreadsheet layer ── */
.data-table-header {
  display: grid;
  grid-template-columns: 30px 1fr 44px 40px;
  gap: 2px;
  padding: 6px 10px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.data-th {
  font-size: 7px;
  font-weight: 200;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-row {
  display: grid;
  grid-template-columns: 30px 1fr 44px 40px;
  gap: 2px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(51,65,85,0.3);
  transition: background 0.3s;
}
.data-row:nth-child(even) {
  background: rgba(30,41,59,0.3);
}
.data-cell {
  font-size: 8px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-cell.id {
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.risk-badge {
  font-size: 6px;
  font-weight: 200;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
}
.risk-high {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}
.risk-medium {
  background: rgba(228,199,103,0.15);
  color: #e4c767;
}
.risk-low {
  background: rgba(13,148,136,0.15);
  color: #5eead4;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Row count indicator */
.data-overflow {
  padding: 8px 10px;
  font-size: 7px;
  color: #475569;
  text-align: center;
  border-top: 1px solid #334155;
  background: rgba(30,41,59,0.5);
}

/* ── AI Processing layer ── */
.ai-prompt-bar {
  margin: 12px 10px 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.15), rgba(13,148,136,0.05));
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.ai-sparkle {
  color: #0d9488;
  font-size: 14px;
  animation: sparkle-pulse 2s ease-in-out infinite;
}
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.ai-typed-text {
  font-size: 9px;
  color: #e2e8f0;
  flex: 1;
  min-height: 12px;
}
.typing-cursor {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #0d9488;
  animation: cursor-blink 0.6s infinite;
  margin-left: 1px;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Processing visualization */
.ai-process-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

/* Thinking dots */
.thinking-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d9488;
  animation: dot-bounce 1.4s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.16s; }
.thinking-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-8px); opacity: 1; }
}

/* Data connection nodes SVG */
.connection-nodes {
  width: 200px;
  height: 140px;
  margin: 0 auto;
}
@keyframes draw-connection {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
.conn-line {
  stroke-dasharray: 200;
  animation: draw-connection 2s ease forwards;
}
.conn-line:nth-child(2) { animation-delay: 0.3s; }
.conn-line:nth-child(3) { animation-delay: 0.6s; }
.conn-line:nth-child(4) { animation-delay: 0.9s; }
@keyframes node-appear {
  0% { r: 0; opacity: 0; }
  100% { opacity: 1; }
}
.conn-node {
  animation: node-appear 0.4s ease forwards;
  opacity: 0;
}
.conn-node:nth-child(6) { animation-delay: 0.5s; }
.conn-node:nth-child(7) { animation-delay: 0.8s; }
.conn-node:nth-child(8) { animation-delay: 1.1s; }
.conn-node:nth-child(9) { animation-delay: 1.4s; }
.conn-node:nth-child(10) { animation-delay: 1.7s; }

/* Processing text */
.ai-process-text {
  font-size: 8px;
  color: #64748b;
  text-align: center;
  margin-top: 12px;
}
.ai-process-text span {
  color: #0d9488;
  font-weight: 600;
}

/* Shimmer bar */
.shimmer-bar {
  width: 160px;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
  margin: 10px auto 0;
}
.shimmer-bar::after {
  content: '';
  display: block;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #0d9488, transparent);
  animation: shimmer-sweep 1.5s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(250%); }
}

/* ── Dashboard layer ── */
.dash-header-bar {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #1e293b;
}
.dash-title {
  font-size: 11px;
  font-weight: 200;
  color: #e2e8f0;
}
.dash-subtitle {
  font-size: 7px;
  color: #64748b;
  margin-top: 2px;
}

/* KPI cards */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 10px 6px;
}
.dash-kpi {
  background: #1e293b;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.dash-kpi.kpi-teal { border-color: rgba(13,148,136,0.3); }
.dash-kpi.kpi-amber { border-color: rgba(228,199,103,0.3); }
.dash-kpi-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}
.dash-kpi-label {
  font-size: 7px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bar chart */
.dash-chart {
  margin: 8px 10px;
  background: #1e293b;
  border-radius: 10px;
  padding: 10px;
}
.dash-chart-title {
  font-size: 8px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 600;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.chart-bar-label {
  font-size: 7px;
  color: #94a3b8;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.chart-bar-track {
  flex: 1;
  height: 14px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo-layer.active .chart-bar-fill {
  transform: scaleX(1);
}
.chart-bar-fill.bar-high {
  background: linear-gradient(90deg, #ef4444, #f87171);
  transition-delay: 0.5s;
}
.chart-bar-fill.bar-med {
  background: linear-gradient(90deg, #d4a017, #e4c767);
  transition-delay: 0.7s;
}
.chart-bar-fill.bar-low {
  background: linear-gradient(90deg, #0d9488, #5eead4);
  transition-delay: 0.9s;
}
.chart-bar-value {
  font-size: 7px;
  color: #64748b;
  width: 20px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Activity list */
.dash-list {
  padding: 6px 10px;
}
.dash-list-header {
  font-size: 8px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}
.dash-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: #1e293b;
  border-radius: 8px;
  margin-bottom: 5px;
}
.dash-list-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
}
.dash-list-content {
  flex: 1;
  min-width: 0;
}
.dash-list-title {
  font-size: 8px;
  color: #e2e8f0;
  font-weight: 600;
}
.dash-list-meta {
  font-size: 6.5px;
  color: #475569;
  margin-top: 1px;
}
.dash-list-badge {
  font-size: 6px;
  font-weight: 200;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Dashboard items stagger animation */
.dash-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.demo-layer.active .dash-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

/* ── Floating data particles (decorative) ── */
@keyframes particle-orbit {
  0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}
.data-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0d9488;
  animation: particle-orbit 8s linear infinite;
}
.data-particle:nth-child(2) {
  animation-duration: 12s;
  animation-direction: reverse;
  background: #e4c767;
  width: 3px;
  height: 3px;
}
.data-particle:nth-child(3) {
  animation-duration: 10s;
  animation-delay: -3s;
  width: 2px;
  height: 2px;
}

/* ── Animated gradient border for accent cards ── */
@keyframes gradient-rotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ── Icon bounce on scroll reveal ── */
.icon-bounce.revealed {
  animation: icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes icon-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Pulsing data dot decorations ── */
@keyframes data-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.8); opacity: 0; }
}
.data-dot-pulse {
  position: relative;
}
.data-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: data-pulse 3s ease-in-out infinite;
}

/* ── Challenge section: drifting data fragments ── */
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(4px, -6px) rotate(0.5deg); }
  50% { transform: translate(-2px, 4px) rotate(-0.3deg); }
  75% { transform: translate(3px, 2px) rotate(0.2deg); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-5px, 3px) rotate(-0.5deg); }
  66% { transform: translate(3px, -4px) rotate(0.4deg); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(6px, 2px) rotate(0.3deg); }
  60% { transform: translate(-3px, -5px) rotate(-0.4deg); }
}

/* ── Approach section: KPI card pulse ── */
@keyframes card-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */

/* Desktop nav links with animated underline */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, #0d9488, #0f766e);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover {
  color: #0f172a;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link-active {
  color: #0d9488;
  font-weight: 600;
}
.nav-link-active::after {
  transform: scaleX(1);
}

/* Gradient CTA button */
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
  text-decoration: none;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

/* Scrolled state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  border-color: rgba(226, 232, 240, 0.6) !important;
}

/* Animated hamburger */
.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
}
.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1e293b;
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger-line-1 { top: 0; }
.hamburger-line-2 { top: 6px; }
.hamburger-line-3 { top: 12px; }

/* Hamburger → X animation */
.menu-open .hamburger-line-1 {
  top: 6px;
  transform: rotate(45deg);
}
.menu-open .hamburger-line-2 {
  opacity: 0;
  transform: scaleX(0);
}
.menu-open .hamburger-line-3 {
  top: 6px;
  transform: rotate(-45deg);
}

/* Full-screen mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-overlay.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.mobile-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Mobile nav links with stagger animation */
.mobile-nav-link {
  font-size: 1.75rem;
  font-weight: 200;
  color: #1e293b;
  padding: 0.75rem 2rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 0.08s + 0.15s);
}
.mobile-nav-link:hover {
  color: #0d9488;
}
.mobile-overlay.open .mobile-nav-link,
.mobile-overlay.open .nav-cta {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay.open .nav-cta {
  transition-delay: calc(var(--i, 0) * 0.08s + 0.15s);
}

/* ══════════════════════════════════════════════
   FLOATING PARTICLES
   ══════════════════════════════════════════════ */

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(var(--drift-x, 15px), calc(var(--drift-y, 20px) * -1));
  }
  50% {
    transform: translate(calc(var(--drift-x2, 10px) * -1), var(--drift-y2, 8px));
  }
  75% {
    transform: translate(var(--drift-x3, 8px), calc(var(--drift-y3, 12px) * -1));
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  animation: particle-float var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.particle-teal {
  background: #0d9488;
  opacity: 0.35;
  box-shadow: 0 0 8px 2px rgba(13, 148, 136, 0.4), 0 0 20px 4px rgba(13, 148, 136, 0.15);
}
.particle-amber {
  background: #e4c767;
  opacity: 0.3;
  box-shadow: 0 0 8px 2px rgba(228, 199, 103, 0.35), 0 0 20px 4px rgba(228, 199, 103, 0.12);
}
.particle-white {
  background: #ffffff;
  opacity: 0.25;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.3), 0 0 20px 4px rgba(255, 255, 255, 0.1);
}

/* Particle container */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* ── Ambient drifting data fragments (for CTA sections) ── */
@keyframes frag-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
  25% { transform: translate(var(--dx1, 8px), var(--dy1, -12px)) rotate(calc(var(--rot, 0deg) + 1deg)); }
  50% { transform: translate(var(--dx2, -6px), var(--dy2, 5px)) rotate(var(--rot, 0deg)); }
  75% { transform: translate(var(--dx3, 10px), var(--dy3, -4px)) rotate(calc(var(--rot, 0deg) - 0.5deg)); }
}
.cta-data-frag {
  position: absolute;
  pointer-events: none;
  animation: frag-drift var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  font-family: 'Plus Jakarta Sans', monospace;
  z-index: 1;
}
.cta-frag-cell {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 9px;
  color: rgba(203,213,225,0.5);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}
.cta-frag-cell.cta-frag-teal {
  border-color: rgba(13,148,136,0.25);
  color: rgba(94,234,212,0.5);
}
.cta-frag-cell.cta-frag-amber {
  border-color: rgba(228,199,103,0.25);
  color: rgba(228,199,103,0.5);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .demo-phone-frame {
    width: 240px;
  }
  .demo-screen {
    height: 420px;
  }
  .phone-3d {
    transform: rotateY(0deg) rotateX(0deg);
    animation: phone-breathe-mobile 6s ease-in-out infinite;
  }
  .data-frag, .output-frag {
    display: none;
  }
  .hero-grid {
    display: none;
  }
}
@keyframes phone-breathe-mobile {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg) translateY(0px); }
  50% { transform: rotateY(0deg) rotateX(0deg) translateY(-8px); }
}

/* ════════════════════════════════════════════════════════════════
   CoolCoding v2 — Drospecta-inspired forest/lime design system
   All new classes are prefixed `cc-` to avoid collision with
   the legacy hero-mesh / phone-3d styles above.
   ════════════════════════════════════════════════════════════════ */

:root {
  --forest: #102610;
  --forest-2: #0c1e0c;
  --forest-soft: #18361a;
  --lime: #c5f078;
  --lime-2: #b8e86a;
  --lime-soft: #e9f9d0;
  --cc-text: #0f172a;
  --cc-text-soft: #5b6470;
  --cc-bg: #f4f4ef;
  --cc-card: #edefeb;
  --cc-border: #e6e6e0;
  --cc-pill-mint: #e3f2c8;
  --cc-pill-peach: #f7e8d9;
  --cc-pill-blush: #f4dde0;
  --cc-card-shadow:
    0px 4px 50px 0px rgba(14, 15, 12, 0.05),
    0px 1px 0px 5px rgba(255, 255, 255, 1);
}

body { background: var(--cc-bg); color: var(--cc-text); }

/* ── Nav (white default; deep-green over hero on home page) ── */
.cc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
.cc-nav.nav-scrolled { box-shadow: 0 4px 24px rgba(16,38,16,0.06); }

body.home .cc-nav:not(.nav-scrolled) {
  background: var(--forest);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,0.06);
}
body.home .cc-nav:not(.nav-scrolled) .cc-brand-name { color: #fff; }
body.home .cc-nav:not(.nav-scrolled) .cc-brand img { filter: brightness(0) invert(1); }
body.home .cc-nav:not(.nav-scrolled) .cc-nav-link { color: rgba(255,255,255,0.85); }
body.home .cc-nav:not(.nav-scrolled) .cc-nav-link:hover,
body.home .cc-nav:not(.nav-scrolled) .cc-nav-link.active { color: #fff; }
body.home .cc-nav:not(.nav-scrolled) .cc-mobile-toggle span,
body.home .cc-nav:not(.nav-scrolled) .cc-mobile-toggle span::before,
body.home .cc-nav:not(.nav-scrolled) .cc-mobile-toggle span::after { background: #fff; }
body.home .cc-nav-spacer { display: none; }
.cc-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.cc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cc-brand img { height: 32px; width: auto; display: block; }
.cc-brand-name {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 200; font-size: 22px;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.cc-brand-name em { color: var(--forest); font-style: normal; }
.cc-nav-links { display: flex; align-items: center; gap: 36px; }
.cc-nav-link {
  font-size: 15px; font-weight: 500; color: var(--cc-text);
  text-decoration: none; transition: color .2s ease; position: relative;
}
.cc-nav-link:hover { color: var(--forest-soft); }
.cc-nav-link.active { color: var(--forest); font-weight: 600; }
.cc-nav-cta {
  background: var(--lime); color: var(--forest);
  font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 -1px 0 rgba(0,0,0,0.06);
  transition: transform .15s ease, background .2s ease, box-shadow .25s ease;
}
.cc-nav-cta:hover { background: var(--lime-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(184,232,106,0.4); }

.cc-mobile-toggle {
  display: none; width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.cc-mobile-toggle span {
  width: 22px; height: 2px; background: var(--forest);
  display: block; position: relative; transition: transform .25s, opacity .25s;
}
.cc-mobile-toggle span::before,
.cc-mobile-toggle span::after {
  content:""; position:absolute; left:0; width:22px; height:2px; background:var(--forest);
  transition: transform .25s;
}
.cc-mobile-toggle span::before { top: -7px; }
.cc-mobile-toggle span::after  { top:  7px; }
.cc-mobile-toggle.open span { background: transparent; }
.cc-mobile-toggle.open span::before { top: 0; transform: rotate(45deg); }
.cc-mobile-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

.cc-mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(255,255,255,0.98);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 80px 24px;
}
.cc-mobile-menu.open { display: flex; }
.cc-mobile-menu a { font-size: 28px; font-weight: 600; color: var(--forest); text-decoration: none; }
.cc-mobile-menu .cc-nav-cta { font-size: 18px; padding: 14px 28px; }

@media (max-width: 880px) {
  .cc-nav-inner { padding: 14px 20px; }
  .cc-nav-links { display: none; }
  .cc-mobile-toggle { display: flex; }
}

.cc-nav-spacer { height: 72px; }

/* ── Buttons ── */
.cc-btn-lime, .cc-btn-dark, .cc-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; font-weight: 600; font-size: 16px;
  padding: 14px 26px; text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .25s ease;
}
.cc-btn-lime { background: var(--lime); color: var(--forest); box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 -1px 0 rgba(0,0,0,0.06); }
.cc-btn-lime:hover { background: var(--lime-2); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(184,232,106,0.42); }
.cc-btn-dark { background: var(--forest); color: #fff; }
.cc-btn-dark:hover { background: var(--forest-soft); transform: translateY(-1px); }
.cc-btn-ghost { color: var(--cc-text); background: transparent; padding: 14px 4px; }
.cc-btn-ghost:hover { color: var(--forest); gap: 14px; }
.cc-btn-ghost svg { transition: transform .2s ease; }
.cc-btn-ghost:hover svg { transform: translateX(4px); }

.cc-btn-lime-lg { padding: 16px 32px; font-size: 17px; }

/* ── Hero (forest green) ── */
.cc-hero {
  position: relative;
  background: var(--forest);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 60px;
  min-height: 720px;
}
.cc-hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 56px 40px;
  position: relative;
}
.cc-hero-text { padding-top: 0; max-width: 560px; position: relative; z-index: 2; }
.cc-hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  font-weight: 200;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: #fff;
}
.cc-hero-sub {
  font-size: 19px; line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 460px;
  margin: 0 0 36px;
}
.cc-hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.cc-hero-quote {
  position: relative;
  margin: 80px 0 0;
  max-width: 460px;
  display: flex; align-items: center; gap: 14px;
  z-index: 2;
}
.cc-hero-quote-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), #88c060);
  display: inline-block; flex-shrink: 0;
}
.cc-hero-quote-text { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.45; }
.cc-hero-quote-text strong { display: block; color: #fff; font-weight: 600; margin-top: 4px; }

/* ── Hero dashboard mockup (absolute, bleeds off-screen right) ── */
.cc-dash {
  position: absolute;
  top: 100px;
  left: 52%;
  width: 880px;
  background: #fff;
  border-radius: 18px 0 0 18px;
  box-shadow: -30px 40px 100px rgba(0,0,0,0.38);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  color: var(--cc-text);
  z-index: 1;
}
.cc-dash-side {
  background: #fafaf6;
  border-right: 1px solid var(--cc-border);
  padding: 18px 14px;
  font-size: 13px;
}
.cc-dash-side-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--forest);
  padding: 6px 8px 18px;
}
.cc-dash-side-brand .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #000;
}
.cc-dash-side-label {
  font-size: 11px; text-transform: none;
  color: #97a09a; padding: 14px 8px 6px; font-weight: 500;
}
.cc-dash-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--cc-text); font-weight: 500;
  cursor: default;
}
.cc-dash-side-item .ico {
  width: 16px; height: 16px; opacity: 0.6;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.cc-dash-side-item.active {
  background: #eef0e8; color: var(--forest); font-weight: 600;
}
.cc-dash-side-item.active .ico { opacity: 1; color: var(--forest); }
.cc-dash-side-item .badge {
  margin-left: auto;
  background: var(--lime-soft); color: var(--forest);
  font-size: 11px; font-weight: 200;
  padding: 2px 7px; border-radius: 999px;
}

.cc-dash-main { padding: 16px 18px 22px; min-width: 0; }
.cc-dash-search {
  display: flex; align-items: center; gap: 8px;
  background: #f5f5f0; border-radius: 10px;
  padding: 9px 12px; color: #8b938d; font-size: 13px;
  margin-bottom: 14px;
}
.cc-dash-card {
  background: #fff; border: 1px solid var(--cc-border);
  border-radius: 12px; padding: 16px;
  margin-bottom: 14px;
}
.cc-dash-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cc-dash-card-title { font-weight: 600; font-size: 14px; color: var(--cc-text); }
.cc-dash-export {
  font-size: 12px; padding: 6px 10px; border-radius: 8px;
  background: #f5f5f0; color: var(--cc-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.cc-dash-legend { display: flex; gap: 14px; font-size: 11px; color: #6c7670; margin-bottom: 6px; }
.cc-dash-legend span::before {
  content: "•"; margin-right: 4px; font-size: 18px; line-height: 0; vertical-align: middle;
}
.cc-dash-legend .l-lime::before { color: var(--lime-2); }
.cc-dash-legend .l-dark::before { color: var(--forest); }

.cc-dash-chart { width: 100%; height: 190px; display: block; }

.cc-dash-table { font-size: 12px; color: var(--cc-text); }
.cc-dash-table-head {
  display: grid; grid-template-columns: 1.4fr 1.4fr 1fr;
  font-size: 11px; color: #97a09a; padding-bottom: 8px;
  border-bottom: 1px solid var(--cc-border);
}
.cc-dash-table-row {
  display: grid; grid-template-columns: 1.4fr 1.4fr 1fr;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--cc-border);
}
.cc-dash-table-row:last-child { border-bottom: 0; }
.cc-dash-person { display: flex; align-items: center; gap: 8px; }
.cc-dash-avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: linear-gradient(135deg, #c8d8b8, #a8c08c);
}
.cc-dash-person-name { font-weight: 600; font-size: 12px; }
.cc-dash-person-role { font-size: 10px; color: #97a09a; }
.cc-dash-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.cc-dash-tag.hot   { background: var(--cc-pill-peach); color: #b46c2b; }
.cc-dash-tag.warm  { background: var(--cc-pill-mint);  color: #4a6b1f; }
.cc-dash-tag.cold  { background: #e6eef5; color: #4a6079; }

/* ── Section helpers ── */
.cc-section { padding: 100px 28px; background: var(--cc-bg); }
.cc-section.alt { background: #f9f9f9; }
.cc-container { max-width: 1200px; margin: 0 auto; }
.top-0 { 
  padding-top: 0;
}
.cc-split .cc-section-head {
  text-align: center;
  max-width: 100%;        /* widen to fit 50/50 layout */
  margin: 0 auto 56px;
}

.cc-split .cc-section-head-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
  margin-top: 24px;
}

.cc-split.cc-section h2 {
  font-size: clamp(28px, 3.5vw, 44px);  /* scale down slightly for 50% width */
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--cc-text);
}

.cc-split .cc-section-sub {
  font-size: 17px;
  color: var(--cc-text-soft);
  line-height: 1.55;
  max-width: none;          /* remove the 560px cap — grid handles width */
  margin: 0;
}


.cc-section h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 200; letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 18px;
  color: var(--cc-text);
}
.cc-section-head {
  text-align: center; max-width: 720px; margin: 0 auto 56px;
}
.cc-pill-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--cc-border);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; color: var(--forest);
  margin-bottom: 22px;
}
.cc-pill-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime-2);
}
.cc-section-sub { font-size: 17px; color: var(--cc-text-soft); line-height: 1.55; max-width: 560px; margin: 0 auto; }

/* ── Feature cards (3-up) ── */
.cc-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cc-feature-card {
  background: var(--cc-card);
  border-radius: 22px; padding: 32px 28px; min-height: 280px;
  display: flex; flex-direction: column;
  box-shadow: var(--cc-card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cc-feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0px 14px 60px 0px rgba(14, 15, 12, 0.10),
    0px 1px 0px 5px rgba(255, 255, 255, 1);
}
.cc-feature-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--lime); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: auto;
}
.cc-feature-icon svg { width: 24px; height: 24px; }
.cc-feature-card h3 {
  font-size: 22px; font-weight: 500; margin: 64px 0 10px;
  color: var(--cc-text); letter-spacing: -0.01em;
}
.cc-feature-card p { color: var(--cc-text-soft); font-size: 15px; line-height: 1.55; margin: 0; }

/* ── Pricing ── */
.cc-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.cc-price-card {
  background: var(--cc-card);
  border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--cc-card-shadow);
}
.cc-price-card.featured {
  background: #fff;
  box-shadow:
    0px 24px 70px 0px rgba(14, 15, 12, 0.10),
    0px 1px 0px 5px rgba(197, 240, 120, 0.55);
}
.cc-price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--forest);
  font-size: 13px; font-weight: 200;
  padding: 6px 14px; border-radius: 999px;
}
.cc-price-head { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--cc-text); margin-bottom: 18px; }
.cc-price-head .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: #f5f5f0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.cc-price-amount { font-size: 42px; font-weight: 200; letter-spacing: -0.02em; color: var(--cc-text); }
.cc-price-amount span { font-size: 16px; font-weight: 500; color: var(--cc-text-soft); }
.cc-price-tag { color: var(--cc-text-soft); font-size: 14px; margin-top: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--cc-border); margin-bottom: 18px; }
.cc-price-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.cc-price-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cc-text); }
.cc-price-list li::before {
  content: "✓"; color: var(--forest); font-weight: 200; font-size: 14px;
  width: 18px; flex-shrink: 0;
}
.cc-price-card .cc-btn-lime, .cc-price-card .cc-btn-dark {
  width: 100%; justify-content: center; padding: 14px;
}
.cc-price-card .cc-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 14px; border-radius: 999px; border: 1px solid var(--cc-border);
  color: var(--cc-text); text-decoration: none; font-weight: 600;
  transition: border-color .2s ease, background .2s ease;
}
.cc-price-card .cc-btn-outline:hover { border-color: var(--forest); background: #f5f5f0; }

/* ── FAQ accordion ── */
.cc-faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.cc-faq-grid h2 { text-align: left; }
.cc-faq-list { display: flex; flex-direction: column; gap: 12px; }
.cc-faq {
  background: var(--cc-card);
  border-radius: 16px; padding: 0;
  overflow: hidden;
  box-shadow: var(--cc-card-shadow);
}
.cc-faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 600; color: var(--cc-text);
}
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after {
  content: "+"; width: 28px; height: 28px; border-radius: 50%;
  background: #f5f5f0; color: var(--forest); font-weight: 200; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.cc-faq[open] summary::after { content: "−"; }
.cc-faq-body { padding: 0 24px 22px; color: var(--cc-text-soft); font-size: 15px; line-height: 1.6; }

/* ── Testimonial cards (masonry-ish) ── */
.cc-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cc-testi {
  background: var(--cc-card);
  border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 22px;
  min-height: 240px;
  box-shadow: var(--cc-card-shadow);
}
.cc-testi p { color: var(--cc-text-soft); line-height: 1.55; margin: 0; font-size: 15px; }
.cc-testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.cc-testi-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, #c8d8b8, #a8c08c);
}
.cc-testi-name { font-weight: 600; font-size: 14px; color: var(--cc-text); }
.cc-testi-role { font-size: 13px; color: var(--cc-text-soft); }

/* ── Big text CTA section ── */
.cc-final-cta {
  text-align: center; padding: 120px 28px;
  background: var(--cc-bg);
}
.cc-final-cta h2 { 
  margin: 0 auto 36px; 
  max-width: 800px; 
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--cc-text);}

/* ── Footer (forest green) ── */
.cc-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.7);
  padding: 80px 28px 32px;
}
.cc-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}
.cc-footer .cc-brand-name { color: #fff; }
.cc-footer-blurb { color: rgba(255,255,255,0.55); margin-top: 18px; font-size: 14px; line-height: 1.6; max-width: 320px; }
.cc-footer-col h4 { color: #fff; font-size: 18px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.01em; }
.cc-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cc-footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.cc-footer-col a:hover { color: var(--lime); }
.cc-footer-bottom {
  max-width: 1200px; margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.5); font-size: 13px;
}
.cc-footer-bottom a { color: var(--lime); text-decoration: none; }
.cc-socials { display: flex; gap: 10px; margin-top: 22px; }
.cc-socials a {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: background .2s ease, color .2s ease;
}
.cc-socials a:hover { background: var(--lime); color: var(--forest); }

/* ── Page header (interior pages) ── */
.cc-page-head {
  background: var(--forest); color: #fff;
  padding: 120px 28px 90px;
  text-align: center;
}
.cc-page-head h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 200; letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 18px;
}
.cc-page-head p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; font-size: 18px; }

/* ── Two-column feature alt (big card with image right) ── */
.cc-feature-row {
  background: #fff; border: 1px solid var(--cc-border);
  border-radius: 24px; padding: 50px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center; margin-bottom: 26px;
}
.cc-feature-row.mint   { background: var(--cc-pill-mint); }
.cc-feature-row.peach  { background: var(--cc-pill-peach); }
.cc-feature-row.blush  { background: var(--cc-pill-blush); }
.cc-feature-row h3 {
  font-size: clamp(28px, 3vw, 40px); font-weight: 200;
  letter-spacing: -0.02em; line-height: 1.1; margin: 18px 0 16px;
  color: var(--cc-text);
}
.cc-feature-row p { color: var(--cc-text-soft); font-size: 16px; line-height: 1.6; margin: 0 0 28px; }

/* ── Contact form ── */
.cc-form { display: flex; flex-direction: column; gap: 16px; }
.cc-form label { font-weight: 600; font-size: 14px; color: var(--cc-text); }
.cc-form input, .cc-form textarea {
  background: #fff; border: 1px solid var(--cc-border);
  border-radius: 12px; padding: 14px 16px;
  font: inherit; color: var(--cc-text);
}
.cc-form input:focus, .cc-form textarea:focus { outline: 2px solid var(--lime); border-color: var(--forest); }

/* ── Mobile breakpoints ── */
@media (max-width: 1200px) {
  .cc-dash { left: 56%; width: 780px; top: 140px; }
}
@media (max-width: 1024px) {
  .cc-hero { padding: 60px 0 40px; min-height: auto; }
  .cc-hero-inner { padding: 40px 32px 32px; }
  .cc-hero-text { max-width: 100%; }
  .cc-dash {
    position: relative; left: auto; top: auto;
    width: calc(100% + 64px); margin: 40px -32px -60px auto;
    border-radius: 18px 0 0 18px;
    max-width: 760px;
  }
  .cc-feature-grid { grid-template-columns: 1fr 1fr; }
  .cc-pricing-grid { grid-template-columns: 1fr; }
  .cc-testi-grid { grid-template-columns: 1fr 1fr; }
  .cc-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cc-feature-row { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 720px) {
  .cc-hero-inner { padding: 24px 20px 24px; }
  .cc-hero h1 { font-size: 44px; }
  .cc-dash {
    width: calc(100% + 40px); margin: 32px -20px 0 0;
    grid-template-columns: 140px 1fr;
  }
  .cc-dash-side { padding: 14px 10px; }
  .cc-dash-side-item { padding: 8px; font-size: 12px; }
  .cc-hero-quote { margin: 32px 0 0; }
  .cc-section { padding: 64px 20px; }
  .cc-feature-grid { grid-template-columns: 1fr; }
  .cc-testi-grid { grid-template-columns: 1fr; }
  .cc-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .cc-footer-bottom { flex-direction: column; gap: 10px; }
}

/* ── 4-tier pricing cards (per new inspo) ── */
.cc-plan-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; align-items: stretch;
}
.cc-plan-card {
  background: var(--cc-card);
  border-radius: 22px; padding: 30px 28px 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--cc-card-shadow);
  min-height: 540px;
}
.cc-plan-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  align-self: flex-start;
  margin-bottom: 28px;
}
.cc-plan-pill.cyan   { background: #cdeaee; color: #2d6a72; }
.cc-plan-pill.pink   { background: #f0d8f0; color: #6b3b6f; }
.cc-plan-pill.amber  { background: #f8de8a; color: #7a5b1a; }
.cc-plan-pill.violet { background: #d8d0f0; color: #4b3d8e; }

.cc-plan-price {
  font-size: 56px; font-weight: 200;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--cc-text);
  display: flex; align-items: baseline; gap: 4px;
}
.cc-plan-price span { font-size: 17px; font-weight: 500; color: #97a09a; letter-spacing: 0; }
.cc-plan-tag { color: #97a09a; font-size: 15px; margin: 16px 0 22px; }
.cc-plan-divider { border-top: 1px solid #e8e8e2; margin: 0 0 22px; }

.cc-plan-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.cc-plan-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--cc-text); line-height: 1.45; }
.cc-plan-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #6dc5ce; flex-shrink: 0; margin-top: 7px;
}
.cc-plan-list.cyan   li::before { background: #6dc5ce; }
.cc-plan-list.pink   li::before { background: #d098d6; }
.cc-plan-list.amber  li::before { background: #ecc56b; }
.cc-plan-list.violet li::before { background: #8c7ec2; }

.cc-plan-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px;
  color: var(--cc-text); text-decoration: none;
  padding-top: 8px;
}
.cc-plan-cta .arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--cc-border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cc-plan-cta:hover .arrow { background: var(--forest); border-color: var(--forest); color: var(--lime); transform: translateX(2px); }
.cc-plan-cta:hover .arrow svg { stroke: var(--lime); }

/* Interactive 3-step slider for the Project tier */
.cc-plan-slider {
  margin: 4px 0 22px;
  user-select: none;
}
.cc-plan-slider-track {
  position: relative; height: 4px; background: #e6e6e0;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
}
.cc-plan-slider-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--cc-text);
  border-radius: 999px;
  width: 0%;
  transition: width .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-plan-slider-stops {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.cc-plan-slider-stops span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #d0d0c6;
  transition: background .2s ease;
}
.cc-plan-slider-stops span.is-active { background: var(--cc-text); }
.cc-plan-slider-knob {
  position: absolute; top: 50%; left: 0%;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cc-text);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: left .25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: grab;
}
.cc-plan-slider-knob:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.1); }
.cc-plan-slider-label { font-size: 12px; color: #97a09a; margin-top: 10px; }

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

/* ════════════════════════════════════════════════════════════════
   Docs layout (tech docs, sidebar + reading column)
   ════════════════════════════════════════════════════════════════ */

.cc-docs {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 100px;
  gap: 56px;
  align-items: start;
}

/* — Sidebar — */
.cc-docs-side {
  position: sticky; top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
}
.cc-docs-side::-webkit-scrollbar { width: 6px; }
.cc-docs-side::-webkit-scrollbar-thumb { background: #d8d8d0; border-radius: 999px; }

.cc-docs-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--cc-card);
  border-radius: 10px;
  padding: 10px 12px;
  color: #97a09a;
  margin-bottom: 18px;
  box-shadow: var(--cc-card-shadow);
}
.cc-docs-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font: inherit; color: var(--cc-text);
}
.cc-docs-side-section { margin-bottom: 22px; }
.cc-docs-side-h {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #97a09a;
  padding: 6px 12px 8px;
}
.cc-docs-side a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--cc-text);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 2px;
  transition: background .15s ease, color .15s ease;
}
.cc-docs-side a:hover { background: #ececdf; color: var(--forest); }
.cc-docs-side a.active {
  background: var(--forest);
  color: var(--lime);
}

/* — Content — */
.cc-docs-content {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cc-text);
}
.cc-docs-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--forest); background: var(--lime-soft);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.cc-docs-content h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 200; letter-spacing: -0.025em;
  line-height: 1.1; margin: 0 0 20px;
  color: var(--cc-text);
}
.cc-docs-content h2 {
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  padding-top: 16px;
  scroll-margin-top: 100px;
  color: var(--cc-text);
}
.cc-docs-content h3 {
  font-size: 22px; font-weight: 600;
  margin: 36px 0 12px; letter-spacing: -0.01em;
  scroll-margin-top: 100px;
  color: var(--cc-text);
}
.cc-docs-content p { margin: 0 0 18px; color: var(--cc-text); }
.cc-docs-content ul, .cc-docs-content ol {
  margin: 0 0 22px; padding-left: 1.4em;
}
.cc-docs-content li { margin-bottom: 8px; }
.cc-docs-content strong { font-weight: 500; color: var(--cc-text); }
.cc-docs-content em { color: var(--cc-text-soft); font-style: italic; }
.cc-docs-content a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.cc-docs-content a:hover { text-decoration-color: var(--forest); }
.cc-docs-content code {
  background: var(--cc-card);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--forest);
}
.cc-docs-content pre {
  background: var(--forest-2);
  color: #d8e6c4;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.cc-docs-content pre code { background: transparent; color: inherit; padding: 0; }
.cc-docs-content blockquote {
  background: var(--cc-card);
  border-left: 3px solid var(--lime-2);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 22px;
  box-shadow: var(--cc-card-shadow);
}
.cc-docs-content table {
  width: 100%; border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}
.cc-docs-content th, .cc-docs-content td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--cc-border);
}
.cc-docs-content th {
  font-weight: 200; color: var(--forest);
  background: var(--cc-card);
}

/* — Docs header (top of page) — */
.cc-docs-head {
  background: var(--forest); color: #fff;
  padding: 80px 28px 64px;
  text-align: left;
}
.cc-docs-head .cc-container { max-width: 1280px; }
.cc-docs-head h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 200; letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 14px;
}
.cc-docs-head p { color: rgba(255,255,255,0.72); font-size: 17px; margin: 0; max-width: 640px; }
.cc-docs-head .cc-pill-label { background: rgba(255,255,255,0.08); border-color: transparent; color: #fff; }
.cc-docs-head .cc-pill-label::before { background: var(--lime); }

/* — Docs landing categories grid — */
.cc-docs-cats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 32px;
}
.cc-docs-cat {
  background: var(--cc-card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--cc-card-shadow);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--cc-text);
  transition: transform .2s ease, box-shadow .25s ease;
}
.cc-docs-cat:hover { transform: translateY(-3px); }
.cc-docs-cat .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--lime); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cc-docs-cat h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; color: var(--cc-text); }
.cc-docs-cat .count { font-size: 13px; color: var(--cc-text-soft); margin-bottom: 12px; }
.cc-docs-cat .arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--forest); font-size: 14px;
}

/* — Pager (prev/next at bottom of doc) — */
.cc-docs-pager {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--cc-border);
}
.cc-docs-pager-card {
  background: var(--cc-card);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--cc-text);
  box-shadow: var(--cc-card-shadow);
  transition: transform .2s ease;
}
.cc-docs-pager-card:hover { transform: translateY(-2px); }
.cc-docs-pager-card .lbl { font-size: 12px; color: #97a09a; margin-bottom: 4px; }
.cc-docs-pager-card .title { font-weight: 600; }
.cc-docs-pager-card.next { text-align: right; }

/* Mobile sidebar toggle */
.cc-docs-mobile-toggle {
  display: none;
  background: var(--forest); color: var(--lime);
  border: 0; padding: 12px 18px;
  border-radius: 999px; font-weight: 600;
  margin-bottom: 24px;
  align-items: center; gap: 8px; cursor: pointer;
}

@media (max-width: 1024px) {
  .cc-docs { grid-template-columns: 1fr; gap: 0; padding: 24px 20px 80px; }
  .cc-docs-mobile-toggle { display: inline-flex; }
  .cc-docs-side {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(320px, 80vw);
    background: #fff;
    z-index: 80;
    max-height: 100vh;
    padding: 80px 18px 24px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 12px 0 32px rgba(0,0,0,0.12);
  }
  .cc-docs-side.open { transform: translateX(0); }
  .cc-docs-cats { grid-template-columns: 1fr; }
  .cc-docs-pager { grid-template-columns: 1fr; }
  .cc-docs-pager-card.next { text-align: left; }
}

/* ════════════════════════════════════════════════════════════════
   Mobile-screen carousel (Drospecta-inspired, auto-slide)
   ════════════════════════════════════════════════════════════════ */

.cc-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0 30px;
  -webkit-mask-image: linear-gradient(
    to right, transparent 0%, rgba(0,0,0,0.4) 6%, black 18%, black 82%, rgba(0,0,0,0.4) 94%, transparent 100%);
          mask-image: linear-gradient(
    to right, transparent 0%, rgba(0,0,0,0.4) 6%, black 18%, black 82%, rgba(0,0,0,0.4) 94%, transparent 100%);
}
.cc-carousel-track {
  display: flex; gap: 20px;
  align-items: center;
  width: max-content;
  transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 20px 50% 20px;
}
.cc-carousel-track.no-transition,
.cc-carousel-track.no-transition .cc-phone { transition: none !important; }
.cc-phone {
  flex-shrink: 0;
  width: 300px;
  background: #fff;
  border-radius: 30px;
  /* box-shadow: 0 24px 50px rgba(14,15,12,0.15), 0 3px 10px rgba(14,15,12,0.06); */
  padding: 12px;
  transform: scale(0.78);
  opacity: 0.55;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1), opacity .6s ease, box-shadow .6s ease;
  position: relative;
}
.cc-phone.is-center {
  transform: scale(1.08);
  opacity: 1;
  /* box-shadow: 0 50px 100px rgba(14,15,12,0.28), 0 6px 16px rgba(14,15,12,0.1); */
  z-index: 2;
}
.cc-phone-screen {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  height: 520px;
  position: relative;
  display: flex; flex-direction: column;
}
.cc-phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 8px;
  font-size: 13px; font-weight: 600;
  color: var(--cc-text);
}
.cc-phone-statusbar .icons {
  display: inline-flex; gap: 4px; align-items: center;
  font-size: 10px;
}

.cc-phone-hero {
  position: relative; height: 170px; margin: 6px 12px 0;
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  flex-shrink: 0;
  filter: hue-rotate(252deg) brightness(1.15);
}
.cc-phone-hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F44336;
    opacity: 0.7;
    z-index: 0;
}

.cc-phone-hero h4 {
  position: relative; z-index: 2;
  color: #fff; font-size: 18px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.15;
  margin: 0;
}
.cc-phone-hero .sub {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.85); font-size: 11px;
  margin-top: 3px;
}

.cc-phone-body {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; min-height: 0;
  overflow: hidden;
}
.cc-phone-title {
  font-size: 20px; font-weight: 200;
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--cc-text);
  margin: 0;
}
.cc-phone-desc {
  font-size: 13px; line-height: 1.5;
  color: var(--cc-text-soft);
  text-align: center;
  margin: 0;
}
.cc-phone-btn {
  display: block;
  background: var(--forest); color: #fff;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 12px;
  text-align: center; text-decoration: none;
  margin-top: auto;
}
.cc-phone-btn.ghost { background: transparent; color: var(--cc-text); border: 1px solid var(--cc-border); }
.cc-phone-btn.lime { background: var(--lime); color: var(--forest); }
.cc-phone-btn.danger { background: #d44a4a; color: #fff; }

/* Error log row inside phone */
.cc-phone-log {
  background: var(--cc-card); border-radius: 10px;
  padding: 8px 10px; font-size: 11px;
  display: flex; align-items: center; gap: 8px;
}
.cc-phone-log .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.cc-phone-log .dot.red    { background: #d44a4a; }
.cc-phone-log .dot.amber  { background: #e4b85a; }
.cc-phone-log .dot.green  { background: #6db84a; }
.cc-phone-log .meta { color: var(--cc-text-soft); font-size: 10px; }
.cc-phone-log .title { font-weight: 600; color: var(--cc-text); }

.cc-phone-stat {
  background: var(--cc-card); border-radius: 10px;
  padding: 9px 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.cc-phone-stat .lbl { font-size: 11px; color: var(--cc-text-soft); }
.cc-phone-stat .num { font-weight: 200; font-size: 18px; color: var(--cc-text); }
.cc-phone-stat .delta { font-size: 11px; font-weight: 600; }
.cc-phone-stat .delta.up { color: #d44a4a; }
.cc-phone-stat .delta.dn { color: #4a8a3a; }

.cc-phone-agent {
  background: var(--forest); color: #fff;
  border-radius: 12px; padding: 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.cc-phone-agent-ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 200; font-size: 14px; flex-shrink: 0;
}
.cc-phone-agent .who { font-size: 11px; opacity: 0.7; }
.cc-phone-agent .msg { font-size: 12px; line-height: 1.45; margin-top: 2px; }

.cc-phone-spark { display: block; width: 100%; height: 60px; }

/* Pagination dots */
.cc-carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 22px;
}
.cc-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(15,23,42,0.18);
  border: 0; padding: 0; cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.cc-carousel-dots button.is-active {
  background: var(--forest);
  width: 24px; border-radius: 999px;
}

/* ════════════════════════════════════════════════════════════════
   Stacking sticky feature rows
   ════════════════════════════════════════════════════════════════ */

.cc-stack {
  padding: 60px 0;
  position: relative;
}
.cc-stack-row {
  position: sticky;
  margin-bottom: 32px;
  will-change: transform;
  box-shadow: var(--cc-card-shadow);
}
.cc-stack-row:nth-child(1) { top: 110px; }
.cc-stack-row:nth-child(2) { top: 130px; }
.cc-stack-row:nth-child(3) { top: 150px; }
.cc-stack-row:nth-child(4) { top: 170px; }

/* Inner uses existing cc-feature-row styles */
@media (max-width: 1024px) {
  .cc-stack-row { position: relative; top: auto !important; }
}

/* ════════════════════════════════════════════════════════════════
   Testimonials — infinite vertical scroll with fade
   ════════════════════════════════════════════════════════════════ */

.cc-testi-marquee {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}
.cc-testi-col {
  position: relative;
  overflow: hidden;
}
.cc-testi-col-track {
  display: flex; flex-direction: column;
  gap: 22px;
  animation: cc-testi-scroll var(--dur, 38s) linear infinite;
  will-change: transform;
}
.cc-testi-col:nth-child(1) .cc-testi-col-track { animation-duration: 42s; }
.cc-testi-col:nth-child(2) .cc-testi-col-track { animation-duration: 36s; animation-direction: reverse; }
.cc-testi-col:nth-child(3) .cc-testi-col-track { animation-duration: 48s; }

@keyframes cc-testi-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (max-width: 1024px) {
  .cc-testi-marquee { grid-template-columns: 1fr 1fr; height: 560px; }
  .cc-testi-col:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .cc-testi-marquee { grid-template-columns: 1fr; height: 520px; }
  .cc-testi-col:nth-child(2) { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   Waitlist modal
   ════════════════════════════════════════════════════════════════ */

.cc-waitlist {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.cc-waitlist.is-open { display: flex; }
.cc-waitlist-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 30, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cc-wl-fade .2s ease both;
}
.cc-waitlist-modal {
  position: relative;
  width: 100%; max-width: 540px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(14,15,12,0.35), 0 4px 12px rgba(14,15,12,0.12);
  padding: 36px 36px 28px;
  animation: cc-wl-pop .35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cc-waitlist-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f5f5f0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cc-text-soft);
  transition: background .15s ease, color .15s ease;
}
.cc-waitlist-close:hover { background: #e6e6dd; color: var(--cc-text); }

.cc-waitlist .cc-pill-label { margin-bottom: 14px; }
.cc-waitlist h2 {
  font-size: 30px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 12px;
  color: var(--cc-text);
}
.cc-waitlist-sub {
  font-size: 15px; line-height: 1.55;
  color: var(--cc-text-soft);
  margin: 0 0 22px;
}

.cc-waitlist-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.cc-waitlist-form input[type="email"] {
  flex: 1; min-width: 200px;
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit; color: var(--cc-text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cc-waitlist-form input[type="email"]:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(197, 240, 120, 0.4);
}
.cc-waitlist-form button {
  background: var(--lime); color: var(--forest);
  border: 0; cursor: pointer;
  font: inherit; font-weight: 600;
  border-radius: 999px;
  padding: 14px 22px;
  transition: background .15s ease, transform .15s ease;
}
.cc-waitlist-form button:hover { background: var(--lime-2); transform: translateY(-1px); }
.cc-waitlist-form button:disabled { opacity: 0.6; cursor: progress; }

.cc-waitlist-meta {
  background: var(--cc-card);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--cc-text);
}
.cc-waitlist-meta strong { color: var(--forest); font-weight: 500; }
.cc-waitlist-progress {
  display: block;
  height: 6px; background: #e6e6e0;
  border-radius: 999px;
  margin: 12px 0 6px;
  overflow: hidden;
}
.cc-waitlist-progress > span {
  display: block; height: 100%;
  background: var(--forest);
  border-radius: inherit;
  transition: width .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-waitlist-counter { font-size: 12px; color: var(--cc-text-soft); }

.cc-waitlist-share { border-top: 1px solid var(--cc-border); padding-top: 18px; }
.cc-waitlist-share > span {
  display: block;
  font-size: 13px; color: var(--cc-text-soft);
  margin-bottom: 10px;
}
.cc-waitlist-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-waitlist-share-btns a,
.cc-waitlist-share-btns button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--cc-card); border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--cc-text); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.cc-waitlist-share-btns a:hover,
.cc-waitlist-share-btns button:hover { background: var(--forest); color: var(--lime); }
.cc-waitlist-share-btns .copied { background: var(--forest); color: var(--lime); }

.cc-waitlist-success {
  text-align: center;
  padding: 24px 0 8px;
  display: none;
}
.cc-waitlist.is-success .cc-waitlist-form,
.cc-waitlist.is-success .cc-waitlist-sub,
.cc-waitlist.is-success h2 { display: none; }
.cc-waitlist.is-success .cc-waitlist-success { display: block; }
.cc-waitlist-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest); font-weight: 200; font-size: 26px;
  margin: 0 auto 14px;
}
.cc-waitlist-success h3 {
  font-size: 22px; font-weight: 200;
  letter-spacing: -0.015em; margin: 0 0 8px;
  color: var(--cc-text);
}
.cc-waitlist-success p { color: var(--cc-text-soft); font-size: 15px; margin: 0 0 18px; }

@keyframes cc-wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-wl-pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

body.cc-waitlist-open { overflow: hidden; }

@media (max-width: 560px) {
  .cc-waitlist-modal { padding: 28px 22px 22px; border-radius: 20px; }
  .cc-waitlist h2 { font-size: 26px; }
  .cc-waitlist-form { flex-direction: column; }
  .cc-waitlist-form button { width: 100%; }
}

/* Cookie consent banner (homepage only) */
.cc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--forest, #102610);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cc-cookie-banner p {
  margin: 0;
  font-size: 14px;
  text-align: center;
}
