:root {
  color-scheme: light;
  --ink: #050507;
  --ink-soft: #17181c;
  --paper: #f7f8fb;
  --white: #ffffff;
  --muted: #686d7a;
  --line: rgba(5, 5, 7, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --purple: #7a45ff;
  --blue: #0876dd;
  --cyan: #17c6ee;
  --gold: #d7b56d;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: .75rem 1rem;
  font-weight: 700;
}

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

.site-shell {
  overflow: hidden;
  background: var(--paper);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 188px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-type {
  display: grid;
  gap: .02rem;
  color: var(--white);
  line-height: 1;
}

.brand-type strong {
  font-size: 1.62rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.brand-type small {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .38em;
  opacity: .78;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: .92rem;
  font-weight: 650;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--white);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: .22rem;
  color: rgba(255, 255, 255, 0.72);
}

.language-switch a,
.language-switch span {
  min-width: 36px;
  border-radius: 999px;
  padding: .28rem .54rem;
  text-align: center;
  font-size: .78rem;
  line-height: 1;
}

.language-switch [aria-current="true"] {
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  padding: 7.2rem 0 4rem;
  color: var(--white);
  background: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .95) 0%, rgba(5, 5, 7, .78) 34%, rgba(5, 5, 7, .18) 72%, rgba(5, 5, 7, .4) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, .1) 0%, rgba(5, 5, 7, .25) 62%, rgba(5, 5, 7, .88) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  justify-self: center;
  transform: translateX(calc((min(var(--max), calc(100vw - 32px)) - 760px) / -2));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  margin: 0 0 .38rem;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.group-badge {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  padding: .46rem .72rem;
  font-size: .82rem;
  font-weight: 720;
  line-height: 1.15;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 820;
}

.lead {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .78rem 1.15rem;
  font-weight: 760;
  line-height: 1.1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

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

.button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-secondary {
  border-color: var(--line-dark);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.metric {
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
}

.metric strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
}

.metric span {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
}

.proof-strip {
  background: var(--ink);
  color: var(--white);
  padding: 1.2rem 0 1.45rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

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

.section-kicker {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--cyan);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head h2,
.statement h2,
.contact-panel h2 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 0;
}

.section-head p,
.statement p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-dark .section-head p,
.section-dark .statement p {
  color: rgba(255, 255, 255, .64);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.intro-copy {
  max-width: 700px;
}

.intro-copy p {
  color: #3c414c;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.24;
  letter-spacing: 0;
}

.proof-list {
  display: grid;
  gap: .75rem;
}

.proof-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: .95rem;
}

.proof-item span {
  color: var(--blue);
  font-weight: 850;
}

.proof-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 1.35rem;
}

.card h3 {
  font-size: 1.28rem;
  line-height: 1.15;
  margin-bottom: .8rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card-mark {
  width: 38px;
  height: 38px;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 198, 238, .16), rgba(122, 69, 255, .24));
  border: 1px solid rgba(122, 69, 255, .25);
  position: relative;
}

.card-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  border-left-color: var(--cyan);
}

.showcase {
  background:
    linear-gradient(180deg, #050507 0%, #0a0b10 54%, #050507 100%);
}

.showcase-list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.showcase-case {
  display: grid;
  grid-template-columns: minmax(280px, .46fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.case-copy {
  max-width: 440px;
}

.case-index {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.case-copy p:not(.case-index) {
  color: rgba(255, 255, 255, .66);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.3rem;
}

.case-tags span {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: .34rem .62rem;
  color: rgba(255, 255, 255, .74);
  font-size: .78rem;
  font-weight: 740;
}

.case-media {
  min-width: 0;
}

.case-media img {
  cursor: zoom-in;
  transition:
    border-color .2s ease,
    filter .2s ease,
    transform .2s ease;
}

.case-media img:hover {
  border-color: rgba(255, 255, 255, .32);
  filter: saturate(1.05) contrast(1.02);
}

.case-media img:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.case-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #08090d;
}

.case-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(128px, 18vw, 188px);
  gap: .55rem;
  margin-top: .55rem;
  overflow-x: auto;
  padding: .08rem .08rem .42rem;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 255, 255, .26) rgba(255, 255, 255, .08);
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: #08090d;
  scroll-snap-align: start;
}

.case-gallery img:hover {
  transform: translateY(-2px);
}

.case-gallery-contain img {
  object-fit: contain;
  background: #f7f8fb;
}

.case-media-app .case-gallery img {
  aspect-ratio: 9 / 16;
}

.case-media-app .case-gallery {
  grid-auto-columns: clamp(82px, 10vw, 116px);
}

.gallery-lightbox {
  align-items: center;
  background: rgba(2, 3, 8, .82);
  display: none;
  inset: 0;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  position: fixed;
  z-index: 90;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-shell {
  display: grid;
  gap: .9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  max-height: min(900px, 92vh);
  max-width: min(1240px, 96vw);
  position: relative;
  width: 100%;
}

.gallery-figure {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  display: grid;
  grid-column: 2;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.gallery-full {
  background: #f7f8fb;
  height: 100%;
  max-height: calc(92vh - 150px);
  object-fit: contain;
  width: 100%;
}

.gallery-caption {
  color: rgba(255, 255, 255, .74);
  font-size: .82rem;
  font-weight: 680;
  padding: .75rem .9rem;
}

.gallery-close,
.gallery-nav,
.gallery-thumb {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  color: white;
  cursor: pointer;
}

.gallery-close,
.gallery-nav {
  align-self: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 7, .72);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  display: grid;
  font-size: 1.7rem;
  height: 44px;
  line-height: 1;
  place-items: center;
  width: 44px;
}

.gallery-close {
  position: absolute;
  right: 0;
  top: -54px;
}

.gallery-prev {
  grid-column: 1;
}

.gallery-next {
  grid-column: 3;
}

.gallery-rail {
  display: grid;
  gap: .45rem;
  grid-auto-columns: 82px;
  grid-auto-flow: column;
  grid-column: 2;
  overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-color: rgba(255, 255, 255, .26) rgba(255, 255, 255, .08);
}

.gallery-thumb {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, .07);
  border-radius: 6px;
  opacity: .62;
  overflow: hidden;
  padding: 0;
}

.gallery-thumb.is-active {
  border-color: var(--cyan);
  opacity: 1;
}

.gallery-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.gallery-open {
  overflow: hidden;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .9rem;
}

.step {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, .045);
}

.step span {
  display: block;
  color: var(--gold);
  font-weight: 850;
  margin-bottom: 2rem;
}

.step h3 {
  margin-bottom: .6rem;
  font-size: 1.08rem;
}

.step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .94rem;
}

.ecosystem {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.ecosystem-item {
  min-height: 250px;
  background: var(--white);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-item h3 {
  font-size: 1.5rem;
  margin-bottom: .7rem;
}

.ecosystem-item p {
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .65rem;
  color: #3b404b;
  font-size: .78rem;
  font-weight: 760;
}

.statement {
  max-width: 900px;
}

.statement p {
  max-width: 680px;
  margin-top: 1.2rem;
}

.contact {
  background:
    radial-gradient(circle at 14% 24%, rgba(23, 198, 238, .14), transparent 28%),
    radial-gradient(circle at 76% 32%, rgba(122, 69, 255, .18), transparent 30%),
    var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-links {
  display: grid;
  gap: .7rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 780;
}

.contact-link span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding: 2.6rem 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  min-width: 0;
}

.footer-brand .brand-mark {
  width: 46px;
  height: 46px;
}

.footer-brand .brand-type strong {
  font-size: 1.42rem;
}

.footer-brand .brand-type small {
  font-size: .58rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .92rem;
}

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    inset: 74px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: rgba(5, 5, 7, .985);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
    padding: .8rem;
  }

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

  .nav-links a {
    padding: .8rem;
  }

  .language-switch {
    margin: .5rem .8rem .2rem;
    align-self: flex-start;
  }

  .hero-content {
    transform: none;
  }

  .section-head,
  .intro-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

  .case-copy {
    max-width: none;
  }

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

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

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

  .brand img {
    width: 48px;
  }

  .brand-type strong {
    font-size: 1.35rem;
  }

  .brand-type small {
    font-size: .55rem;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .hero-media {
    object-position: 64% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 5, 7, .95), rgba(5, 5, 7, .63)),
      linear-gradient(180deg, rgba(5, 5, 7, .14), rgba(5, 5, 7, .96));
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-metrics,
  .cards,
  .workflow {
    grid-template-columns: 1fr;
  }

  .case-gallery {
    grid-auto-columns: clamp(116px, 34vw, 168px);
  }

  .case-media-app .case-gallery {
    grid-auto-columns: clamp(78px, 24vw, 108px);
  }

  .gallery-shell {
    grid-template-columns: 1fr;
  }

  .gallery-figure,
  .gallery-rail {
    grid-column: 1;
  }

  .gallery-nav {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 2;
  }

  .gallery-prev {
    left: .5rem;
  }

  .gallery-next {
    right: .5rem;
  }

  .card {
    min-height: 0;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

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