:root {
  --bg: #070b10;
  --panel: #0d141c;
  --panel-2: #111b24;
  --text: #f5f7fa;
  --muted: rgba(245, 247, 250, .68);
  --line: rgba(255, 255, 255, .12);
  --amber: #f6a51a;
  --amber-2: #ffcf66;
  --cyan: #2ed8c3;
  --green: #84d65a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: .05;
  background-image: linear-gradient(115deg, transparent 0 20%, rgba(255,255,255,.5) 21%, transparent 22% 100%);
  background-size: 9px 9px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 16, .82);
  border-color: var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand img {
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-link {
  color: rgba(255,255,255,.76);
  font-weight: 700;
  font-size: 14px;
  position: relative;
  padding: 8px 0;
}
.nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width .22s ease;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover:after, .nav-link.is-active:after { width: 100%; }
.nav-toggle { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #11100b;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 16px 44px rgba(246, 165, 26, .28);
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
}
.hero-video {
  min-height: 94vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: -76px;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(46,216,195,.23), transparent 31%),
    linear-gradient(180deg, rgba(0,0,0,.48), rgba(7,11,16,.84) 72%, var(--bg));
}
.hero-content {
  width: min(980px, calc(100% - 32px));
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 76px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 14px;
}
.eyebrow:before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(46px, 8vw, 96px);
  line-height: .95;
  letter-spacing: 0;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
}
h3 { font-size: 22px; line-height: 1.1; margin-bottom: 10px; }
.hero-content p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 2vw, 22px);
}
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button-row.center { justify-content: center; }
.scroll-cue {
  position: absolute;
  bottom: 24px;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 20px;
  z-index: 3;
}
.scroll-cue:after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollPulse 1.8s infinite;
}
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.copy-block p { color: var(--muted); font-size: 18px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.stats-grid.large { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card, .process-card, .testimonial-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--amber-2);
  line-height: 1;
}
.stat-card span, .process-card p, .testimonial-card span { color: var(--muted); }
.visual-stack { position: relative; perspective: 1000px; }
.main-visual, .visual-wide img, .hero-side-image {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.main-visual { aspect-ratio: 16 / 11; }
.visual-wide img { aspect-ratio: 16 / 9; }
.floating-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7, 11, 16, .78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 900;
  animation: floaty 4s ease-in-out infinite;
}
.chip-one { top: 8%; left: -4%; }
.chip-two { right: -3%; top: 36%; animation-delay: .5s; }
.chip-three { left: 10%; bottom: 8%; animation-delay: 1s; }
.logo-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.05);
}
.logo-strip span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}
.logo-strip div { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.logo-strip img { max-height: 36px; width: auto; opacity: .78; filter: grayscale(1) brightness(1.6); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}
.section-head h2 { max-width: 760px; margin-bottom: 0; }
.section-head a, .service-card a, .case-card a { color: var(--amber-2); font-weight: 900; }
.service-grid, .case-grid, .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card, .case-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .18s ease, border-color .22s ease;
}
.service-card:hover, .case-card:hover, .process-card:hover { border-color: rgba(246,165,26,.48); }
.service-card img, .case-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover img, .case-card:hover img { transform: scale(1.06); }
.service-card div, .case-card div { padding: 22px; }
.service-card span, .case-card span {
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 900;
}
.service-card p, .case-card p { color: var(--muted); }
.showcase-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 42px;
  align-items: center;
  background: linear-gradient(120deg, rgba(46,216,195,.08), rgba(246,165,26,.08));
}
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li {
  color: rgba(255,255,255,.82);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.check-list li:before { content: "✓"; color: var(--green); margin-right: 10px; font-weight: 900; }
.process-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: radial-gradient(circle at 20% 0%, rgba(246,165,26,.13), transparent 28%), var(--panel-2);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.process-card span {
  display: inline-flex;
  color: var(--amber-2);
  font-weight: 900;
  margin-bottom: 30px;
}
.testimonials { padding-top: 90px; }
.testimonial-card p { color: rgba(255,255,255,.86); font-size: 18px; }
.testimonial-card strong { display: block; color: #fff; }
.cta-band {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 110px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(246,165,26,.18), rgba(46,216,195,.14)), url('/images/generated/savvy-process-lab.png') center/cover;
  box-shadow: var(--shadow);
}
.cta-inner {
  padding: clamp(42px, 7vw, 84px);
  text-align: center;
  background: rgba(7,11,16,.66);
  backdrop-filter: blur(4px);
}
.cta-inner p { color: rgba(255,255,255,.78); max-width: 720px; margin-inline: auto; }
.page-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: -40px auto 0;
  padding: 130px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 40px;
  align-items: center;
}
.compact-hero {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  min-height: 440px;
}
.page-hero p { color: var(--muted); font-size: 19px; }
.feature-list { display: grid; gap: 14px; margin-top: 28px; }
.feature-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}
.feature-list strong, .feature-list span { display: block; }
.feature-list span { color: var(--muted); margin-top: 4px; }
.detailed .service-card { min-height: 100%; }
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-hero { align-items: start; }
.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
}
.contact-form .hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  color: #fff;
  padding: 13px 14px;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--amber); }
.contact-cards {
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-cards article {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.contact-cards span { display: block; color: var(--cyan); font-weight: 900; margin-bottom: 10px; }
.footer {
  border-top: 1px solid var(--line);
  background: #05080c;
}
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}
.footer p, .footer a { color: var(--muted); }
.footer h3 { font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: var(--amber-2); }
.footer-brand { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  color: rgba(255,255,255,.52);
  font-size: 13px;
}
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.98);
  filter: blur(7px);
  transition: opacity .75s ease var(--delay, 0ms), transform .75s ease var(--delay, 0ms), filter .75s ease var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes scrollPulse {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
  }
  .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }
  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
    background: rgba(7, 11, 16, .96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-cta { width: 100%; }
  .split-section, .showcase-section, .page-hero { grid-template-columns: 1fr; }
  .service-grid, .case-grid, .testimonial-grid, .stats-grid.large, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-shell { width: min(100% - 24px, 1180px); min-height: 68px; }
  .hero-video { min-height: 88vh; margin-top: -68px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .section { padding: 72px 0; }
  .service-grid, .case-grid, .testimonial-grid, .stats-grid, .stats-grid.large, .process-grid, .contact-cards, .portfolio-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head a { display: inline-block; margin-top: 16px; }
  .logo-strip { align-items: flex-start; flex-direction: column; }
  .logo-strip div { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 110px; min-height: auto; }
  .button-row .btn { width: 100%; }
}
