:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: #111111;
  --panel-strong: #181818;
  --gold: #d8ad45;
  --gold-bright: #f2c766;
  --gold-dark: #8e6821;
  --cream: #fff7df;
  --text: #f7f3e8;
  --muted: #bdb5a8;
  --muted-strong: #e1d8c8;
  --line: rgba(255, 247, 223, 0.16);
  --line-strong: rgba(242, 199, 102, 0.36);
  --cool: #83d8d3;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 12px;
  background: var(--gold);
  color: #080808;
  border-radius: 6px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 247, 223, 0.08);
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  border-bottom-color: var(--line);
}

.nav-shell {
  width: min(100% - 40px, var(--max-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(242, 199, 102, 0.8);
  border-radius: var(--radius);
  color: var(--cream);
  background:
    linear-gradient(145deg, rgba(242, 199, 102, 0.24), rgba(255, 247, 223, 0.02)),
    #060606;
  box-shadow: 0 0 28px rgba(216, 173, 69, 0.22);
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-copy strong {
  color: var(--cream);
  font-size: 1.04rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--cream);
  background: rgba(255, 247, 223, 0.08);
}

.nav-menu .nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(242, 199, 102, 0.54);
  color: var(--cream);
  background: rgba(216, 173, 69, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 247, 223, 0.06);
  color: var(--cream);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 82svh;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.82) 32%, rgba(5, 5, 5, 0.26) 74%, rgba(5, 5, 5, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.46), rgba(5, 5, 5, 0.92));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 199, 102, 0.72), transparent);
}

.hero-inner {
  min-height: 82svh;
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 52px;
  display: grid;
  align-content: space-between;
  gap: 42px;
}

.hero-content {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-bright);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow.dark {
  color: #5d430e;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--cream);
  font-size: 4.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #080808;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 16px 34px rgba(216, 173, 69, 0.22);
}

.button-primary::after {
  content: ">";
  margin-left: 10px;
  font-weight: 900;
}

.button-secondary {
  color: var(--cream);
  border-color: rgba(255, 247, 223, 0.28);
  background: rgba(255, 247, 223, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 247, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.52);
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  display: block;
  color: var(--cream);
  font-size: 1.06rem;
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.91rem;
}

.signal-strip {
  background: #080808;
  border-bottom: 1px solid var(--line);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-inline: 1px solid rgba(255, 247, 223, 0.08);
}

.signal-grid p {
  margin: 0;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  color: var(--muted-strong);
  background: rgba(255, 247, 223, 0.035);
}

.section {
  padding: 96px 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.section-dark {
  background:
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.section-gold {
  color: #110e08;
  background:
    linear-gradient(180deg, #e4bd5e, #bb8d2a 58%, #6f5018 100%);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.page-hero h1,
.cta-panel h2 {
  margin-bottom: 18px;
  color: var(--cream);
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-gold .section-heading h2,
.section-gold .section-heading p {
  color: #160f04;
}

.section-heading p,
.studio-copy p,
.legal-content p {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-gold .section-heading p {
  color: #2c210f;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 247, 223, 0.06), rgba(255, 247, 223, 0.025)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card:hover {
  border-color: rgba(242, 199, 102, 0.42);
  background:
    linear-gradient(180deg, rgba(216, 173, 69, 0.12), rgba(255, 247, 223, 0.025)),
    var(--panel);
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--gold-bright);
  font-weight: 900;
}

.feature-card h3,
.product-card h3,
.process-grid h3 {
  margin-bottom: 12px;
  color: var(--cream);
  font-size: 1.28rem;
  line-height: 1.2;
}

.feature-card p,
.product-card p,
.process-grid p,
.footer-grid p,
.contact-block p,
.form-note {
  color: var(--muted);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.product-stack {
  display: grid;
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 164px;
  padding: 18px;
  border: 1px solid rgba(17, 14, 8, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.84);
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  min-height: 118px;
  border: 1px solid rgba(255, 247, 223, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0b;
}

.product-visual span {
  position: absolute;
  display: block;
  border: 1px solid rgba(242, 199, 102, 0.54);
  background: rgba(242, 199, 102, 0.12);
}

.product-visual-app span:nth-child(1) {
  width: 42px;
  height: 78px;
  left: 18px;
  top: 20px;
  border-radius: 8px;
}

.product-visual-app span:nth-child(2) {
  width: 48px;
  height: 8px;
  left: 70px;
  top: 32px;
  border-radius: 4px;
  background: var(--cool);
}

.product-visual-app span:nth-child(3) {
  width: 38px;
  height: 38px;
  right: 17px;
  bottom: 18px;
  border-radius: 8px;
}

.product-visual-game span:nth-child(1) {
  width: 72px;
  height: 38px;
  left: 30px;
  bottom: 28px;
  border-radius: 8px;
}

.product-visual-game span:nth-child(2),
.product-visual-game span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 36px;
}

.product-visual-game span:nth-child(2) {
  left: 38px;
  background: var(--cool);
}

.product-visual-game span:nth-child(3) {
  right: 38px;
  background: var(--gold-bright);
}

.product-visual-web span:nth-child(1) {
  inset: 16px;
  border-radius: 7px;
}

.product-visual-web span:nth-child(2) {
  width: 78px;
  height: 8px;
  left: 28px;
  top: 36px;
  border-radius: 4px;
  background: var(--cool);
}

.product-visual-web span:nth-child(3) {
  width: 48px;
  height: 34px;
  right: 24px;
  bottom: 24px;
  border-radius: 6px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.process-grid article {
  min-height: 238px;
  padding: 22px;
  border-left: 1px solid rgba(242, 199, 102, 0.52);
  background: linear-gradient(90deg, rgba(216, 173, 69, 0.12), rgba(255, 247, 223, 0.02));
}

.process-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--cool);
  font-weight: 800;
}

.section-cta {
  background: #090909;
  border-block: 1px solid var(--line);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-panel div {
  max-width: 780px;
}

.page-hero {
  padding-top: calc(var(--header-height) + 92px);
  padding-bottom: 84px;
  background:
    linear-gradient(125deg, rgba(216, 173, 69, 0.17), transparent 42%),
    linear-gradient(180deg, #050505, #0b0b0b);
  border-bottom: 1px solid var(--line);
}

.page-hero.legal-hero {
  padding-bottom: 58px;
}

.page-hero-inner {
  max-width: 880px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.span-two,
.contact-form .button,
.form-note {
  grid-column: 1 / -1;
}

label {
  color: var(--cream);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 247, 223, 0.18);
  border-radius: 6px;
  background: #080808;
  color: var(--cream);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(242, 199, 102, 0.12);
}

.contact-form .button {
  justify-self: start;
}

.form-note {
  margin: 0;
  font-size: 0.94rem;
}

.contact-aside {
  display: grid;
  gap: 16px;
}

.contact-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 247, 223, 0.045);
}

.contact-block span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-weight: 900;
}

.contact-block a {
  color: var(--cream);
  font-weight: 800;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 1.42rem;
}

.legal-content a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 64px 0 26px;
  background: #030303;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--cream);
  font-size: 0.98rem;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--muted);
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 247, 223, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  left: auto;
  right: 20px;
  bottom: 20px;
  z-index: 180;
  display: grid;
  gap: 18px;
  width: min(100% - 40px, 520px);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

:focus-visible {
  outline: 3px solid rgba(131, 216, 211, 0.8);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .hero h1 {
    font-size: 3.35rem;
  }

  .section-heading h2,
  .page-hero h1,
  .cta-panel h2 {
    font-size: 2.45rem;
  }

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

  .product-layout,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    margin-bottom: 34px;
  }

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

@media (max-width: 800px) {
  :root {
    --header-height: 72px;
  }

  .container,
  .nav-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
  }

  .hero,
  .hero-inner {
    min-height: 78svh;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 52px);
    padding-bottom: 34px;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero h1 {
    font-size: 2.55rem;
    line-height: 1.03;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-metrics {
    display: none;
  }

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

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .page-hero h1,
  .cta-panel h2 {
    font-size: 2.08rem;
  }

  .product-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .product-visual {
    min-height: 104px;
  }

  .cta-panel,
  .footer-bottom,
  .cookie-banner {
    align-items: stretch;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .button {
    flex: 1 1 180px;
  }
}

@media (max-width: 620px) {
  .brand-copy strong {
    font-size: 0.95rem;
  }

  .hero,
  .hero-inner {
    min-height: 72svh;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2rem;
  }

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

  .signal-grid,
  .card-grid.three,
  .process-grid,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .process-grid article {
    min-height: auto;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    width: 132px;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 62px);
    padding-bottom: 58px;
  }

  .section-heading h2,
  .page-hero h1,
  .cta-panel h2 {
    font-size: 1.86rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.86rem;
  }

  .hero-copy,
  .page-hero p {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
