:root {
  --ink: #111827;
  --ink-soft: #293241;
  --muted: #5b6577;
  --line: #dde5ed;
  --cloud: #f7fafc;
  --white: #ffffff;
  --teal: #00c2a8;
  --sky: #2eb7ff;
  --amber: #ffb547;
  --coral: #ff6f61;
  --green: #19a974;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: clamp(176px, 22vw, 216px);
  height: 55px;
}

.brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transition: opacity 160ms ease;
}

.logo-light {
  opacity: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.logo-dark {
  opacity: 0;
}

.site-header.is-scrolled .logo-light,
.site-header.is-open .logo-light {
  opacity: 0;
}

.site-header.is-scrolled .logo-dark,
.site-header.is-open .logo-dark {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: currentColor;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-open .nav-links a:hover {
  background: #eff7fb;
  color: #006d78;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  border-color: var(--line);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px auto;
  border-radius: 3px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 80px) 58px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(10, 14, 18, 0.92), rgba(24, 32, 40, 0.74)),
    linear-gradient(90deg, #0e1116 0%, #15242c 45%, #10231e 100%);
}

#beam-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9, 12, 16, 0.88), rgba(9, 12, 16, 0) 54%),
    linear-gradient(90deg, rgba(9, 12, 16, 0.8), rgba(9, 12, 16, 0.12) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1110px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  width: min(880px, 100%);
  margin: 0;
  color: var(--white);
  font-size: 5.5rem;
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-copy {
  width: min(720px, 100%);
  max-width: 100%;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #071318;
  background: var(--amber);
  box-shadow: 0 16px 36px rgba(255, 181, 71, 0.24);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1020px, 100%);
  margin: 56px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.proof-grid div {
  min-height: 120px;
  padding: 23px;
  background: rgba(8, 13, 18, 0.28);
}

.proof-grid dt {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 850;
}

.proof-grid dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.section,
.capability-band,
.process-band,
.contact-section {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 80px);
}

.section {
  width: min(1240px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.section-heading {
  width: min(720px, 100%);
  max-width: 100%;
  min-width: 0;
  margin-bottom: 34px;
}

.section-heading h2,
.split h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.35rem;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.section-heading.light h2 {
  color: var(--white);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 8vw, 90px);
  align-items: start;
}

.intro > p,
.split p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(20, 33, 45, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 168, 0.42);
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: var(--radius);
  color: #071318;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-size: 0.72rem;
  font-weight: 900;
}

.service-card h3,
.capability-card h3,
.ai-stack h3,
.process-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.service-card p,
.ai-stack p,
.process-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.capability-band {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.96), rgba(13, 20, 24, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 74px);
}

.capability-band > * {
  width: min(1240px, 100%);
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  min-height: 430px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.capability-card.accent-green {
  border-top-color: var(--teal);
}

.capability-card.accent-amber {
  border-top-color: var(--amber);
}

.capability-card.accent-coral {
  border-top-color: var(--coral);
}

.capability-card h3 {
  color: var(--white);
}

.capability-card ul {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.capability-card li {
  display: grid;
  gap: 4px;
}

.capability-card strong {
  color: var(--white);
  font-size: 0.96rem;
}

.capability-card span {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: #007a73;
  font-weight: 850;
}

.text-link::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-left: 12px;
  background: var(--amber);
}

.ai-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-stack article {
  min-height: 205px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--cloud);
}

.ai-stack article:nth-child(2) {
  border-left-color: var(--sky);
}

.ai-stack article:nth-child(3) {
  border-left-color: var(--amber);
}

.ai-stack article:nth-child(4) {
  border-left-color: var(--coral);
}

.process-band {
  background: #f1f7f6;
}

.process-band > * {
  width: min(1240px, 100%);
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid #d6e5e0;
  border-radius: var(--radius);
  background: var(--white);
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 194, 168, 0.18), rgba(255, 181, 71, 0.18)),
    #101418;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  width: min(1240px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.contact-panel h2,
.contact-panel p {
  color: var(--white);
}

.contact-panel p {
  width: min(720px, 100%);
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  display: grid;
  gap: 12px;
  min-width: min(100%, 260px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 4.4rem;
  }

  .section-heading h2,
  .split h2,
  .contact-panel h2 {
    font-size: 2.9rem;
  }

  .service-grid,
  .capability-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-card {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 3.65rem;
  }

  .section-heading h2,
  .split h2,
  .contact-panel h2 {
    font-size: 2.45rem;
  }

  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    min-height: 46px;
    border-radius: var(--radius);
  }

  .nav-links a:hover {
    background: #eff7fb;
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    overflow-wrap: break-word;
  }

  .proof-grid,
  .intro,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    margin-top: 40px;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 178px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 2.55rem;
    line-height: 1;
    text-wrap: wrap;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading h2,
  .split h2,
  .contact-panel h2 {
    font-size: 1.95rem;
  }

  .proof-grid,
  .service-grid,
  .capability-grid,
  .ai-stack,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .service-card,
  .capability-card,
  .ai-stack article,
  .process-grid article {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero-content,
  .proof-grid,
  .section-heading,
  .intro,
  .service-grid,
  .capability-grid,
  .split,
  .ai-stack,
  .process-grid,
  .contact-panel {
    width: 100%;
    max-width: calc(100vw - 52px);
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .section-heading h2,
  .split h2,
  .contact-panel h2 {
    font-size: 1.78rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.02rem;
  }

  .brand {
    width: 166px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
