:root {
  color-scheme: dark;
  --bg: #06110f;
  --bg-soft: #0a1b17;
  --panel: #102620;
  --panel-strong: #14352d;
  --text: #f3fbf8;
  --muted: #a7bbb4;
  --line: rgba(224, 255, 244, 0.14);
  --accent: #30f2b2;
  --accent-2: #7de7ff;
  --warm: #f4d35e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(48, 242, 178, 0.18), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(125, 231, 255, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.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;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(48, 242, 178, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(48, 242, 178, 0.24), rgba(125, 231, 255, 0.08));
  box-shadow: 0 10px 30px rgba(48, 242, 178, 0.14);
  color: var(--accent);
  font-size: 1.2rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 17, 15, 0.62);
}

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: background 160ms ease, color 160ms ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 17, 15, 0.62);
}

.language-switch button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.language-switch button:hover,
.language-switch button.is-active {
  background: rgba(48, 242, 178, 0.14);
  color: var(--accent);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 56px 0 86px;
}

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

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

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lead {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #03110c;
  box-shadow: 0 14px 34px rgba(48, 242, 178, 0.24);
}

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

.hero-board {
  position: relative;
  display: grid;
  gap: 18px;
}

.preview-card,
.project-card,
.capabilities article,
.contact-section,
.stats-strip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 38, 32, 0.88), rgba(8, 24, 20, 0.84));
  box-shadow: var(--shadow);
}

.preview-card {
  position: relative;
  min-height: 240px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.preview-card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.preview-card p {
  max-width: 300px;
  color: var(--muted);
}

.preview-card.collector {
  min-height: 360px;
}

.preview-card.game {
  margin-left: 70px;
}

.preview-card.software {
  margin-right: 54px;
}

.status,
.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(48, 242, 178, 0.24);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-preview {
  position: absolute;
  right: 28px;
  bottom: -40px;
  width: 178px;
  min-height: 290px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: #071412;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.phone-top {
  width: 54px;
  height: 5px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-row strong {
  color: var(--accent);
}

.progress,
.wide-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress span,
.wide-progress i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

.sticker-grid i {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sticker-grid i:nth-child(1),
.sticker-grid i:nth-child(4),
.sticker-grid i:nth-child(5) {
  background: rgba(48, 242, 178, 0.46);
}

.game-preview {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 52%;
  height: 92px;
  overflow: hidden;
  border: 1px solid rgba(125, 231, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, #071412, #153b32);
}

.game-preview span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.game-preview span:nth-child(1) {
  width: 84px;
  height: 84px;
  right: 16px;
  top: -18px;
  border: 10px solid var(--warm);
  box-shadow: 0 0 30px rgba(244, 211, 94, 0.28);
}

.game-preview span:nth-child(2) {
  width: 130px;
  height: 12px;
  left: 20px;
  bottom: 18px;
  background: rgba(125, 231, 255, 0.52);
}

.game-preview span:nth-child(3) {
  width: 26px;
  height: 26px;
  left: 42px;
  bottom: 34px;
  background: var(--accent);
}

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

.stats-strip div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.stats-strip strong {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
}

.stats-strip span {
  font-weight: 800;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.studio-copy p,
.capabilities p,
.project-card p,
.contact-section p,
.site-footer {
  color: var(--muted);
}

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

.project-card {
  min-height: 280px;
  padding: 28px;
  border-radius: 8px;
}

.project-card.featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.app-shot {
  display: grid;
  min-height: 320px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(48, 242, 178, 0.12), transparent),
    rgba(255, 255, 255, 0.03);
}

.app-window {
  width: min(300px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #06110f;
}

.window-bar {
  width: 72px;
  height: 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.app-window strong,
.app-window span {
  display: block;
}

.app-window strong {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.app-window span {
  margin-bottom: 18px;
  color: var(--muted);
}

.wide-progress {
  margin-bottom: 18px;
}

.wide-progress i {
  width: 48%;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list em {
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 44px;
  align-items: start;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 96px;
}

.capabilities article {
  min-height: 220px;
  padding: 26px;
  border-radius: 8px;
}

.capabilities span {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-section {
  padding-bottom: 96px;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(48, 242, 178, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(16, 38, 32, 0.88), rgba(8, 24, 20, 0.84));
  box-shadow: var(--shadow);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.keyword-strip span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(48, 242, 178, 0.22);
  border-radius: 999px;
  background: rgba(48, 242, 178, 0.07);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-section {
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: 34px;
  border-radius: 8px;
}

.contact-section div {
  max-width: 660px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
  font-size: 0.92rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-page h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-grid {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.legal-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 38, 32, 0.88), rgba(8, 24, 20, 0.84));
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-card p {
  color: var(--muted);
}

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

.legal-card a {
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.error-copy {
  max-width: 720px;
}

.error-page h1 {
  max-width: 720px;
}

.error-visual {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(48, 242, 178, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(16, 38, 32, 0.88), rgba(8, 24, 20, 0.84));
  box-shadow: var(--shadow);
}

.error-visual span {
  color: var(--text);
  font-size: clamp(5rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.lost-orbit {
  position: relative;
  aspect-ratio: 1;
  min-width: 120px;
  border: 10px solid var(--warm);
  border-radius: 999px;
  box-shadow: 0 0 36px rgba(244, 211, 94, 0.22);
}

.lost-orbit i {
  position: absolute;
  right: 10%;
  bottom: 18%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(48, 242, 178, 0.5);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(48, 242, 178, 0.32);
  border-radius: 999px;
  background: rgba(6, 17, 15, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  backdrop-filter: blur(16px);
}

.back-to-top:hover {
  background: rgba(48, 242, 178, 0.16);
  transform: translateY(6px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    align-self: flex-start;
  }

  .hero,
  .project-card.featured,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: 34px;
    padding-bottom: 64px;
  }

  .preview-card.game,
  .preview-card.software {
    margin: 0;
  }

  .stats-strip,
  .capabilities,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 70% -5%, rgba(48, 242, 178, 0.16), transparent 22rem),
      var(--bg);
  }

  .site-header,
  .hero,
  .section,
  .stats-strip,
  .capabilities,
  .contact-section,
  .legal-page,
  .error-page,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    display: contents;
  }

  nav {
    grid-column: 1 / -1;
    gap: 2px;
    padding: 5px;
  }

  nav a {
    flex: 1;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.82rem;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 4px;
  }

  .language-switch button {
    min-width: 34px;
    min-height: 30px;
    font-size: 0.76rem;
  }

  .hero {
    gap: 24px;
    padding: 22px 0 52px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  h1 {
    max-width: 360px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 12vw, 3.05rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .lead {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-board {
    gap: 14px;
  }

  .preview-card {
    min-height: auto;
    padding: 20px;
  }

  .preview-card.collector {
    min-height: 360px;
  }

  .phone-preview {
    bottom: -54px;
    width: 158px;
    min-height: 260px;
    padding: 16px;
    right: 50%;
    transform: translateX(50%);
  }

  .game-preview {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 18px;
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 68px;
  }

  .stats-strip div {
    padding: 18px;
  }

  .section {
    padding-bottom: 68px;
  }

  .project-card {
    min-height: auto;
    padding: 22px;
  }

  .project-card.featured {
    gap: 20px;
  }

  .app-shot {
    min-height: 230px;
  }

  .capabilities {
    margin-bottom: 68px;
  }

  .capabilities article {
    min-height: auto;
    padding: 22px;
  }

  .capabilities span {
    margin-bottom: 28px;
  }

  .services-section {
    padding-bottom: 68px;
  }

  .service-card {
    min-height: auto;
    padding: 22px;
  }

  .service-card span {
    margin-bottom: 30px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .contact-section .button {
    width: 100%;
  }

  .site-footer {
    gap: 10px;
    padding-bottom: 84px;
  }

  .legal-page {
    padding: 42px 0 68px;
  }

  .legal-page h1 {
    font-size: clamp(2.35rem, 12vw, 3.05rem);
  }

  .legal-card {
    padding: 22px;
  }

  .error-page {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 42px 0 68px;
  }

  .error-page h1 {
    font-size: clamp(2.35rem, 12vw, 3.05rem);
  }

  .error-visual {
    min-height: 210px;
    padding: 22px;
  }
}
