:root {
  --bg: #06070b;
  --text: #f5f6f9;
  --muted: #a9b0c0;
  --faint: #747b8b;
  --line: rgb(255 255 255 / 0.09);
  --accent: #9fb9ff;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Ambient backdrop */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 50% -8%, rgb(63 107 255 / 0.2), transparent 65%), var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  translate: calc(var(--px, 0) * var(--depth) * -1px) calc(var(--py, 0) * var(--depth) * -1px);
}

.orb-blue {
  --depth: 70;
  top: -24vmax;
  left: -20vmax;
  width: 62vmax;
  height: 62vmax;
  background: radial-gradient(closest-side, rgb(63 107 255 / 0.55), transparent);
}

.orb-violet {
  --depth: 110;
  top: 6vmax;
  right: -18vmax;
  width: 54vmax;
  height: 54vmax;
  background: radial-gradient(closest-side, rgb(139 92 246 / 0.42), transparent);
}

.orb-cyan {
  --depth: 50;
  bottom: -30vmax;
  left: 18vmax;
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(closest-side, rgb(34 199 230 / 0.3), transparent);
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px circle at var(--cx, 50%) var(--cy, 30%),
    rgb(255 255 255 / 0.04),
    rgb(255 255 255 / 0.015) 45%,
    transparent 75%
  );
}

/* Glass material */

.glass {
  position: relative;
  z-index: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgb(255 255 255 / 0.085), rgb(255 255 255 / 0.02) 55%, rgb(255 255 255 / 0.04));
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 40px 80px -40px rgb(0 0 0 / 0.75);
}

.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

/* Rim light, brightest where the pointer is. */
.glass::before {
  padding: 1px;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.7), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.26), rgb(255 255 255 / 0.05) 45%, rgb(255 255 255 / 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Specular sheen that follows the pointer. */
.glass::after {
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgb(255 255 255 / 0.06),
    rgb(255 255 255 / 0.02) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass:hover::after {
  opacity: 1;
}

/* Logos and app icons stay crisp: no sheen washing over them. */
.group::after,
.logo-row::after {
  display: none;
}

/* Navigation */

.nav-shell {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(820px, 100%);
  height: 58px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(24 27 38 / 0.6), rgb(24 27 38 / 0.38));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  pointer-events: auto;
}

.lens .nav {
  backdrop-filter: blur(3px) url(#lens) saturate(180%) brightness(1.08);
}

.brand {
  font: 600 15px/1 var(--mono);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
}

.nav-icons {
  display: flex;
  gap: 6px;
}

.nav-icons a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav-icons a:hover {
  background: rgb(255 255 255 / 0.12);
  color: var(--text);
}

.nav-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Layout */

main,
.footer {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: center;
  min-height: min(100svh - 96px, 840px);
  padding: 120px 0 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin: 0;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.14);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(159 185 255 / 0.16), 0 0 14px rgb(159 185 255 / 0.9);
}

h1 {
  margin: 26px 0;
  font-size: clamp(56px, 8.6vw, 116px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

/* The padding keeps glyph overhang (the ş cedilla, the last letter under tight tracking) inside the clipped gradient. */
h1 span {
  display: block;
  width: fit-content;
  margin: 0 -0.12em -0.1em -0.04em;
  padding: 0 0.12em 0.1em 0.04em;
  background: linear-gradient(180deg, #fff 30%, rgb(255 255 255 / 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 span + span {
  background-image: linear-gradient(95deg, #dfe7ff 0%, #b49dff 45%, #8ee3f5 100%);
}

.lead {
  max-width: 31em;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: translate 0.5s var(--ease), background-color 0.25s, box-shadow 0.25s;
}

.btn.is-magnet {
  transition: translate 0.15s linear, background-color 0.25s, box-shadow 0.25s;
}

.btn-primary {
  background: linear-gradient(180deg, #fff, #e6eaf5);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.06), 0 12px 32px -12px rgb(159 185 255 / 0.7);
  color: #0b0c12;
}

.btn-primary:hover {
  box-shadow: inset 0 1px 0 #fff, 0 16px 40px -12px rgb(159 185 255 / 0.95);
}

.btn-glass {
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.2);
  color: var(--text);
}

.btn-glass:hover {
  background: rgb(255 255 255 / 0.12);
}

/* Hero visual: an exploded SDK stack that follows the pointer. */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 540px;
  perspective: 1600px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(63 107 255 / 0.35), transparent);
}

.stack {
  position: relative;
  width: 330px;
  height: 214px;
  translate: 0 64px;
  transform: rotateX(calc(57deg + var(--tilt-y, 0deg))) rotateZ(calc(-38deg + var(--tilt-x, 0deg)));
  transform-style: preserve-3d;
}

.hero-visual:hover .stack {
  --spread: 1.22;
}

.plate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 22px 26px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 0 50px rgb(255 255 255 / 0.05), 0 50px 70px -40px rgb(0 0 0 / 0.9);
  transform: translateZ(calc(var(--z) * var(--spread, 1)));
  transition: transform 0.8s var(--ease);
}

.plate-mobile {
  --z: 0px;
  background: linear-gradient(150deg, rgb(63 107 255 / 0.55), rgb(63 107 255 / 0.12) 65%, rgb(63 107 255 / 0.05));
}

.plate-web {
  --z: 100px;
  background: linear-gradient(150deg, rgb(139 92 246 / 0.5), rgb(139 92 246 / 0.1) 65%, rgb(139 92 246 / 0.04));
}

.plate-ai {
  --z: 200px;
  background: linear-gradient(150deg, rgb(34 199 230 / 0.42), rgb(34 199 230 / 0.1) 65%, rgb(34 199 230 / 0.04));
}

.plate-kicker {
  margin-bottom: 6px;
  color: rgb(255 255 255 / 0.6);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plate strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.plate-meta {
  color: rgb(255 255 255 / 0.7);
  font-size: 13px;
}

/* Companies */

.companies {
  padding-bottom: 24px;
}

.companies .kicker {
  color: var(--faint);
  text-align: center;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 26px 32px;
  list-style: none;
}

/* The current employer's logo and its pill stack and center together; the other logos stay put. */
.logo-row li {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 40px;
  text-align: center;
}

.current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.05));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 0 0 1px rgb(255 255 255 / 0.12);
  color: #c3c8d2;
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.current-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dfe3ea;
  box-shadow: 0 0 6px rgb(255 255 255 / 0.55);
}

.current-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #dfe3ea;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

.logo-row .is-current img {
  opacity: 0.95;
}

/* Logos are white, trimmed and pre-sized for equal visual weight; --w carries each one's width. */
.logo-row img {
  width: calc(var(--w) * var(--logo-scale, 1));
  height: auto;
  opacity: 0.62;
  transition: opacity 0.3s;
}

.logo-row li:hover img {
  opacity: 0.95;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
}

.prose p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Work cards */

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

.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 32px;
  transition: translate 0.5s var(--ease);
}

.card:hover {
  translate: 0 -4px;
}

/* The icon drifts toward the pointer; 3D tilt is avoided because it blurs text and darkens the backdrop. */
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgb(159 185 255 / 0.3), rgb(159 185 255 / 0.06));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: #dbe5ff;
  translate: var(--ix, 0px) var(--iy, 0px);
  transition: translate 0.6s var(--ease);
}

.card.is-tracking .card-icon {
  transition: translate 0.15s linear;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

/* Stack: technologies as glass app icons */

.stack-groups {
  display: grid;
  grid-template-areas:
    "mobile web"
    "mobile ai"
    "backend cloud";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.group-mobile {
  grid-area: mobile;
}

.group-web {
  grid-area: web;
}

.group-ai {
  grid-area: ai;
}

.group-backend {
  grid-area: backend;
}

.group-cloud {
  grid-area: cloud;
}

.group {
  padding: 26px 26px 30px;
}

.group h3 {
  margin: 0 0 24px;
  color: var(--faint);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04) 55%, rgb(255 255 255 / 0.07)),
    rgb(22 24 32 / 0.6);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    inset 0 0 0 1px rgb(255 255 255 / 0.09),
    0 12px 24px -12px rgb(0 0 0 / 0.85),
    0 0 26px -6px rgb(255 255 255 / calc(var(--near, 0) * 0.22));
  transform: translateY(calc(var(--near, 0) * -8px)) scale(calc(1 + var(--near, 0) * 0.16));
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

/* Glossy top half, like a glass app icon. */
.app-icon::after {
  content: "";
  position: absolute;
  inset: 1px 1px 52%;
  border-radius: 17px 17px 50% 50% / 17px 17px 14px 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.2), transparent);
  pointer-events: none;
}

/* Monochrome glyphs, like the tinted gray app icons in macOS. */
.app-icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0.9) drop-shadow(0 1px 1px rgb(0 0 0 / 0.4));
  opacity: calc(0.8 + var(--near, 0) * 0.2);
}

.app-name {
  max-width: 100%;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
}

/* Contact */

.cta {
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-glow {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 50%;
  width: 70%;
  height: 140%;
  translate: -50% -35%;
  background: radial-gradient(closest-side, rgb(99 135 255 / 0.35), transparent);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(40px, 6.4vw, 80px);
}

.cta p:not(.kicker) {
  max-width: 36em;
  margin: 20px auto 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cta .actions {
  justify-content: center;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

/* Entrance */

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    scale: 0.92;
  }
}

.hero-copy > * {
  animation: rise 1s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-visual {
  animation: float-in 1.4s var(--ease) 0.2s both;
}

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

  .hero-copy > *,
  .hero-visual,
  .current-dot::after {
    animation: none;
  }

  .plate,
  .card,
  .card-icon,
  .btn,
  .app-icon {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 128px 0 24px;
  }

  .hero-visual {
    height: 420px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .stack-groups {
    grid-template-areas: none;
    grid-template-columns: 1fr;
  }

  .stack-groups .group {
    grid-area: auto;
  }

  .apps {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  main,
  .footer {
    width: calc(100% - 32px);
  }

  .nav {
    padding-left: 18px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-visual {
    height: 330px;
  }

  .stack {
    scale: 0.72;
  }

  .section {
    padding: 44px 0;
  }

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

  .group {
    padding: 22px 16px 26px;
  }

  .apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 6px;
  }

  .logo-row {
    --logo-scale: 0.82;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
    padding: 22px 16px;
  }

  .app-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .app-icon::after {
    border-radius: 15px 15px 50% 50% / 15px 15px 12px 12px;
  }
}
