:root {
  --bg: #09090f;
  --surface: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.06);
  --ink: #e8eaed;
  --muted: #7b7f95;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-cyan: #22d3ee;
  --accent-violet: #a78bfa;
  --glow: rgba(99, 102, 241, 0.35);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* ---- animated gradient orbs ---- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-glow::before {
  width: 45vw;
  height: 45vw;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
}

.bg-glow::after {
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
  animation-delay: -9s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* subtle dot grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

/* ---- topbar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 22px;
}

.brand,
.topnav a,
.button,
.contact-link {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.84rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.brand-text {
  font-size: 0.92rem;
}

.topnav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.topnav a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 200ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
}

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 120px);
  padding: 28px 0 44px;
}

.hero-copy,
.hero-panel,
.service-card,
.process-list,
.contact-block {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 68px);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    var(--glass);
}

.eyebrow,
.section-kicker,
.card-index,
.process-list span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-cyan);
}

.section-kicker {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-index {
  color: var(--accent-violet);
}

.topnav a,
.process-list p,
.contact-content p {
  color: var(--muted);
}

h1,
h2,
h3,
.metric-value,
.contact-link {
  margin: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 14ch;
  margin-top: 18px;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
}

.lede {
  max-width: 35rem;
  margin: 24px 0 0;
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.72;
  color: rgba(232, 234, 237, 0.7);
}

.hero-support {
  max-width: 30rem;
  margin: 18px 0 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---- buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms ease, box-shadow 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

/* ---- hero panel ---- */
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    var(--glass);
}

.metric-stack {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
}

.metric-stack article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  background:
    linear-gradient(
      120deg,
      var(--ink) 0%,
      var(--accent-cyan) 32%,
      #f0f9ff 50%,
      var(--accent-cyan) 68%,
      var(--ink) 100%
    );
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: metric-gradient-shift 7s ease-in-out infinite;
}

.metric-stack article:nth-of-type(1) .metric-value {
  animation-duration: 6.2s;
  animation-delay: -0.4s;
}

.metric-stack article:nth-of-type(2) .metric-value {
  animation-duration: 8.4s;
  animation-delay: -2.1s;
  animation-timing-function: ease;
}

.metric-stack article:nth-of-type(3) .metric-value {
  animation-duration: 7.3s;
  animation-delay: -4.2s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.metric-label {
  margin: 6px 0 0;
  max-width: 28ch;
  line-height: 1.55;
  color: var(--muted);
}

@keyframes metric-gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.automation-list {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.automation-list h3 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.automation-list ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
}

.automation-list li {
  line-height: 1.55;
  color: rgba(232, 234, 237, 0.7);
}

.automation-list li::marker {
  color: var(--accent-cyan);
}

/* ---- sections ---- */
.section-grid,
.split-section {
  display: grid;
  gap: 26px;
  margin-bottom: 80px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 54rem;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

/* ---- cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 270px;
  padding: 28px;
  border-radius: 24px;
  background: var(--glass);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1), var(--shadow);
  transform: translateY(-4px);
}

.service-card h3,
.process-list h3 {
  margin-top: 20px;
  font-size: 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.service-card p:last-child,
.split-copy p:last-child,
.process-list p,
.contact-content p {
  margin-bottom: 0;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- split layout ---- */
.split-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.split-copy {
  padding-right: 24px;
}

.split-support {
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 0;
  padding: 10px 26px;
  border-radius: 24px;
  background: var(--glass);
}

.process-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-list article:last-child {
  border-bottom: 0;
}

.process-list span {
  padding-top: 4px;
  color: var(--accent);
}

/* ---- bullet panel ---- */
.bullet-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 28px;
}

.bullet-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 16px;
}

.bullet-panel li {
  line-height: 1.65;
  color: rgba(232, 234, 237, 0.7);
}

.bullet-panel li::marker {
  color: var(--accent-violet);
}

/* ---- quote band ---- */
.quote-band {
  position: relative;
  z-index: 1;
  margin: 0 0 80px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.06)),
    var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent-violet));
}

.quote-band p {
  max-width: 44rem;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---- contact ---- */
.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-bottom: 24px;
  padding: 36px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    var(--glass);
}

.contact-content {
  display: grid;
  gap: 18px;
}

.contact-link {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 200ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 0.8;
}

/* ---- reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 90ms;
}

.reveal:nth-child(3) {
  transition-delay: 180ms;
}

/* ---- focus ---- */
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero,
  .split-section,
  .contact-block,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-panel {
    border-radius: 24px;
  }

  h1 {
    max-width: 16ch;
  }

  .split-copy {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    gap: 14px;
  }

  .hero-copy,
  .hero-panel,
  .service-card,
  .process-list,
  .contact-block {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .process-list {
    padding-top: 0;
    padding-bottom: 0;
  }

  .process-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-link {
    font-size: 1.8rem;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .topnav a,
  .contact-link {
    transition: none;
  }

  .metric-value {
    animation: none;
    background-position: 0% 50%;
  }

  .bg-glow::before,
  .bg-glow::after {
    animation: none;
  }
}
