/* ===================================================
   STRAID - Homepage Styles
   Linear-inspired dark minimal aesthetic
   =================================================== */

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + var(--space-xl)) 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: relative;
  margin: var(--space-md) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1;
  transition: color var(--transition-base), border-color var(--transition-base), opacity 0.4s ease;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.scroll-indicator:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
}

.scroll-indicator:active {
  opacity: 0.7;
  transform: scale(0.92);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; opacity: 0.5; }
}

@media (max-height: 500px) {
  .scroll-indicator { display: none; }
}

/* ===== TOOLS BAR ===== */
.tools-bar {
  padding: var(--space-lg) 0;
  border-top: none;
  border-bottom: none;
  background: transparent;
  overflow: hidden;
  width: 100%;
}

.tools-bar-label {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.tools-logos-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.tools-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

@media (prefers-reduced-motion: no-preference) {
  .tools-logos {
    animation: tools-scroll 45s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl) var(--space-3xl);
  }

  .tools-logos .tool-logo-img:nth-child(n+17) {
    display: none;
  }
}

.tool-logo-img {
  height: 24px;
  width: auto;
  opacity: 0.35;
  flex-shrink: 0;
}

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

/* ===== PROBLEMS SECTION ===== */
.problems-section {
  padding: var(--space-5xl) 0;
  scroll-margin-top: var(--header-height);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.problem-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
}

.problem-card:hover {
  border-color: var(--border-hover);
}

.problem-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.problem-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.problem-card h3 {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.problem-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-tertiary);
}

/* ===== SCROLL SHOWCASE (Container Scroll Animation) ===== */
.scroll-showcase {
  padding: 0 0 var(--space-3xl);
}

.scroll-container {
  height: 55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-md);
}

.scroll-perspective {
  padding: var(--space-2xl) 0 var(--space-3xl);
  width: 100%;
  position: relative;
  perspective: 1000px;
}

.scroll-header-content {
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.scroll-header-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.scroll-card {
  max-width: 1000px;
  height: 28rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  background: var(--bg-elevated);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(var(--brand-blue-rgb), 0.03);
  transform-origin: top center;
  margin: -16px auto 0; /* Overlap header margin-bottom to tighten visual gap */
}

.scroll-card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-panel);
}

/* --- Mock Dashboard --- */
.mock-dash {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-dash-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mock-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #28c840; }

.mock-dash-title {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-success);
  flex-shrink: 0;
}

.mock-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-success);
  display: inline-block;
  animation: mock-pulse 2s ease-in-out infinite;
}

@keyframes mock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.mock-dash-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

/* KPI Row */
.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex-shrink: 0;
}

.mock-kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.mock-kpi-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.mock-kpi-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.mock-kpi-module {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.mock-kpi-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  display: block;
}

.mock-kpi-value {
  font-family: 'Satoshi', -apple-system, sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: block;
}

.mock-kpi-value span {
  font-size: 0.55em;
  color: var(--text-muted);
  font-weight: 500;
}

.mock-kpi-delta {
  font-size: 9px;
  font-weight: 600;
  margin-top: 1px;
  display: block;
}

.mock-kpi-delta.up {
  color: var(--brand-success);
}

.mock-kpi-desc {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
  display: block;
}

.mock-kpi--live .mock-kpi-value {
  color: var(--brand-success);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Charts */
.mock-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-shrink: 0;
}

.mock-chart {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
}

.mock-chart-title {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

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

.mock-grid-line {
  stroke: var(--border);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}

.mock-chart-line {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mock-chart-line--blue { stroke: var(--brand-blue); }
.mock-chart-line--green { stroke: var(--brand-success); }

.mock-bar--blue { fill: var(--brand-blue); opacity: 0.85; }
.mock-bar--indigo { fill: var(--brand-indigo); opacity: 0.7; }
.mock-bar--success { fill: var(--brand-success); opacity: 0.6; }

.mock-chart-legend {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: 8px;
  color: var(--text-muted);
}

.mock-chart-legend span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mock-chart-legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mock-chart-legend-dot--blue    { background: var(--brand-blue); }
.mock-chart-legend-dot--success { background: var(--brand-success); }
.mock-chart-legend-dot--indigo  { background: var(--brand-indigo); }

/* Activity Feed */
.mock-feed {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mock-feed-title {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.mock-feed-list {
  display: flex;
  flex-direction: column;
}

.mock-feed-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2.5px 0;
}

.mock-feed-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-feed-dot--blue    { background: var(--brand-blue); }
.mock-feed-dot--warning { background: #FFBD2E; }
.mock-feed-dot--success { background: var(--brand-success); }
.mock-feed-dot--green   { background: #10B981; }
.mock-feed-dot--indigo  { background: var(--brand-indigo); }

.mock-feed-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  flex-shrink: 0;
  font-size: 9px;
}

.mock-feed-text {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
}

/* Scroll showcase responsive */
@media (max-width: 768px) {
  .scroll-container {
    height: 40rem;
  }

  .scroll-card {
    height: 20rem;
    border-width: 2px;
    padding: 4px;
    border-radius: 16px;
  }

  .scroll-card-inner {
    border-radius: 12px;
  }

  .mock-dash-topbar {
    padding: 6px 10px;
  }

  .mock-dash-title {
    display: none;
  }

  .mock-dots span {
    width: 6px;
    height: 6px;
  }

  .mock-dash-content {
    padding: 6px;
    gap: 4px;
  }

  .mock-kpi-row {
    gap: 4px;
  }

  .mock-kpi {
    padding: 5px 7px;
  }

  .mock-kpi-header {
    display: none;
  }

  .mock-kpi-label {
    font-size: 8px;
  }

  .mock-kpi-value {
    font-size: clamp(12px, 1.5vw, 16px);
  }

  .mock-kpi-delta,
  .mock-kpi-desc {
    font-size: 7px;
  }

  .mock-chart {
    padding: 5px;
  }

  .mock-chart-title {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .mock-chart svg {
    height: 50px;
  }

  .mock-chart-legend {
    font-size: 7px;
    gap: 4px;
    margin-top: 2px;
  }

  .mock-feed {
    padding: 5px;
  }

  .mock-feed-title {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .mock-feed-row {
    padding: 1.5px 0;
  }

  .mock-feed-row:nth-child(n+6) {
    display: none;
  }

  .mock-feed-time,
  .mock-feed-text {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .scroll-container {
    height: 32rem;
  }

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

  .mock-feed-row:nth-child(n+5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-container {
    height: auto;
  }

  .scroll-perspective {
    perspective: none;
  }

  .scroll-card,
  .scroll-header-content {
    transform: none !important;
  }
}

/* ===== SERVICES TIMELINE (Aceternity-style) ===== */
.services-section {
  padding: var(--space-5xl) 0;
}

.services-timeline {
  position: relative;
}

/* Vertical timeline line (background track) */
.services-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}

/* Active progress line (JS-driven height via --tl-height) */
.services-timeline::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 24px;
  width: 2px;
  height: var(--tl-height, 0px);
  background: linear-gradient(to bottom, var(--accent), rgba(var(--brand-blue-rgb), 0.2));
  transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Timeline entry --- */
.tl-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-5xl);
  position: relative;
}

.tl-entry:last-child {
  padding-bottom: 0;
}

/* --- Left column: sticky title + marker --- */
.tl-left {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  align-self: start;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-top: 2px;
}

/* Node marker dot */
.node-marker {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-main);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  margin-left: -3px;
}

.tl-entry.active .node-marker {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--brand-blue-rgb), 0.4);
}

/* Sticky title text */
.tl-title {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  line-height: 24px;
  transition: color 0.4s ease;
}

.tl-entry.active .tl-title {
  color: var(--text-h);
}

/* --- Right column: scrollable content --- */
.tl-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tl-right h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.tl-right > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 640px;
}

/* --- Checkpoints (compact pills) --- */
.service-checkpoints {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkpoint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-surface-2);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: var(--radius-full);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.checkpoint-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-error);
  background: rgba(229, 57, 53, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.checkpoint-icon svg {
  width: 8px;
  height: 8px;
  overflow: visible;
  stroke: transparent;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke 0.15s ease, stroke-dashoffset 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

/* Checked state */
.checkpoint.checked .checkpoint-icon {
  border-color: var(--brand-success);
  background: var(--brand-success);
  box-shadow: 0 0 8px rgba(0, 212, 138, 0.3);
}

.checkpoint.checked .checkpoint-icon svg {
  stroke: #000;
  stroke-dashoffset: 0;
}

.checkpoint.checked {
  border-color: rgba(0, 212, 138, 0.18);
  color: var(--text-primary);
}

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: var(--space-5xl) 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.process-step {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
}

.process-step:hover {
  border-color: var(--border-hover);
}

.step-number {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.process-step h3 {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-tertiary);
}

.step-result {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.step-result strong {
  display: block;
  font-size: 11px;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xs);
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: var(--space-4xl) 0;
}

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

.stat-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 620;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: var(--space-5xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-context {
  font-size: 11px;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-quaternary);
  margin-bottom: var(--space-md);
}

.testimonial-card blockquote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: var(--space-xl);
}

.testimonial-card blockquote strong {
  color: var(--text-primary);
  font-weight: 550;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-primary);
}

.author-info span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--space-5xl) 0;
}

/* --- Contact Card (business card) --- */
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.4s ease;
}

/* Clip-path accent overlay — originates from the avatar blue ring */
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  clip-path: circle(38px at 60px 50%);
  transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.contact-card:hover::before,
.contact-card:focus-within::before {
  clip-path: circle(150% at 60px 50%);
}

.contact-card:hover {
  border-color: rgba(51, 145, 255, 0.3);
}

/* Avatar circle — black bg, blue outline */
.contact-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #000;
  box-shadow: 0 0 0 2px var(--accent);
  transition: box-shadow 0.4s ease;
}

.contact-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Vignette to fade photo edges to black */
.contact-card-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.6) 72%, #000 95%);
  border-radius: inherit;
  pointer-events: none;
}

.contact-card:hover .contact-card-avatar,
.contact-card:focus-within .contact-card-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 20px rgba(51, 145, 255, 0.5);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 2;
}

.contact-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-h);
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}

.contact-card:hover .contact-card-name,
.contact-card:focus-within .contact-card-name {
  color: #fff;
}

.contact-card-role {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.4s ease;
}

.contact-card:hover .contact-card-role,
.contact-card:focus-within .contact-card-role {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card-links {
  display: flex;
  gap: var(--space-md);
  margin-top: 4px;
}

.contact-card-links a {
  font-size: 13px;
  color: var(--accent);
  transition: color 0.4s ease;
}

.contact-card:hover .contact-card-links a,
.contact-card:focus-within .contact-card-links a {
  color: #fff;
}

.contact-card:hover .contact-card-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.contact-card-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
  border-radius: 2px;
}

/* Reduced motion: skip clip-path animation */
@media (prefers-reduced-motion: reduce) {
  .contact-card::before {
    transition: none;
    clip-path: none;
    background: transparent;
  }
  .contact-card:hover::before,
  .contact-card:focus-within::before {
    clip-path: none;
    background: var(--accent);
    opacity: 0.15;
  }
}

.consultation-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.consultation-content {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.consultation-content h2 {
  margin-bottom: var(--space-sm);
}

.consultation-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.consultation-form .btn {
  width: 100%;
  margin-top: var(--space-md);
  padding: 12px 24px;
}

.consultation-form .btn-interactive {
  width: 100%;
  margin-top: var(--space-md);
  padding: 12px 28px;
}

.checkbox-row.compact {
  margin-top: var(--space-md);
}

/* Form submission transition */
.consultation-form {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-success {
  text-align: center;
  padding: var(--space-2xl) 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-success svg {
  display: block;
  margin: 0 auto var(--space-md);
  width: 48px;
  height: 48px;
  color: var(--brand-success);
}

.form-success svg circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: form-success-circle 0.6s ease forwards;
}

.form-success svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: form-success-check 0.3s ease forwards 0.4s;
}

.form-success h3 {
  margin-bottom: var(--space-xs);
}

@keyframes form-success-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes form-success-check {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .consultation-form {
    transition: none;
  }
  .form-success {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .form-success svg circle,
  .form-success svg path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ===== SPOTLIGHT BORDER EFFECT ===== */
[data-glow] {
  --glow-border-width: 2px;
  --glow-size: 250px;
  --glow-highlight-size: 100px;
  --glow-hue-base: 270;
  --glow-hue-spread: 80;
  position: relative;
  border-color: transparent;
}

[data-glow]:hover {
  border-color: transparent;
}

/* Colored spotlight layer — border only via mask */
[data-glow]::before {
  content: "";
  position: absolute;
  inset: calc(var(--glow-border-width) * -1);
  border-radius: inherit;
  padding: var(--glow-border-width);
  background: radial-gradient(
    var(--glow-size) var(--glow-size)
      at var(--glow-x, -999px) var(--glow-y, -999px),
    hsl(calc(var(--glow-hue-base) + var(--glow-xp, 0.5) * var(--glow-hue-spread)) 90% 65%) 0%,
    transparent 100%
  );
  filter: brightness(1.8);
  pointer-events: none;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* White specular highlight layer — tighter, brighter */
[data-glow]::after {
  content: "";
  position: absolute;
  inset: calc(var(--glow-border-width) * -1);
  border-radius: inherit;
  padding: var(--glow-border-width);
  background: radial-gradient(
    var(--glow-highlight-size) var(--glow-highlight-size)
      at var(--glow-x, -999px) var(--glow-y, -999px),
    rgba(255, 255, 255, 0.8) 0%,
    transparent 100%
  );
  pointer-events: none;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Activate when pointer is on-page (JS adds .glow-active) */
[data-glow].glow-active::before,
[data-glow].glow-active::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-glow]::before,
  [data-glow]::after {
    display: none;
  }
  [data-glow] {
    border-color: var(--border);
  }
  .checkpoint-icon svg {
    stroke-dasharray: unset;
    stroke-dashoffset: unset;
  }
}

@media (hover: none) {
  [data-glow]::before,
  [data-glow]::after {
    display: none;
  }
  [data-glow] {
    border-color: var(--border);
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: calc(var(--z-sticky) - 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-menu-link {
  font-size: 1.5rem;
  font-weight: 550;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.mobile-menu-link:hover {
  color: var(--accent);
}

.mobile-menu-cta {
  margin-top: var(--space-md);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: var(--z-fixed);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tl-entry {
    grid-template-columns: 180px 1fr;
    gap: var(--space-2xl);
  }

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

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

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

/* ===== INLINE CTA (mid-page email capture) ===== */
.inline-cta {
  max-width: 640px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-blue-rgb), 0.45), transparent);
  pointer-events: none;
}

.inline-cta::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(var(--brand-blue-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.inline-cta-content {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.inline-cta-heading {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-h);
  margin-bottom: var(--space-sm);
}

.inline-cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto;
}

.inline-cta-form {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.inline-cta-field-group {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.inline-cta-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-h);
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base);
}

.inline-cta-input::placeholder {
  color: var(--text-tertiary);
}

.inline-cta-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px var(--accent);
}

.inline-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition-base), opacity var(--transition-base);
}

.inline-cta-btn:hover {
  background: var(--accent-hover);
}

.inline-cta-btn:active {
  opacity: 0.85;
}

.inline-cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px var(--accent);
}

.inline-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.inline-cta-btn:hover svg {
  transform: translateX(2px);
}

.inline-cta-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.inline-cta-consent {
  font-size: 12px;
  color: var(--text-quaternary);
  line-height: 1.5;
  margin-top: var(--space-sm);
}

.inline-cta-consent a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-cta-success[hidden] {
  display: none;
}

.inline-cta-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.inline-cta-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.inline-cta-success svg {
  color: var(--brand-success);
  flex-shrink: 0;
}

.inline-cta-success span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-h);
}

@media (max-width: 480px) {
  .inline-cta {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .inline-cta-field-group {
    flex-direction: column;
  }

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

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-height) + var(--space-lg)) 0 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .tools-bar {
    padding: var(--space-lg) 0;
  }

  .tool-logo-img {
    height: 20px;
  }

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

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

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) var(--space-md);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: var(--space-3xl) 0;
  }

  .services-section {
    padding: var(--space-3xl) 0;
  }

  .tl-entry {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-3xl);
  }

  .tl-left {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
  }

  .node-marker {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .tl-title {
    font-size: 13px;
  }

  .services-timeline::before,
  .services-timeline::after {
    display: none;
  }

  .checkpoint {
    font-size: 12px;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: 20px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-height) + var(--space-md)) 0 0;
  }

  .hero-subtitle {
    font-size: 15px;
  }
}
