:root {
  --bg: #020204;
  --ink: #f7f7f4;
  --muted: #a7abb6;
  --muted-2: #737884;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --cyan: #8be9df;
  --green: #a7f3c4;
  --coral: #ff967d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18rem),
    radial-gradient(circle at 18% 8%, rgba(139, 233, 223, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(255, 150, 125, 0.13), transparent 26rem),
    linear-gradient(180deg, #020204 0%, #05060a 54%, #020204 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  transition: padding 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(2, 2, 4, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.app-topline,
.site-footer,
.contact-card,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  background: #000000;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.07);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a,
.text-link,
.app-card a,
.site-footer a {
  transition: color 160ms ease, opacity 160ms ease;
}

.nav a:hover,
.text-link:hover,
.app-card a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.header-action {
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  color: #07080c;
  background: #ffffff;
  border-radius: 8px;
  font-weight: 850;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 64px 0 66px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.05rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  color: #05060a;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.12);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.hero-showcase {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.identity-card {
  position: absolute;
  top: 0;
  right: 28px;
  z-index: 4;
  display: grid;
  width: 178px;
  padding: 14px;
  gap: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.identity-card img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.identity-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.phone-stack {
  position: relative;
  width: min(100%, 430px);
  height: 550px;
}

.phone-card {
  position: absolute;
  overflow: hidden;
  width: 236px;
  height: 354px;
  padding: 10px;
  background: #07080c;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.phone-card.active {
  top: 84px;
  left: 92px;
  z-index: 3;
  transform: scale(1.08);
}

.phone-card:nth-child(2) {
  top: 34px;
  left: 8px;
  z-index: 2;
  transform: rotate(-9deg);
}

.phone-card:nth-child(3) {
  right: 6px;
  bottom: 8px;
  z-index: 1;
  transform: rotate(7deg);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metrics div {
  min-height: 132px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-weight: 750;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.founder-panel h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.studio-grid article,
.app-card,
.founder-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.studio-grid article {
  padding: 24px;
}

.mini-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  place-items: center;
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(167, 243, 196, 0.38);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

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

.studio-grid article:nth-child(2) .mini-icon {
  color: var(--cyan);
  border-color: rgba(139, 233, 223, 0.38);
}

.studio-grid article:nth-child(3) .mini-icon {
  color: var(--coral);
  border-color: rgba(255, 150, 125, 0.38);
}

.studio-grid h3,
.app-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.18rem;
}

.studio-grid p,
.app-card p,
.founder-panel p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.portfolio-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.text-link,
.app-card a {
  color: var(--cyan);
  font-weight: 850;
}

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

.app-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 22px;
}

.app-card.featured {
  background: linear-gradient(135deg, rgba(139, 233, 223, 0.12), rgba(255, 255, 255, 0.055));
}

.game-card {
  background: linear-gradient(135deg, rgba(255, 150, 125, 0.12), rgba(255, 255, 255, 0.055));
}

.app-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.app-icon {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.app-topline span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.app-card p {
  flex: 1;
  margin-bottom: 22px;
}

.founder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    #05060a;
}

.founder-panel p {
  max-width: 720px;
  margin-top: 18px;
  margin-bottom: 0;
}

.founder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.founder-badges span {
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: stretch;
  padding-bottom: 92px;
}

.contact-copy {
  padding: 36px 0;
}

.contact-card {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
  background: var(--panel-strong);
}

.contact-card span {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
}

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

  .hero,
  .founder-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .hero-showcase {
    min-height: 500px;
  }

  .phone-stack {
    height: 440px;
  }

  .phone-card {
    width: 196px;
    height: 294px;
  }

  .phone-card.active {
    left: calc(50% - 104px);
  }

  .identity-card {
    right: calc(50% - 82px);
    width: 164px;
  }

  .metrics,
  .studio-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-action {
    min-height: 36px;
    padding-inline: 12px;
  }

  .hero,
  .metrics,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.4rem);
    line-height: 0.95;
  }

  .hero-showcase {
    min-height: 430px;
  }

  .phone-stack {
    height: 385px;
  }

  .phone-card {
    width: 168px;
    height: 252px;
    border-radius: 24px;
  }

  .phone-card img {
    border-radius: 16px;
  }

  .phone-card.active {
    top: 82px;
    left: calc(50% - 84px);
  }

  .identity-card {
    top: 0;
    right: calc(50% - 68px);
    width: 136px;
    padding: 10px;
  }

  .metrics,
  .studio-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 108px;
  }

  .portfolio-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-top: 72px;
  }
}
