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

:root {
  --black: #000000;
  --near-black: #070708;
  --surface-1: #0c0c0e;
  --surface-2: #101013;
  --surface-3: #16161a;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.16);
  --white: #ffffff;
  --grey-1: #d6d6d9;
  --grey-2: #9a9aa0;
  --grey-3: #5a5a61;
  --grey-4: #2a2a2f;
  --glow: rgba(255,255,255,0.06);
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--grey-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
button, a { touch-action: manipulation; }

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* Slow ambient glow drifting behind everything — depth without color */
.ambient {
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 34% at 24% 18%, rgba(255,255,255,0.045), transparent 70%),
    radial-gradient(36% 30% at 78% 74%, rgba(255,255,255,0.035), transparent 70%);
  animation: ambientDrift 26s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.section { position: relative; z-index: 1; padding: 130px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--surface-1) 12%, var(--surface-1) 88%, transparent); }

/* Eyebrow labels — wide-tracked Inter, quiet and human */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.22em;
}

.section-label { font-size: 0.72rem; text-transform: uppercase; color: var(--grey-3); margin-bottom: 1.25rem; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.text-dim { color: var(--grey-2); }

/* Masked word-rise for headings (spans injected by JS; graceful without) */
.reveal-heading .rh-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.reveal-heading .rh-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.reveal-heading.visible .rh-inner { transform: translateY(0); }

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 2rem;
  background: rgba(0,0,0,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(0,0,0,0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
  padding-top: 1rem; padding-bottom: 1rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
  height: 30px;              /* new logo has zero padding — 30px now reads ~4x bigger than before */
  width: auto;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.25s ease;
}
.logo-img:hover { opacity: 0.7; }
.logo-sm { height: 22px; }

.nav-links { display: flex; align-items: center; list-style: none; gap: 2.3rem; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; color: var(--grey-2);
  letter-spacing: 0.02em; transition: color 0.25s ease;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a[data-section]::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--white);
  transition: right 0.35s var(--ease-out);
}
.nav-links a[data-section]:hover::after,
.nav-links a[data-section].active::after { right: 0; }
.nav-links a[data-section].active { color: var(--white); }

.nav-login {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--grey-4);
  border-radius: var(--radius-sm);
  color: var(--white) !important;
  transition: border-color 0.25s ease, background 0.25s ease !important;
}
.nav-login:hover { border-color: var(--grey-2) !important; background: rgba(255,255,255,0.05) !important; }
.nav-login::after { display: none; }

.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black) !important;
  font-weight: 600;
  transition: background 0.25s ease, box-shadow 0.25s ease !important;
}
.nav-cta:hover { background: var(--grey-1) !important; box-shadow: 0 0 24px rgba(255,255,255,0.25); }
.nav-cta::after { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 11px; margin: -11px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--white); transition: opacity 0.2s; }
.mobile-menu a:hover { opacity: 0.5; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; background: var(--white); color: var(--black);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius-sm); border: 1px solid var(--white);
  transition: background var(--transition), color var(--transition), transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: transparent; color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,255,255,0.18);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; background: transparent; color: var(--grey-2);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  border-radius: var(--radius-sm); border: 1px solid var(--grey-4);
  transition: border-color var(--transition), color var(--transition), transform 0.2s ease;
}
.btn-ghost:hover { border-color: var(--grey-2); color: var(--white); transform: translateY(-2px); }
.btn-large { padding: 1.1rem 2.75rem; font-size: 1rem; }

/* HERO */
.hero-section { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 2rem; position: relative; }
.hero-content { max-width: 980px; width: 100%; margin: 0 auto; will-change: transform, opacity; }
.hero-tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; color: var(--grey-3); margin-bottom: 2.5rem; }

.hero-logo { margin-bottom: 2.75rem; display: flex; justify-content: center; }
.hero-logo-img {
  /* 5:1 mark — width-driven, tuned for the trimmed file */
  width: clamp(480px, 82vw, 980px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.10));
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 900px; margin: 0 auto 3rem; line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 0%, #8a8a8a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions { display: flex; gap: 1.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0.35; text-align: center;
}
.hero-scroll-hint span { font-size: 0.66rem; text-transform: uppercase; color: var(--grey-3); }
.scroll-line { width: 1px; height: 40px; margin: 0 auto; background: linear-gradient(to bottom, var(--grey-3), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* SERVICES — spotlight cards (JS sets --mx/--my per card) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  transition: background var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service-card:hover { background: var(--surface-3); }
.service-card:hover::before { opacity: 1; }
.card-number { font-size: 0.72rem; color: var(--grey-4); margin-bottom: 1.25rem; transition: color var(--transition); }
.service-card:hover .card-number { color: var(--grey-2); }
.service-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; color: var(--grey-2); line-height: 1.6; }

/* PROCESS — the pipeline. A lead travels this line; scroll draws it. */
.steps-wrapper { max-width: 720px; margin: 0 auto; position: relative; padding-left: 3rem; }

.pipeline {
  position: absolute; top: 0; bottom: 0; left: 1.1rem;
  width: 1px;
  background: var(--grey-4);
}
.pipeline-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to bottom, var(--white), rgba(255,255,255,0.4));
  box-shadow: 0 0 12px rgba(255,255,255,0.35);
}
.pipeline-spark {
  position: absolute; left: 50%; top: 0;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 14px 3px rgba(255,255,255,0.55);
  opacity: 0;
}

.step {
  display: flex; align-items: flex-start; gap: 2rem;
  padding: 2.5rem; margin-bottom: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  opacity: 0.45;
  transform: translateX(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), border-color 0.7s var(--ease-out);
}
.step:last-child { margin-bottom: 0; }
.step.lit {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--border-bright);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800;
  color: var(--grey-4); line-height: 1; flex-shrink: 0;
  transition: color 0.7s var(--ease-out), text-shadow 0.7s var(--ease-out);
}
.step.lit .step-number { color: var(--white); text-shadow: 0 0 18px rgba(255,255,255,0.35); }
.step-body h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.step-body p { font-size: 0.9rem; color: var(--grey-2); line-height: 1.6; }

/* BENEFITS */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit-card {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.benefit-card:hover { border-color: var(--grey-3); transform: translateY(-4px); }
.benefit-card:hover::before { opacity: 1; }
.benefit-icon { font-size: 1.1rem; color: var(--grey-3); margin-bottom: 1rem; transition: color var(--transition); }
.benefit-card:hover .benefit-icon { color: var(--white); }
.benefit-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.benefit-card p { font-size: 0.875rem; color: var(--grey-2); line-height: 1.6; }

/* CTA */
.cta-section { text-align: center; overflow: hidden; }
.cta-container { position: relative; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 640px; height: 640px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.8rem; color: var(--grey-3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--grey-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* REVEAL */
.reveal { opacity: 0; transition-property: opacity, transform; transition-duration: 0.85s; transition-timing-function: var(--ease-out); }
.reveal.visible { opacity: 1; transform: none !important; }
.fade-up { transform: translateY(34px); }
.slide-right { transform: translateX(-40px); }
.slide-left { transform: translateX(40px); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 84px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1.25rem; text-align: center; }

  .container { padding: 0 1.5rem; }
  #navbar { padding: 1.15rem 1.5rem; }

  .hero-section { padding: 0 1.5rem; }
  .hero-logo { margin-bottom: 2.25rem; }
  .hero-logo-img { width: min(90vw, 520px); }
  .hero-tag { margin-bottom: 1.75rem; }
  .hero-sub { font-size: clamp(1.3rem, 6.5vw, 1.8rem); margin-bottom: 2.5rem; }

  .hero-actions { flex-direction: column; gap: 0.85rem; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; max-width: 340px; }

  .service-card { padding: 2rem 1.5rem; }
  .benefit-card { padding: 1.75rem 1.5rem; }
  .steps-wrapper { padding-left: 2.2rem; }
  .pipeline { left: 0.75rem; }
  .step { padding: 1.75rem 1.5rem; gap: 1.25rem; }
  .step-number { font-size: 1.8rem; }
}
@media (max-width: 430px) {
  .container { padding: 0 1.25rem; }
  #navbar { padding: 1rem 1.25rem; }
  .logo-img { height: 26px; }
  .hero-section { padding: 0 1.25rem; }
  .hero-logo-img { width: min(88vw, 420px); }
  .section { padding: 68px 0; }
  .cta-glow { width: 360px; height: 360px; }
}

@supports (padding: max(0px)) {
  #navbar { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }
}

/* accessibility: honor users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-heading .rh-inner { transform: none !important; }
  .step { opacity: 1 !important; transform: none !important; }
  .pipeline-fill { height: 100% !important; }
  .pipeline-spark { display: none; }
  .ambient { display: none; }
  #bg-canvas { display: none; }
  .scroll-line { animation: none; }
}
