:root {
  --black: #000;
  --white: #fff;
  --blue: #0084ff;
  --cyan: #36a7e0;
  --card: #141414;
  --card-soft: hsla(0, 0%, 100%, .08);
  --border: hsla(0, 0%, 100%, .12);
  --text-soft: hsla(0, 0%, 100%, .8);
  --text-dim: hsla(0, 0%, 100%, .45);
  --container: 1080px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --motion: 720ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  border-bottom: 1px solid transparent;
  transition: background-color .22s ease, border-color .22s ease, backdrop-filter .22s ease;
}
.site-header.is-scrolled {
  border-bottom-color: hsla(0, 0%, 100%, .1);
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header__inner {
  display: flex;
  width: min(calc(100% - 40px), var(--container));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1;
}
.brand--footer { font-size: 22px; }

.primary-nav { display: flex; gap: 28px; }
.primary-nav a, .footer-nav a {
  color: #bcbcbc;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.primary-nav a:hover, .footer-nav a:hover { color: var(--white); }
.primary-nav { align-items: center; }
.primary-nav .lang-switch {
  padding: 5px 11px;
  border: 1px solid hsla(0, 0%, 100%, .22);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.primary-nav .lang-switch:hover { border-color: var(--white); background: var(--white); color: var(--black); }

/* ---------- Shared type ---------- */
.eyebrow {
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-align: center;
}

.section-heading {
  margin-top: 24px;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-align: center;
}

.hl { color: var(--white); }

/* ---------- Pill button ---------- */
.pill-button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 12px 24px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pill-button::after {
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 34%;
  background: linear-gradient(100deg, transparent, hsla(0, 0%, 100%, .7), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: skewX(-16deg);
}
.pill-button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px hsla(0, 0%, 100%, .14); }
.pill-button:hover::after { animation: sheen .72s var(--ease) both; }
.pill-button--large { min-height: 52px; padding: 16px 26px; font-size: 16px; }

@keyframes sheen {
  0% { left: -45%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 0;
  flex-direction: column;
  align-items: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .6s var(--ease);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero__blob--a {
  top: -260px; left: 50%;
  width: 900px; height: 620px;
  margin-left: -450px;
  background: radial-gradient(closest-side, hsla(0, 0%, 100%, .55), transparent);
  opacity: .32;
}
.hero__blob--b {
  top: 120px; left: 50%;
  width: 520px; height: 420px;
  margin-left: -640px;
  background: radial-gradient(closest-side, var(--blue), transparent);
  opacity: .28;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__blob--c {
  top: 200px; left: 50%;
  width: 480px; height: 400px;
  margin-left: 140px;
  background: radial-gradient(closest-side, var(--cyan), transparent);
  opacity: .22;
  animation: drift 19s ease-in-out -6s infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, -40px, 0) scale(1.12); }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(calc(100% - 40px), 900px);
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.hero__title {
  color: hsla(0, 0%, 100%, .5);
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(300px, 38vw, 460px);
  margin-top: clamp(40px, 6vw, 72px);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 96%);
}
.tiles {
  position: absolute;
  inset: 0;
  left: 50%;
  width: 1200px;
  margin-left: -600px;
}
.tile {
  position: absolute;
  width: var(--s, 96px);
  aspect-ratio: 1;
  border-radius: 24%;
  background: var(--bg);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .25), 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: float var(--d, 9s) ease-in-out var(--o, 0s) infinite alternate;
}
.tile img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.tile::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, hsla(0, 0%, 100%, .28), transparent 45%);
  content: "";
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  to { transform: translate3d(0, -18px, 0) rotate(calc(var(--r, 0deg) * -1)); }
}
.t1  { --s: 140px; left: 530px; top: 30px;  --r: -3deg; --d: 8s; z-index: 3; }
.t2  { --s: 112px; left: 370px; top: 80px;  --r: 4deg; --o: -2s; z-index: 2; }
.t3  { --s: 112px; left: 718px; top: 84px;  --r: -4deg; --o: -4s; z-index: 2; }
.t4  { --s: 92px;  left: 240px; top: 190px; --r: 6deg; --d: 11s; }
.t5  { --s: 92px;  left: 868px; top: 196px; --r: -6deg; --d: 10s; --o: -3s; }
.t6, .t7, .t8, .t9, .t10, .t11 { --bg: linear-gradient(140deg, #2a2a2a, #0e0e0e); opacity: .7; }
.t6  { --s: 76px;  left: 470px; top: 230px; --r: 3deg; --o: -5s; }
.t7  { --s: 76px;  left: 654px; top: 238px; --r: -3deg; --o: -1s; --bg: linear-gradient(140deg, #0f2a44, #0084ff); }
.t8  { --s: 60px;  left: 120px; top: 110px; --r: 8deg; --d: 12s; }
.t9  { --s: 60px;  left: 1020px; top: 120px; --r: -8deg; --d: 12s; --o: -6s; }
.t10 { --s: 64px;  left: 330px; top: 320px; --r: -5deg; --o: -7s; }
.t11 { --s: 64px;  left: 806px; top: 326px; --r: 5deg; --o: -2s; }

/* ---------- Light panel: What we do ---------- */
.panel--light {
  position: relative;
  z-index: 3;
  padding: clamp(56px, 7vw, 88px) 0;
  border-radius: 32px;
  background: var(--white);
  color: var(--black);
}
.panel--light .eyebrow { color: var(--black); }
.section-heading--light { color: rgba(0, 0, 0, .7); }

.cards {
  display: grid;
  margin-top: clamp(36px, 5vw, 56px);
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-width: 0;
  padding: 26px;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 349 / 380;
  border-radius: 24px;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}
.card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--card-bg);
  content: "";
  transition: transform .9s var(--ease-soft);
}
.card:hover::before { transform: scale(1.06); }
.card--apps { --card-bg: radial-gradient(120% 90% at 30% 10%, #2b6cff 0%, #0b1b3d 45%, #000 80%); }
.card--software { --card-bg: radial-gradient(120% 90% at 70% 10%, #5a5a5a 0%, #1b1b1b 45%, #000 80%); }
.card--content { --card-bg: radial-gradient(120% 90% at 50% 0%, #36a7e0 0%, #0c2533 45%, #000 80%); }

.card__index {
  position: absolute;
  top: 22px; left: 26px;
  color: hsla(0, 0%, 100%, .55);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.card__title {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.card__art {
  position: absolute;
  inset: 0 0 34%;
  display: grid;
  place-items: center;
  transition: transform .9s var(--ease-soft);
}
.card:hover .card__art { transform: translateY(-6px); }

/* phone */
.phone {
  position: relative;
  display: grid;
  width: 34%;
  aspect-ratio: 9 / 18;
  padding: 18% 12%;
  gap: 9%;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  border: 1.5px solid hsla(0, 0%, 100%, .35);
  border-radius: 22px;
  background: hsla(0, 0%, 100%, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: rotate(-8deg);
}
.phone i { aspect-ratio: 1; border-radius: 26%; background: hsla(0, 0%, 100%, .75); }
.phone i:nth-child(2) { background: #36a7e0; }
.phone i:nth-child(3) { background: #ff8a8a; }
.phone i:nth-child(4) { background: hsla(0, 0%, 100%, .3); }

/* window */
.window {
  position: relative;
  display: flex;
  width: 66%;
  aspect-ratio: 16 / 11;
  padding: 16% 8% 8%;
  flex-direction: column;
  gap: 9%;
  border: 1.5px solid hsla(0, 0%, 100%, .3);
  border-radius: 14px;
  background: hsla(0, 0%, 100%, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.window b {
  position: absolute;
  top: 7%; left: 6%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, .6);
  box-shadow: 10px 0 0 hsla(0, 0%, 100%, .4), 20px 0 0 hsla(0, 0%, 100%, .25);
}
.window i { height: 12%; border-radius: 6px; background: hsla(0, 0%, 100%, .55); }
.window i:nth-child(3) { width: 70%; background: hsla(0, 0%, 100%, .3); }
.window i:nth-child(4) { width: 45%; background: #0084ff; }

/* stack */
.stack { position: relative; width: 52%; aspect-ratio: 4 / 3; }
.stack i {
  position: absolute;
  inset: 0;
  border: 1.5px solid hsla(0, 0%, 100%, .3);
  border-radius: 14px;
  background: hsla(0, 0%, 100%, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.stack i:nth-child(1) { transform: translate(-16%, 18%) rotate(-10deg); }
.stack i:nth-child(2) { transform: translate(14%, 8%) rotate(8deg); }
.stack i:nth-child(3) {
  background:
    linear-gradient(hsla(0, 0%, 100%, .55), hsla(0, 0%, 100%, .55)) 12% 74% / 60% 8% no-repeat,
    linear-gradient(hsla(0, 0%, 100%, .3), hsla(0, 0%, 100%, .3)) 12% 88% / 40% 8% no-repeat,
    linear-gradient(140deg, #36a7e0, #0b3b57) 50% 0 / 100% 58% no-repeat,
    hsla(0, 0%, 100%, .08);
  transform: translateY(-8%);
}

/* ---------- Portfolio ---------- */
.portfolio {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 130px) 0;
}
.portfolio__glow {
  position: absolute;
  top: -200px; left: 50%;
  width: 820px; height: 520px;
  margin-left: -410px;
  border-radius: 50%;
  background: radial-gradient(closest-side, hsla(0, 0%, 100%, .16), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.portfolio .section-inner { position: relative; }
.portfolio__heading {
  max-width: 860px;
  margin-inline: auto;
  color: var(--text-dim);
  font-weight: 700;
  text-wrap: balance;
}

.products {
  display: grid;
  margin-top: clamp(48px, 6vw, 72px);
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.product {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 26px 24px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  grid-column: span 2;
  border: 1px solid hsla(0, 0%, 100%, .06);
  border-radius: 26px;
  background: var(--card-soft);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.product:hover { border-color: hsla(0, 0%, 100%, .2); background: hsla(0, 0%, 100%, .1); }
.product--wide { grid-column: span 3; padding: 32px 30px 28px; }

.product__head { display: flex; align-items: center; gap: 16px; }
.product__icon {
  width: 64px; height: 64px;
  flex: none;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .1), 0 14px 30px -12px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease-soft);
}
.product--wide .product__icon { width: 80px; height: 80px; }
.product:hover .product__icon { transform: translateY(-3px) rotate(-3deg); }
.product__name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.product--wide .product__name { font-size: 26px; }
.product__sub { margin-top: 3px; color: var(--text-dim); font-size: 15px; font-weight: 500; }
.product__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, .08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.product__desc { flex: 1; color: var(--text-soft); font-size: 15px; line-height: 1.45; }
.product__link {
  display: inline-flex;
  margin-top: 4px;
  padding: 10px 16px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.product__link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px hsla(0, 0%, 100%, .14); }
.product__link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; border-top: 1px solid hsla(0, 0%, 100%, .08); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-copy { width: 100%; color: #8a8a8a; font-size: 12px; }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
  transition: opacity var(--motion) ease, transform var(--motion) var(--ease-soft);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .products .reveal:nth-child(2) { transition-delay: 100ms; }
.js .products .reveal:nth-child(3) { transition-delay: 0ms; }
.js .products .reveal:nth-child(4) { transition-delay: 100ms; }
.js .products .reveal:nth-child(5) { transition-delay: 200ms; }


.js .hero__content > * {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 22px, 0);
  transition: opacity .8s ease, transform 1s var(--ease-soft), filter .9s ease;
}
.js .hero__visual { opacity: 0; transform: translate3d(0, 80px, 0) scale(.96); transition: opacity 1s ease .35s, transform 1.4s var(--ease-soft) .35s; }
.js.is-loaded .hero__content > * { opacity: 1; filter: none; transform: none; }
.js.is-loaded .hero__content > :nth-child(2) { transition-delay: .2s; }
.js.is-loaded .hero__visual { opacity: 1; transform: none; }
.js.is-loaded .pill-button { transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .8s ease .3s, filter .9s ease .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: auto; min-height: 300px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .product--wide { grid-column: span 1; }
  .product:last-child { grid-column: span 2; }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .section-inner, .site-header__inner { width: min(calc(100% - 32px), var(--container)); }
  .brand { font-size: 26px; }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 13px; }
  .panel--light { border-radius: 28px; }
  .eyebrow { font-size: 22px; }
  .tiles { transform: scale(.62); transform-origin: 50% 0; }
  .hero__visual { height: 260px; }
  .products { grid-template-columns: 1fr; }
  .product, .product--wide, .product:last-child { grid-column: auto; padding: 24px 20px; }
  .product--wide .product__icon { width: 64px; height: 64px; }
  .product--wide .product__name { font-size: 22px; }
}
