:root {
  --ink: #111827;
  --muted: #667085;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --line: #d9e0ea;
  --blue: #2454d6;
  --cyan: #0e9f9a;
  --green: #168a5a;
  --coral: #d45b4c;
  --navy: #0f172a;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 84, 214, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(14, 159, 154, 0.16), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 44%, #ffffff 100%);
  letter-spacing: 0;
}

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(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  transition: padding 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding: 12px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 224, 234, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(36, 84, 214, 0.22);
}

.nav {
  gap: 26px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 650;
}

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

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

.header-action {
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 750;
}

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

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

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

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

.hero-text {
  max-width: 650px;
  margin-bottom: 32px;
  color: #475467;
  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);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 14px 36px rgba(36, 84, 214, 0.23);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
}

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

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

.phone-card {
  position: absolute;
  overflow: hidden;
  width: 236px;
  height: 354px;
  padding: 10px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

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

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

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  width: min(1160px, 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.84);
}

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

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

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

.section-heading {
  max-width: 720px;
  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: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.07);
}

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

.mini-icon {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  margin-bottom: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.studio-grid article:nth-child(2) .mini-icon {
  background: var(--blue);
}

.studio-grid article:nth-child(3) .mini-icon {
  background: var(--coral);
}

.studio-grid h3,
.app-card h3 {
  margin-bottom: 10px;
  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(--blue);
  font-weight: 850;
}

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

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

.app-card.featured {
  background: linear-gradient(135deg, rgba(36, 84, 214, 0.1), rgba(255, 255, 255, 0.95));
}

.game-card {
  background: linear-gradient(135deg, rgba(212, 91, 76, 0.1), rgba(255, 255, 255, 0.95));
}

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

.app-icon {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.app-topline span {
  color: #475467;
  font-size: 0.78rem;
  font-weight: 850;
}

.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(15, 23, 42, 0.96), rgba(31, 41, 55, 0.94)),
    #111827;
  color: #ffffff;
}

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

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

.founder-badges span {
  padding: 10px 12px;
  color: #e7eefc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-weight: 750;
}

.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: #fff;
}

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

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

.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #667085;
  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: 460px;
  }

  .phone-stack {
    height: 440px;
  }

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

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

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

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

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

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

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

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

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

  .phone-stack {
    height: 370px;
  }

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

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

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

  .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;
  }
}
