:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0a1020;
  --surface: rgba(11, 17, 34, 0.78);
  --surface-strong: rgba(13, 20, 41, 0.94);
  --surface-border: rgba(155, 180, 255, 0.18);
  --text: #edf2ff;
  --muted: #aeb9d8;
  --cyan: #3fd7ff;
  --blue: #4d7fff;
  --violet: #a14cff;
  --violet-soft: #c07cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(63, 215, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(161, 76, 255, 0.18), transparent 30%),
    radial-gradient(circle at 52% 100%, rgba(77, 127, 255, 0.15), transparent 42%),
    linear-gradient(180deg, #04060d 0%, #081021 42%, #05070d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(146, 167, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 167, 230, 0.07) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 86%);
}

body::after {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 26% 32%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 68% 16%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 86% 46%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 56% 62%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: cover;
  opacity: 0.7;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent, rgba(255, 255, 255, 0.015)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ccircle cx='12' cy='18' r='1' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='128' cy='64' r='1' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='74' cy='126' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.3;
  z-index: -1;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4, 7, 13, 0.66);
  border-bottom: 1px solid rgba(129, 155, 230, 0.12);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(95, 141, 255, 0.24));
}

.brand span {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.96rem;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(150, 176, 255, 0.2);
  border-radius: 16px;
  background: rgba(12, 18, 35, 0.94);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: white;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

.hero-section {
  position: relative;
  padding: 64px 0 32px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--cyan);
}

.hero-copy h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
}

.hero-copy-full {
  max-width: 920px;
}

.hero-lead,
.section-heading p,
.about-copy p,
.contact-copy p,
.service-card p,
.project-card p,
.testimonial-card p,
.trust-item p,
.stack-item span {
  color: var(--muted);
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 62ch;
  line-height: 1.72;
  font-size: 1.06rem;
}

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

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 36px rgba(92, 83, 255, 0.28);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(14, 20, 39, 0.86);
  border: 1px solid rgba(161, 180, 255, 0.18);
}

.button-ghost {
  background: transparent;
}

.partner-strip {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(var(--max-width), calc(100% - 48px));
  margin-top: 28px;
  margin-inline: auto;
  padding-inline: 0;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.16) 7%, rgba(0, 0, 0, 0.62) 13%, black 20%, black 80%, rgba(0, 0, 0, 0.62) 87%, rgba(0, 0, 0, 0.16) 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.16) 7%, rgba(0, 0, 0, 0.62) 13%, black 20%, black 80%, rgba(0, 0, 0, 0.62) 87%, rgba(0, 0, 0, 0.16) 93%, transparent 100%);
}

.partner-marquee {
  position: relative;
  left: 50%;
  display: flex;
  width: max-content;
  will-change: transform;
  animation: partnerMarquee 48s linear infinite;
}

.partner-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  padding-inline: 11px;
  white-space: nowrap;
}

.partner-item {
  flex: 0 0 auto;
  min-width: 196px;
  width: 196px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(11, 17, 34, 0.72);
  border: 1px solid rgba(155, 180, 255, 0.18);
}

.partner-item img {
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-item,
.service-card,
.project-card,
.stack-panel,
.testimonial-card,
.contact-panel {
  background: linear-gradient(180deg, rgba(15, 21, 42, 0.9), rgba(9, 14, 28, 0.92));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-orbits::before,
.hero-orbits::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orbits::before {
  background:
    radial-gradient(circle at 48% 50%, rgba(94, 174, 255, 0.12), transparent 18%),
    radial-gradient(circle at 60% 42%, rgba(63, 215, 255, 0.1), transparent 20%),
    radial-gradient(circle at 58% 72%, rgba(161, 76, 255, 0.08), transparent 24%);
  filter: blur(28px);
  opacity: 0.72;
}

.hero-orbits::after {
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.18), transparent 14%, transparent 86%, rgba(5, 7, 13, 0.18)),
    radial-gradient(circle at 46% 50%, rgba(255, 255, 255, 0.03), transparent 42%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.96;
  mix-blend-mode: screen;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.trust-item {
  padding: 20px 22px;
  border-radius: 22px;
}

.trust-index {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--violet-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.trust-item h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.trust-item p {
  margin: 0;
  line-height: 1.62;
}

.section {
  padding: 110px 0 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 0.98;
  max-width: 18ch;
}

.section-heading p,
.about-copy p,
.contact-copy p {
  margin: 0;
  max-width: 66ch;
  line-height: 1.72;
}

.services-grid,
.projects-grid,
.testimonials-grid {
  display: grid;
  gap: 18px;
}

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

.service-card {
  position: relative;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto 12% -44% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 159, 255, 0.18), transparent 72%);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(63, 215, 255, 0.18), rgba(161, 76, 255, 0.24));
  border: 1px solid rgba(158, 188, 255, 0.2);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.service-card h3,
.project-card h3,
.testimonial-card strong {
  margin: 18px 0 0;
  font-size: 1.32rem;
}

.service-card p,
.project-card p,
.testimonial-card p {
  margin: 14px 0 0;
  line-height: 1.72;
}

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

.project-card {
  position: relative;
  min-height: 280px;
  padding: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(74, 126, 255, 0.08), transparent 38%),
    linear-gradient(180deg, transparent, rgba(192, 124, 255, 0.08));
  pointer-events: none;
}

.project-card-accent {
  background:
    radial-gradient(circle at top left, rgba(63, 215, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(24, 35, 74, 0.94), rgba(17, 12, 42, 0.94));
}

.project-kicker {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.project-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
  color: white;
  font-weight: 800;
}

.project-card a::after {
  content: "↗";
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.stack-panel {
  border-radius: 30px;
  padding: 28px;
}

.stack-item + .stack-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(147, 172, 241, 0.12);
}

.stack-item strong {
  display: block;
  font-size: 1.06rem;
}

.stack-item span {
  display: block;
  margin-top: 8px;
  line-height: 1.58;
}

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

.testimonial-card {
  padding: 26px;
  border-radius: 28px;
}

.testimonial-card strong {
  display: block;
  margin-top: 24px;
}

.testimonial-card span {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 0.92rem;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(63, 215, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(161, 76, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(13, 20, 41, 0.96), rgba(9, 14, 28, 0.98));
}

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

.contact-methods {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.contact-method-card,
.contact-form {
  background: rgba(8, 13, 28, 0.78);
  border: 1px solid rgba(155, 180, 255, 0.16);
  border-radius: 26px;
}

.contact-method-card {
  padding: 22px;
}

.contact-method-card strong,
.contact-form-intro h3 {
  display: block;
  margin-top: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.contact-method-card p,
.contact-form-intro p,
.form-field small,
.form-status {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.contact-method-label {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.contact-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-small {
  padding: 12px 18px;
  font-size: 0.95rem;
}

.contact-actions {
  align-content: start;
  margin-top: 0;
}

.contact-form-shell {
  display: grid;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.contact-form-intro .eyebrow {
  margin-bottom: 10px;
}

.contact-form-intro h3 {
  margin: 0;
}

.contact-form-intro p {
  margin-top: 12px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field > span:first-child {
  font-weight: 800;
  font-size: 0.98rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(155, 180, 255, 0.2);
  border-radius: 18px;
  background: rgba(5, 9, 20, 0.92);
  color: var(--text);
  font: inherit;
  padding: 15px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(174, 185, 216, 0.72);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(99, 154, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(77, 127, 255, 0.14);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: rgba(255, 110, 146, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 110, 146, 0.12);
}

.form-field.is-valid input,
.form-field.is-valid textarea {
  border-color: rgba(86, 210, 171, 0.56);
}

.field-error {
  min-height: 1.1rem;
  color: #ff9fb4;
  font-size: 0.92rem;
}

.form-field-honeypot {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.form-status.is-error {
  color: #ffb3c5;
}

.form-status.is-success {
  color: #8ceac4;
}

.contact-form.is-submitting button[type="submit"] {
  opacity: 0.75;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid rgba(129, 155, 230, 0.12);
  padding: 20px 0 34px;
}

.legal-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(63, 215, 255, 0.1), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(161, 76, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #081021 48%, #05070d 100%);
}

.legal-main {
  padding: 52px 0 110px;
}

.legal-hero h1,
.legal-hero h2,
.legal-card h3 {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: -0.05em;
}

.legal-hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.92;
  max-width: 14ch;
}

.legal-hero h2 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
  max-width: 18ch;
}

.legal-meta,
.legal-content {
  display: grid;
  gap: 18px;
}

.legal-meta {
  margin-top: 28px;
}

.legal-meta p,
.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.76;
}

.legal-card {
  padding: 28px;
  border-radius: 28px;
}

.legal-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-row p {
  margin: 0;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms ease, transform 640ms ease;
}

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

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

[data-tilt]:hover {
  border-color: rgba(181, 198, 255, 0.3);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

@keyframes partnerMarquee {
  0% {
    /* The middle duplicate is centered in the viewport. */
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    /* Move by one complete track; the third duplicate then has the same position. */
    transform: translate3d(-83.333333%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee {
    animation: none;
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1120px) {
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .services-grid,
  .projects-grid,
  .trust-strip,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-footer {
    align-items: stretch;
  }

  .contact-form-footer .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 24px;
    background: rgba(9, 14, 28, 0.96);
    border: 1px solid rgba(156, 176, 255, 0.16);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .services-grid,
  .projects-grid,
  .trust-strip,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .partner-item {
    width: 144px;
    height: 76px;
  }

  .contact-method-actions,
  .contact-actions,
  .contact-form-footer {
    flex-direction: column;
  }

  .contact-method-actions .button,
  .contact-actions .button,
  .contact-form-footer .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .partner-strip {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .hero-orbits::before {
    opacity: 0.5;
    filter: blur(20px);
  }

  .contact-panel {
    padding: 24px;
  }

  .legal-main {
    padding-top: 34px;
  }
}
