:root {
  color-scheme: dark;
  --background: #101012;
  --panel: #17171c;
  --ink: #f4f2ed;
  --muted: #bdbac6;
  --line: #33323b;
  --accent: #a6f773;
  --frame: 1160px;
  --gutter: clamp(18px, 4vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 500 1rem/1.6 var(--site-font-family);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

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

.frame {
  width: min(var(--frame), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 10px auto auto 10px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--background);
  transform: translateY(calc(-100% - 20px));
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #101012;
}

.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.wordmark {
  width: fit-content;
  font: 700 1.02rem/1 var(--site-font-family);
  letter-spacing: .08em;
}

.site-nav, .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav { gap: clamp(14px, 3vw, 36px); }

.site-nav a, .site-footer a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease;
}

.button-accent {
  background: var(--accent);
  color: #131910;
}

.button-accent:hover { background: #c1ff9c; }

.button-outline {
  border-color: #53515e;
  background: #fff1;
  color: var(--ink);
}

.button-outline:hover {
  border-color: #a6f773;
  background: #a6f710;
}

.header-contact { justify-self: end; }

.eyebrow {
  margin: 0 0 17px;
  color: #d2cddc;
  font: 700 .95rem/1.3 var(--site-font-family);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-hydracode { --card-glow: #492c23; --case-color: #ffc29c; --logo-scale: 1.5; }
.case-banxe { --card-glow: #2d3459; --case-color: #c9ccff; --logo-scale: 1.18; }
.case-denum { --card-glow: #2d422b; --case-color: #c5ffb3; --logo-scale: 1.6; }
.case-twino { --card-glow: #203b43; --case-color: #aee7ec; --logo-scale: 1.48; }
.case-rgame { --card-glow: #4a2b4c; --case-color: #f4c6fc; }
.case-near { --card-glow: #453d29; --case-color: #f3dfa2; --logo-scale: 1.08; }

.case-brand {
  position: relative;
  flex: 0 0 var(--case-logo-size, clamp(48px, 5vw, 64px));
  align-self: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #ffffff28;
  border-radius: 14px;
  background: #121216b3;
}

.case-brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--logo-scale, 1));
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-left: 0;
  list-style: none;
}

.case-tags li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d5d1dd;
  font-size: .875rem;
  line-height: 1.5;
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid #4e6044;
  border-radius: 20px;
  background: linear-gradient(108deg, #222e1d, #1a2019 64%, #1b1b24);
}

.contact-panel h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); }
.contact-panel p { margin-top: 12px; color: #d4decf; }

.site-footer {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.footer-row, .footer-row div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-row { color: var(--muted); font-size: .875rem; }

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding-block: 10px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 39px;
    gap: 21px;
  }

  .header-contact { grid-column: 2; grid-row: 1; min-height: 39px; }
}

@media (max-width: 360px) {
  .button { padding-inline: 11px; }
}

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