/* ── VARIABLES ── */
:root {
  --blue: #2563B0;
  --blue-light: #4A90D9;
  --blue-pale: #EEF4FF;
  --blue-pale-border: #dde8ff;
  --accent-orange: #F97316;
  --dark: #0B1120;
  --dark-mid: #111827;
  --dark-deep: #070d18;
  --light: #F4F7FC;
  --white: #FFFFFF;
  --text-dark: #0B1120;
  --text-body-light: #6b7280;
  --text-mid: #374151;
  --text-muted: #9ca3af;
  --text-on-dark: rgba(255, 255, 255, 0.5);
  --text-on-dark-label: rgba(255, 255, 255, 0.3);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll */
body { font-family: var(--font-body); background: var(--dark); color: #fff; overflow-x: hidden; }

/* ── SCROLL-BG REEL ── */
.scroll-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--dark);
}
.scroll-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.scroll-bg.is-ready .scroll-bg__canvas { opacity: 1; }
.scroll-bg__tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(74, 144, 217, 0.22) 0%, rgba(74, 144, 217, 0.06) 45%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(37, 99, 176, 0.18) 0%, transparent 60%);
  mix-blend-mode: screen;
}
.scroll-bg__dimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.45) 0%, rgba(11, 17, 32, 0.15) 35%, rgba(11, 17, 32, 0.55) 100%);
}
@media (max-width: 768px) {
  .scroll-bg__dimmer { background: rgba(11, 17, 32, 0.55); }
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── TYPOGRAPHY ── */
.display { font-family: var(--font-display); }
.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(249, 115, 22, 0.35);
}
.section-label--dim {
  color: var(--text-on-dark-label);
  text-align: center;
  margin-bottom: 28px;
}
.section-label--blue {
  color: var(--blue-light);
  text-shadow: 0 1px 8px rgba(74, 144, 217, 0.35);
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.section-heading--dark { color: #fff; }

/* ── LAYOUT ── */
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-pad { padding: 72px 64px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.65); background: transparent; }
.btn--calendly {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1.5px solid var(--blue-pale-border);
  font-family: var(--font-display);
  font-weight: 700;
}
.btn--cta {
  background: var(--blue);
  color: #fff;
  padding: 16px 40px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* ── SECTION DIVIDER ── */
.divider { height: 2px; background: linear-gradient(90deg, transparent, rgba(37,99,176,0.35), transparent); }

/* ── PLACEHOLDER HIDDEN ── */
.placeholder-hidden { display: none !important; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 48px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.nav-logo-img { height: 88px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { font-size: 0.78rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.nav-link:hover { color: #fff; }
.nav-cta { font-family: var(--font-body); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 18px;
  display: block;
  text-shadow: 0 1px 8px rgba(249, 115, 22, 0.35);
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #FEFEFB;
  margin-bottom: 22px;
  max-width: 720px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero-line { display: block; }
.word { display: inline-block; margin-right: 0.15em; }
.word--accent { color: var(--blue); }
.hero-sub {
  font-size: 0.95rem;
  color: #FEFEFB;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 38px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── TRUST ── */
.trust { background: rgba(17, 24, 39, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 56px 64px; position: relative; }
.trust-inner { max-width: 1200px; margin: 0 auto; }
.tech-marquee {
  overflow: hidden;
  width: 100%;
  margin-bottom: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.tech-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: tech-scroll 38s linear infinite;
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }
.tech-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
}
.stats-row { display: flex; justify-content: center; gap: 72px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}
.testimonials-wrap, .client-logos-wrap {
  margin-top: 40px;
  text-align: center;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 28px;
  max-width: 600px;
  margin: 0 auto;
}
.testimonial-quote { font-style: italic; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.testimonial-author { font-size: 0.78rem; color: var(--blue-light); font-weight: 600; }
.client-logos-grid { display: flex; gap: 24px; justify-content: center; margin-top: 16px; }
.client-logo-placeholder {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}

/* ── GLASS CARD BASE ── */
:root {
  --glass-bg: rgba(15, 23, 42, 0.42);
  --glass-bg-hover: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(74, 144, 217, 0.45);
  --glass-blur: blur(14px) saturate(140%);
}

/* ── SERVICES ── */
.services { background: transparent; }
.services .section-heading { color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  position: relative;
  isolation: isolate;
  z-index: 0;
  display: flex;
  flex-direction: column;
}
.svc-card:hover, .svc-card.is-open {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(74, 144, 217, 0.4),
    0 0 24px 2px rgba(74, 144, 217, 0.25),
    0 8px 40px 4px rgba(0, 0, 0, 0.4);
}
.svc-icon { margin-bottom: 12px; height: 56px; display: flex; align-items: center; }
.svc-icon img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(74,144,217,0.4));
  transition: transform 0.25s ease;
}
.svc-card:hover .svc-icon img, .svc-card.is-open .svc-icon img {
  transform: translateY(-2px) rotate(-3deg) scale(1.04);
}
.svc-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  min-height: 2.4em;
  line-height: 1.2;
}
.svc-desc { font-size: 0.72rem; color: rgba(255,255,255,0.62); line-height: 1.55; margin-bottom: 0; }
.svc-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.svc-card.is-open .svc-sub { max-height: 400px; }
.svc-sub ul { list-style: none; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 12px; }
.svc-sub li { font-size: 0.72rem; color: var(--blue-light); padding: 3px 0; }
.svc-sub li::before { content: "→ "; opacity: 0.6; }

/* ── HOW IT WORKS ── */
.how { background: transparent; }
.how .section-heading { color: #fff; }
.steps-row { display: flex; align-items: flex-start; position: relative; }
.steps-connector { position: absolute; top: 27px; left: 0; width: 100%; height: 2px; overflow: visible; pointer-events: none; }
.connector-line-1, .connector-line-2 { stroke: var(--blue-light); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 0.8s ease; opacity: 0.55; }
.step { flex: 1; text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.15);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 900;
  color: #FEFEFB;
  box-shadow: 0 0 24px rgba(74, 144, 217, 0.35);
}
.step-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #FEFEFB; margin-bottom: 8px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.step-desc { font-size: 0.74rem; color: #FEFEFB; line-height: 1.65; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* ── IMPACT ── */
.impact { background: transparent; }
.impact .section-heading { color: #fff; }
.insight-cards, .case-studies-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 44px; }
.impact-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--glass-border);
}
.impact-industry { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-orange); font-weight: 700; margin-bottom: 10px; text-shadow: 0 1px 8px rgba(249, 115, 22, 0.3); }
.impact-quote { font-size: 0.79rem; color: rgba(255,255,255,0.78); line-height: 1.65; font-style: italic; }
.impact-saving { margin-top: 14px; font-size: 0.72rem; color: var(--accent-orange); font-weight: 700; text-shadow: 0 1px 8px rgba(249, 115, 22, 0.3); }
.benchmark-strip { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.benchmark { text-align: center; }
.benchmark-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--accent-orange); text-shadow: 0 2px 12px rgba(249, 115, 22, 0.35); }
.benchmark-label { font-size: 0.68rem; color: rgba(255,255,255,0.55); max-width: 120px; line-height: 1.45; margin-top: 5px; }

/* ── CONTACT ── */
.contact { background: transparent; }
.contact .section-heading { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-body { font-size: 0.83rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 28px; }
.contact-form-wrap {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--glass-border);
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-field, .form-textarea {
  background: rgba(11, 17, 32, 0.4);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 12px 15px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: #fff;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.form-field::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field:focus, .form-textarea:focus { outline: none; border-color: var(--blue-light); background: rgba(11, 17, 32, 0.6); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { font-family: var(--font-display); font-weight: 700; width: 100%; justify-content: center; }
.form-alt { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-align: center; }
.form-alt a { color: var(--blue-light); font-weight: 600; }

/* ── FINAL CTA ── */
.final-cta {
  background: rgba(11, 17, 32, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,176,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}
.cta-sub { font-size: 0.88rem; color: rgba(255,255,255,0.4); margin-bottom: 36px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark-deep);
  padding: 24px 64px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.footer-logo-img { height: 92px; }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.22); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.68rem; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  .site-nav { padding: 10px 20px; }
  .nav-logo-img { height: 52px; }
  .site-nav.scrolled .nav-logo-img { height: 52px; }
  .nav-links .nav-link { display: none; }

  /* Hero */
  .hero-content { padding: 0 24px; }
  .hero-heading { font-size: 2.4rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Section padding */
  .section-pad { padding: 48px 24px; }
  .trust { padding: 48px 24px; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps-row { flex-direction: column; gap: 32px; }
  .steps-connector { display: none; }
  .step { padding: 0; }

  /* Impact */
  .insight-cards, .case-studies-wrap { grid-template-columns: 1fr; }
  .benchmark-strip { gap: 28px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Final CTA */
  .final-cta { padding: 56px 24px; }
  .cta-heading { font-size: 2rem; }

  /* Footer */
  .site-footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-logo-img { height: 60px; }
  .footer-links { justify-content: center; }

  /* Stats */
  .stats-row { gap: 32px; flex-wrap: wrap; }
}

/* Nav scroll state */
.site-nav.scrolled {
  padding: 8px 48px;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.site-nav.scrolled .nav-logo-img { height: 88px; }

/* ── LIGHT MODE ── */
[data-theme="light"] body { background: var(--light); color: var(--text-dark); }

[data-theme="light"] .site-nav {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}
[data-theme="light"] .site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-link { color: #374151; }
[data-theme="light"] .nav-link:hover { color: #0B1120; }

[data-theme="light"] .hero { background: var(--light); }
[data-theme="light"] .hero-label { color: var(--blue); }
[data-theme="light"] .hero-heading { color: var(--text-dark); }
[data-theme="light"] .hero-sub { color: var(--text-body-light); }
[data-theme="light"] .scroll-arrow { color: rgba(0,0,0,0.25); }

[data-theme="light"] .trust { background: #e8ecf5; }
[data-theme="light"] .tech-pill {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #374151;
}
[data-theme="light"] .stat-num { color: var(--text-dark); }
[data-theme="light"] .stat-label { color: var(--text-body-light); }
[data-theme="light"] .testimonial-card {
  background: #fff;
  border-color: #e5e7eb;
}
[data-theme="light"] .testimonial-quote { color: #374151; }

[data-theme="light"] .divider {
  background: linear-gradient(90deg, transparent, rgba(37,99,176,0.2), transparent);
}

/* final-cta and footer stay dark in light mode */
[data-theme="light"] .final-cta { background: var(--dark); }
[data-theme="light"] .site-footer { background: var(--dark-deep); }

/* Theme toggle button */
.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  transition: background 0.2s;
  padding: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.16); }
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #374151;
}
