/* ============================================
   NextStride — Premium Agency Website
   ============================================ */

:root {
  --bg: #000000;
  --bg-alt: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-subtle: rgba(255, 255, 255, 0.5);
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-subtle: rgba(59, 130, 246, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.21s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --container: 1200px;

  /* Spacing system — 8px base */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --section-y: var(--space-8);
  --section-header-gap: var(--space-6);
  --card-gap: var(--space-3);
  --container-x: clamp(16px, 4vw, 32px);
}

@media (max-width: 480px) {
  :root {
    --container-x: 16px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  min-width: 0;
}

main {
  width: 100%;
  min-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
}

p, li, label, cite, blockquote {
  color: inherit;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg,
iframe {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--container-x);
  min-width: 0;
}

/* ---- Noise overlay ---- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */

.text-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #93C5FD 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
}

@supports (-webkit-background-clip: text) {
  .section-title em {
    background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.65));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
}

.btn-full { width: 100%; }

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  min-width: 0;
  gap: var(--space-2);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo--nav .logo-img {
  height: 44px;
  max-width: min(160px, 40vw);
}

.logo--footer .logo-img {
  height: 72px;
  max-width: 240px;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  padding: 8px 16px !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-8);
  overflow: hidden;
}

.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: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.hero-copy {
  max-width: 560px;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: var(--space-4);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: left; }

.stat-value {
  display: block;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.6875rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero dashboard visual */

.hero-visual {
  position: relative;
  perspective: 1200px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.hero-visual.is-active .hero-glow {
  opacity: 1;
}

.dashboard-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(59, 130, 246, 0.06);
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.12s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-visual.is-active .dashboard-card {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 96px rgba(0, 0, 0, 0.5),
    0 0 64px rgba(59, 130, 246, 0.14);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-dots span:first-child { background: #EF4444; opacity: 0.7; }
.dashboard-dots span:nth-child(2) { background: #F59E0B; opacity: 0.7; }
.dashboard-dots span:nth-child(3) { background: #22C55E; opacity: 0.7; }

.dashboard-title {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-family: 'SF Mono', 'Fira Code', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dashboard-body { padding: clamp(14px, 3vw, 20px); }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.metric-card:hover,
.metric-card.is-active {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
  transform: translateY(-2px);
}

.metric-card.is-active .metric-value {
  color: var(--accent-light);
}

.metric-label {
  display: block;
  font-size: 0.625rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.metric-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  animation: barGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.dashboard-chart {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 10px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: rgba(59, 130, 246, 0.15);
  border-radius: 3px 3px 0 0;
  transition: background var(--transition), box-shadow var(--transition);
  animation: barRise 0.9s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  cursor: pointer;
}

.chart-bar:nth-child(1) { animation-delay: 0.15s; }
.chart-bar:nth-child(2) { animation-delay: 0.22s; }
.chart-bar:nth-child(3) { animation-delay: 0.29s; }
.chart-bar:nth-child(4) { animation-delay: 0.36s; }
.chart-bar:nth-child(5) { animation-delay: 0.43s; }
.chart-bar:nth-child(6) { animation-delay: 0.5s; }
.chart-bar:nth-child(7) { animation-delay: 0.57s; }

@keyframes barRise {
  from { height: 0; opacity: 0; }
}

.chart-bar.active,
.chart-bar:hover {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
}

.chart-label {
  font-size: 0.6875rem;
  color: var(--text-subtle);
}

.dashboard-feed { display: flex; flex-direction: column; gap: 8px; }

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: feedIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  transition: background var(--transition), border-color var(--transition);
}

.feed-item.is-new {
  animation: feedPulse 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

@keyframes feedPulse {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.feed-item:nth-child(1) { animation-delay: 0.7s; }
.feed-item:nth-child(2) { animation-delay: 0.85s; }
.feed-item:nth-child(3) { animation-delay: 1s; }

@keyframes feedIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.feed-dot {
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

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

.feed-time {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-subtle);
}

/* ---- Tech marquee ---- */

.tech-marquee {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}

.tech-marquee-mask {
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.tech-marquee-group {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-right: var(--space-5);
  flex-shrink: 0;
}

.tech-marquee-group span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
}

.tech-marquee-group span:hover {
  color: var(--text-muted);
}

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

@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--space-3);
    padding: 0 var(--space-3);
  }

  .tech-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .tech-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* ---- Sections ---- */

.section {
  padding: var(--section-y) 0;
  width: 100%;
  min-width: 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--section-header-gap);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- Bento Services ---- */

.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--card-gap);
  width: 100%;
  min-width: 0;
}

.bento-card {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.bento-featured {
  grid-row: span 2;
  padding: var(--space-4);
  min-height: auto;
}

.bento-featured .bento-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.bento-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: gap var(--transition);
}

.bento-link:hover { gap: 10px; }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.bento-card:hover .service-icon {
  background: var(--accent-subtle);
  color: var(--accent);
}

.bento-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.bento-card > p,
.bento-featured p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  padding-left: 18px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}

/* ---- Why Us ---- */

.section--why {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.why-section-tag {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.why-intro .section-title,
.why-intro .section-desc {
  text-align: left;
}

.why-intro .section-title {
  margin-bottom: var(--space-2);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.why-intro .section-desc {
  margin-bottom: 0;
  max-width: 32ch;
  line-height: 1.65;
}

.why-metrics {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.why-metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.why-metric-label {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-top: 6px;
  line-height: 1.4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  min-width: 0;
}

.feature-item {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
  align-items: flex-start;
}

.feature-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: all var(--transition);
}

.feature-item:hover .feature-icon {
  background: var(--accent-subtle);
  color: var(--accent);
}

.feature-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- Timeline Process ---- */

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border) 80%);
}

.timeline-step {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
}

.timeline-step:last-child { margin-bottom: 0; }

.timeline-marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

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

.timeline-card {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
}

.timeline-step:hover .timeline-card {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.timeline-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* ---- Testimonials ---- */

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

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

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

.testimonial-stars {
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.testimonial-card footer span {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* ---- CTA Band ---- */

.cta-band {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}

#testimonials {
  padding-bottom: var(--space-6);
}

#contact {
  padding-top: var(--space-6);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.cta-card h2 {
  position: relative;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.cta-card p {
  position: relative;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: var(--space-4);
}

/* ---- Contact ---- */

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.contact-details {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
}

a.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.contact-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

.contact-link-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.calendly-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 700px;
  width: 100%;
  min-width: 0;
}

.calendly-inline-widget {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  height: 700px;
}

.contact-info .section-tag,
.contact-info .section-title,
.contact-info .section-desc { text-align: left; }

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  background: rgba(0, 0, 0, 0.6);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #34D399;
  text-align: center;
}

.form-note[hidden] { display: none; }

/* ---- Footer ---- */

.footer {
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* ---- Hero entrance (page load only) ---- */

.hero-enter {
  animation: heroEnter 0.63s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes heroEnter {
  from {
    opacity: 0.85;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    padding: 0;
    width: auto;
    height: auto;
    z-index: auto;
  }

  .nav-links a {
    font-size: 0.875rem;
    padding: 0;
  }

  .nav-cta {
    margin-top: 0;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .contact-info .section-tag,
  .contact-info .section-title,
  .contact-info .section-desc {
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: var(--space-7);
    --section-header-gap: var(--space-5);
  }

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

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
    padding: 14px 24px;
  }

  .nav-cta { margin-top: 16px; }

  .menu-toggle { display: flex; }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    text-align: center;
  }

  .hero-copy { max-width: 100%; margin: 0 auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-visual {
    max-width: min(520px, 100%);
    width: 100%;
    margin: 0 auto;
  }

  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }

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

  .bento-featured {
    grid-row: auto;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .why-intro .section-title,
  .why-intro .section-desc {
    text-align: center;
  }

  .why-intro .section-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .why-metrics { justify-content: center; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

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

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

  .calendly-widget,
  .calendly-inline-widget {
    min-height: 620px;
    height: 620px;
  }

  .cta-card { padding: var(--space-5) var(--space-3); }

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

  .footer-brand { align-items: center; }

  .logo--nav .logo-img {
    height: 38px;
    max-width: 140px;
  }

  .logo--footer .logo-img {
    height: 48px;
    max-width: 170px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-y: var(--space-6);
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--space-4));
    padding-bottom: var(--space-6);
  }

  .hero-stats {
    padding: 16px 20px;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn { width: 100%; }

  .metric-value { font-size: 1rem; }

  .calendly-widget,
  .calendly-inline-widget {
    min-height: 560px;
    height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
