:root {
  color-scheme: dark;
  --page: #08090d;
  --panel: #0c0d13;
  --panel-raised: #101117;
  --text: #f4f3f8;
  --muted: #a5a3ae;
  --subtle: #75727f;
  --line: #24242d;
  --violet: #9b5cff;
  --violet-bright: #b182ff;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  margin: 0;
  padding: 38px 24px 48px;
  background:
    radial-gradient(ellipse at 50% 44%, rgb(31 20 49 / 18%), transparent 48%),
    var(--page);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 4px;
}

.site-shell {
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #36343e;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 30px 100px rgb(0 0 0 / 25%);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 48px;
  border-bottom: 1px solid rgb(255 255 255 / 3%);
  background: rgb(10 11 16 / 72%);
}

.brand,
.brand-mark,
.desktop-nav,
.header-cta,
.client,
.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 9px;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 25px;
  align-items: center;
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -6px;
}

.brand-mark span:first-child {
  transform: translateY(-1px);
}

.brand-mark span:last-child {
  transform: translate(2px, 3px);
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

.desktop-nav {
  align-self: stretch;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #d1cfd8;
  font-size: 12px;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-current {
  color: var(--text);
}

.desktop-nav a.is-current::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--violet);
  content: "";
}

.header-cta {
  min-height: 36px;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid #4a4853;
  border-radius: 6px;
  font-size: 11px;
  transition: border-color 160ms ease, background 160ms ease;
}

.header-cta:hover {
  border-color: var(--violet);
  background: rgb(155 92 255 / 8%);
}

.header-cta span {
  font-size: 14px;
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.language-switcher button {
  min-width: 31px;
  min-height: 30px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--subtle);
  font: 600 10px var(--font-body);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.language-switcher button:hover {
  color: var(--text);
}

.language-switcher button[aria-pressed="true"] {
  border-color: #40334f;
  background: rgb(155 92 255 / 10%);
  color: var(--violet-bright);
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 2px;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 326px;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  overflow: hidden;
  padding: 48px 56px 44px;
  background:
    radial-gradient(ellipse at 78% 58%, rgb(91 52 144 / 11%), transparent 36%),
    linear-gradient(112deg, #0b0c12 4%, #0a0b10 60%, #0a0a10 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.eyebrow {
  margin: 0;
  color: var(--violet-bright);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.25px;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 13px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -2.8px;
  line-height: 0.99;
}

.hero h1 span {
  color: var(--violet);
}

.hero-description {
  max-width: 370px;
  margin-bottom: 21px;
  color: #b4b1bc;
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  min-height: 39px;
  justify-content: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: linear-gradient(100deg, #8d4ded, #a365ff);
  box-shadow: 0 5px 20px rgb(137 67 238 / 16%);
}

.button-primary:hover {
  background: linear-gradient(100deg, #9a5bf4, #ad76ff);
}

.button-primary span {
  font-size: 15px;
}

.button-quiet {
  border-color: #4a4853;
}

.button-quiet:hover {
  border-color: #777281;
  background: rgb(255 255 255 / 3%);
}

.hero-art {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  justify-self: end;
  margin-right: 5%;
}

.hero-art::before {
  position: absolute;
  inset: 8% -22% 14% -12%;
  background: radial-gradient(ellipse, rgb(13 14 22 / 0%), transparent 63%);
  content: "";
}

.art-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.art-orbit-outer {
  width: 68%;
  border: 11px solid transparent;
  background:
    linear-gradient(#0a0b10, #0a0b10) padding-box,
    conic-gradient(from 30deg, #8d4bea, #6438b4, #9a5cf4, #6741bd, #8d4bea) border-box;
  box-shadow: 0 0 35px rgb(141 75 234 / 19%), inset 0 0 30px rgb(155 92 255 / 5%);
}

.art-orbit-middle {
  width: 52%;
  border: 1px solid rgb(155 92 255 / 22%);
}

.art-orbit-inner {
  width: 34%;
  border: 1px solid rgb(155 92 255 / 35%);
}

.art-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  border: 1px dashed rgb(177 130 255 / 78%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 45s linear infinite;
}

.code-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18%;
  overflow: visible;
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  transform: translate(-50%, -50%);
}

.art-trails {
  position: absolute;
  z-index: 0;
  top: 24%;
  right: -28%;
  width: 75%;
  height: 48%;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 100% 50%, transparent 0 8px, rgb(152 93 255 / 10%) 9px 10px, transparent 11px 15px);
  mask-image: linear-gradient(90deg, transparent, #000 48%, transparent);
  transform: rotate(-18deg);
  opacity: 0.7;
}

.trusted {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d0e14;
}

.trusted > p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--subtle);
  font-size: 11px;
}

.client-list {
  display: grid;
  flex: 1;
  align-items: center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #e7e5eb;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.client-icon {
  display: flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  color: var(--violet-bright);
}

.client-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.section-pad {
  padding: 28px 48px 42px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.65px;
}

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

.service-card {
  min-height: 180px;
  padding: 17px 16px 15px;
  border: 1px solid #2b2b35;
  border-radius: 7px;
  background: linear-gradient(145deg, #111219, #0e0f15);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgb(155 92 255 / 55%);
  background: linear-gradient(145deg, #15131e, #0e0f15);
}

.service-icon {
  display: flex;
  height: 26px;
  align-items: center;
  margin-bottom: 7px;
  color: var(--violet);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-card h3 {
  min-height: 36px;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}

.service-card p {
  min-height: 42px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.service-card .stage-step {
  min-height: 0;
  margin-bottom: 4px;
  color: var(--violet-bright);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.why {
  padding-top: 6px;
}

.service-grid.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-card {
  min-height: 0;
}

.why-card h3 {
  min-height: 0;
}

.service-card a {
  color: var(--violet-bright);
  font-size: 10px;
  transition: color 160ms ease;
}

.service-card a:hover {
  color: #d0b4ff;
}

.service-card a span {
  margin-left: 4px;
}

.closing-note {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 24px 30px;
  text-align: center;
}

.closing-mark {
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -3px;
}

.closing-note p {
  margin: 0;
  color: #eeeaf4;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
}

.closing-note p span {
  letter-spacing: 1.5px;
}

.footer-link {
  color: var(--muted);
  font-size: 11px;
  transition: color 160ms ease;
}

.footer-link:hover {
  color: var(--violet-bright);
}

.contact-dialog {
  width: min(100% - 32px, 480px);
  max-width: 480px;
  max-height: min(90vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid #403b4b;
  border-radius: 12px;
  background: #101117;
  color: var(--text);
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.contact-dialog::backdrop {
  background: rgb(4 4 8 / 78%);
  backdrop-filter: blur(5px);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 30px;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #373641;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 400 23px/1 var(--font-body);
  cursor: pointer;
}

.contact-close:hover {
  border-color: var(--violet);
  color: var(--text);
}

.contact-form .eyebrow {
  margin: 4px 42px 0 0;
}

.contact-form h2 {
  margin: 0 36px 8px 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.contact-form label {
  margin-top: 4px;
  color: #d9d6e0;
  font-size: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #34333d;
  border-radius: 6px;
  outline: none;
  background: #0b0c11;
  color: var(--text);
  font: 13px/1.5 var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgb(155 92 255 / 13%);
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-submit {
  margin-top: 8px;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-note {
  margin: 0;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.contact-status {
  min-height: 18px;
  margin: 0;
  color: var(--violet-bright);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 920px) {
  body {
    padding: 24px 18px 36px;
  }

  .site-header {
    height: 68px;
    gap: 18px;
    padding: 0 30px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 11px;
  }

  .hero {
    min-height: 310px;
    padding-right: 38px;
    padding-left: 38px;
  }

  .hero-art {
    width: min(100%, 340px);
    margin-right: 0;
  }

  .trusted {
    padding-right: 32px;
    padding-left: 32px;
  }

  .client-list {
    gap: 10px;
  }

  .client {
    gap: 6px;
    font-size: 11px;
    white-space: normal;
  }

  .section-pad {
    padding-right: 32px;
    padding-left: 32px;
  }

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

@media (max-width: 680px) {
  body {
    padding: 12px 10px 24px;
  }

  .site-shell {
    border-radius: 11px;
  }

  .site-header {
    height: 63px;
    padding: 0 19px;
  }

  .brand-name {
    font-size: 13px;
  }

  .desktop-nav,
  .site-header > .header-cta {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 35px;
    height: 35px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid #34323d;
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 15px;
    height: 1px;
    background: #eeeaf4;
    transition: transform 160ms ease;
  }

  .mobile-menu[open] summary span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .mobile-menu[open] summary span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 190px;
    gap: 2px;
    padding: 9px;
    border: 1px solid #34323d;
    border-radius: 8px;
    background: #111117;
    box-shadow: 0 15px 35px rgb(0 0 0 / 45%);
  }

  .mobile-menu nav a {
    padding: 10px 11px;
    border-radius: 4px;
    color: #d8d5df;
    font-size: 13px;
  }

  .mobile-menu nav a:hover {
    background: rgb(155 92 255 / 10%);
    color: #fff;
  }

  .mobile-menu nav a:last-child {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: var(--violet-bright);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 35px 23px 20px;
  }

  .hero h1 {
    margin-top: 11px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-description {
    max-width: 390px;
    font-size: 13px;
  }

  .hero-art {
    width: min(73vw, 260px);
    justify-self: center;
    margin: 4px auto -12px;
  }

  .art-orbit-outer {
    border-width: 8px;
  }

  .trusted {
    display: grid;
    justify-items: center;
    gap: 13px;
    padding: 14px 12px 16px;
  }

  .trusted > p {
    font-size: 10px;
  }

  .client-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .client {
    justify-content: flex-start;
    font-size: 12px;
  }

  .section-pad {
    padding: 25px 17px 28px;
  }

  .section-heading h2 {
    font-size: 19px;
    line-height: 1.25;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .service-card {
    display: grid;
    min-height: auto;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 4px;
    padding: 15px;
  }

  .service-grid.why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    display: block;
  }

  .service-icon {
    grid-row: 1 / 5;
    align-items: start;
    margin: 1px 0 0;
  }

  .service-card h3 {
    min-height: 0;
    margin-bottom: 5px;
  }

  .service-card p {
    min-height: 0;
    margin-bottom: 8px;
    font-size: 11px;
  }

  .service-card a {
    font-size: 10px;
  }

  .closing-note {
    padding-bottom: 22px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .closing-note p {
    font-size: 12px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
