:root {
  --navy: #0d132a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --teal: #00b8ad;
  --light: #f2f4f7;
  --slate: #64748b;
  --paper: #ffffff;
  --ink: #0d132a;
  --muted: #64748b;
  --line: #dbe3ef;
  --line-soft: rgba(13, 19, 42, 0.1);
  --blue-soft: rgba(37, 99, 235, 0.1);
  --purple-soft: rgba(124, 58, 237, 0.1);
  --teal-soft: rgba(0, 184, 173, 0.1);
  --gradient: linear-gradient(135deg, var(--blue), var(--purple), var(--teal));
  --shadow: 0 22px 70px rgba(13, 19, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-name span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 750;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--navy);
  grid-column: 1;
  grid-row: 1;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle span:first-child {
  transform: translateY(-6px);
}

.nav-toggle span:last-child {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 86svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  isolation: isolate;
  padding: 126px 0 72px;
}

.hero::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(0, 184, 173, 0.38), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(124, 58, 237, 0.36), transparent 30%),
    linear-gradient(145deg, #081228 0%, #0a1b3e 48%, #09162f 72%, var(--navy) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 19, 42, 0) 76%, var(--navy) 100%);
  content: "";
  pointer-events: none;
}

.hero-grid-canvas {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 1;
  width: auto;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-content {
  color: var(--paper);
}

.hero-content > * {
  max-width: 720px;
}

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

.hero h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.5rem, 8.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  background: linear-gradient(135deg, #67e8f9, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .eyebrow {
  color: #9ff3ff;
}

.hero-copy {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.13rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-support {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  font-weight: 700;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.25);
}

.button-secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--navy);
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(37, 99, 235, 0.5);
  color: var(--blue);
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.16);
}

.hero-visual {
  position: relative;
  overflow: visible;
  background: transparent;
  padding: 0;
}

.hero-visual::after {
  display: none;
  content: none;
}

.hero-mark {
  width: min(280px, 74%);
  margin: 0 auto;
}

.hero-lockup {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.32));
}

.hero-visual-copy {
  margin-top: 20px;
  text-align: center;
}

.hero-visual-copy span {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-visual-copy p {
  max-width: 340px;
  margin: 8px auto 0;
  color: var(--slate);
}

.signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.signal-list > div {
  display: grid;
  grid-template-columns: 16px minmax(112px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.signal-list strong {
  color: var(--navy);
}

.signal-list p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
}

.signal-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.45em;
  border-radius: 999px;
}

.signal-purple {
  background: var(--purple);
}

.signal-violet {
  background: #4f46e5;
}

.signal-blue {
  background: var(--blue);
}

.context-strip {
  background: var(--navy);
  color: var(--paper);
}

.strip-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-inline: 1px solid rgba(255, 255, 255, 0.14);
}

.strip-grid > div {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  padding: 28px;
}

.strip-kicker {
  color: #a78bfa;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.strip-grid strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.03rem;
  line-height: 1.35;
}

.section {
  padding: 96px 0;
}

.section-grid,
.about-layout,
.contact-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.section-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 38px;
}

.section-heading {
  position: sticky;
  top: 104px;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy p,
.about-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-copy p + p,
.about-copy p + p {
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--navy);
  font-weight: 750;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gradient);
  content: "";
}

.services-section,
.case-section {
  background: var(--paper);
}

.services-section {
  overflow: hidden;
}

.service-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-grid.is-carousel-ready {
  position: relative;
  display: block;
  height: 560px;
  padding: 52px 0;
  overflow: hidden;
}

.service-card,
.case-card,
.blog-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.service-grid.is-carousel-ready .service-card {
  --carousel-opacity: 0;
  --carousel-scale: 0.76;
  --carousel-x: 0px;

  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(336px, calc(100% - 56px));
  min-height: 456px;
  opacity: var(--carousel-opacity);
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(var(--carousel-x)) scale(var(--carousel-scale));
  transform-origin: center;
  transition:
    border-color 420ms ease,
    box-shadow 420ms ease,
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-grid.is-carousel-ready .service-card.is-active {
  --carousel-opacity: 1;
  --carousel-scale: 1.08;
  --carousel-x: 0px;

  z-index: 5;
  border-color: rgba(37, 99, 235, 0.56);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.1)),
    var(--paper);
  box-shadow:
    0 34px 90px rgba(37, 99, 235, 0.22),
    0 0 0 6px rgba(37, 99, 235, 0.08);
  pointer-events: auto;
}

.service-grid.is-carousel-ready .service-card.is-prev {
  --carousel-opacity: 0.58;
  --carousel-scale: 0.9;
  --carousel-x: clamp(-390px, -32vw, -310px);

  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

.service-grid.is-carousel-ready .service-card.is-next {
  --carousel-opacity: 0.58;
  --carousel-scale: 0.9;
  --carousel-x: clamp(310px, 32vw, 390px);

  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

.service-grid.is-carousel-ready .service-card.is-far-prev {
  --carousel-opacity: 0.14;
  --carousel-scale: 0.76;
  --carousel-x: clamp(-760px, -64vw, -620px);
}

.service-grid.is-carousel-ready .service-card.is-far-next {
  --carousel-opacity: 0.14;
  --carousel-scale: 0.76;
  --carousel-x: clamp(620px, 64vw, 760px);
}

.service-grid.is-carousel-ready .service-card.is-active .service-number {
  background: var(--gradient);
  color: var(--paper);
}

.service-number {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.service-card:nth-child(2n) .service-number {
  background: var(--purple-soft);
  color: var(--purple);
}

.service-card h3,
.case-card h3,
.blog-card h3 {
  margin: 24px 0 12px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p,
.case-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}

.service-card li {
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 750;
  padding-top: 10px;
}

.example-section {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.16)),
    var(--navy);
  color: var(--paper);
}

.example-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: start;
}

.example-panel h2 {
  color: var(--paper);
}

.example-flow {
  display: grid;
  gap: 14px;
}

.flow-step {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.flow-step span {
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-step p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.case-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.case-card {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.case-card h3 {
  margin: 4px 0 0;
  font-size: 1.6rem;
}

.case-label,
.blog-topic {
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.blog-topic {
  background: var(--purple-soft);
  color: var(--purple);
}

.blog-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.blog-card {
  min-height: 305px;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.blog-card h3 {
  margin-top: 22px;
}

.blog-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  color: var(--purple);
  outline: none;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.14)),
    var(--navy);
  color: var(--paper);
}

.contact-layout {
  align-items: center;
}

.contact-copy h2 {
  color: var(--paper);
}

.contact-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-methods a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--paper);
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  box-shadow: none;
}

.contact-form label {
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--navy);
  font: inherit;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  margin-top: 8px;
  font: inherit;
}

.form-status {
  min-height: 24px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--purple);
  outline: none;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content > * {
    max-width: 800px;
  }

  .hero-visual {
    max-width: 640px;
  }

  .service-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card,
  .blog-card {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 12px 16px 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 56px;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 72px 0;
  }

  .section-grid,
  .about-layout,
  .contact-layout,
  .example-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading {
    position: static;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero,
  .strip-grid,
  .section-grid,
  .about-layout,
  .contact-layout,
  .example-panel,
  .section-header,
  .service-grid,
  .case-grid,
  .blog-grid,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero h1 {
    font-size: clamp(1.5rem, 12vw, 3.2rem);
  }

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

  .hero-support {
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    padding: 0;
  }

  .signal-list > div {
    grid-template-columns: 14px 1fr;
  }

  .signal-list p {
    grid-column: 2;
  }

  .strip-grid,
  .service-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .service-grid.is-carousel-ready {
    height: 602px;
    padding: 44px 0;
  }

  .service-grid.is-carousel-ready .service-card {
    width: min(100% - 28px, 360px);
    min-height: 500px;
  }

  .service-grid.is-carousel-ready .service-card.is-active {
    --carousel-scale: 1;
  }

  .service-grid.is-carousel-ready .service-card.is-prev {
    --carousel-x: clamp(-310px, -82vw, -250px);
  }

  .service-grid.is-carousel-ready .service-card.is-next {
    --carousel-x: clamp(250px, 82vw, 310px);
  }

  .service-grid.is-carousel-ready .service-card.is-far-prev {
    --carousel-x: clamp(-560px, -150vw, -420px);
  }

  .service-grid.is-carousel-ready .service-card.is-far-next {
    --carousel-x: clamp(420px, 150vw, 560px);
  }

  .strip-grid > div {
    min-height: 112px;
    padding: 22px;
  }

  .service-card,
  .case-card,
  .blog-card,
  .contact-form {
    padding: 22px;
  }

  .case-card h3 {
    font-size: 1.36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-grid.is-carousel-ready .service-card {
    transition: none;
  }

  .hero-grid-canvas {
    opacity: 0.62;
  }
}
