* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #f0e9d7;
  --muted: #b8c7c7;
  --quiet: #7e9393;
  --surface: #0e1113;
  --surface-2: #1f2429;
  --cyan: #5fb6c2;
  --amber: #f7ae38;
  --coral: #f05c48;
  --desk: #734f2e;
  --evidence: #29525c;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.78) 42%, rgba(8, 10, 12, 0.22) 100%),
    url("assets/desk-detective-og-1200x630.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22svh;
  background: linear-gradient(180deg, rgba(14, 17, 19, 0), var(--surface));
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.nav-page {
  border-bottom: 1px solid rgba(95, 182, 194, 0.16);
}

.brand-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand::before {
  width: 22px;
  height: 22px;
  border: 2px solid var(--evidence);
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--desk) 0 60%, var(--amber) 60% 100%),
    radial-gradient(circle at 70% 32%, var(--amber) 0 16%, transparent 17%),
    rgba(115, 79, 46, 0.18);
  box-shadow: 0 0 24px rgba(247, 174, 56, 0.28);
  content: "";
}

.platform-link {
  display: inline-flex;
  width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 4px;
  background: transparent;
  text-decoration: none;
  transition: transform 160ms ease;
}

.platform-link:hover {
  transform: translateY(-1px);
}

.platform-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(247, 174, 56, 0.22);
}

.brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(240, 233, 215, 0.28);
}

.language-menu {
  position: relative;
  font-size: 14px;
}

.language-menu summary {
  display: inline-flex;
  min-width: 118px;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(95, 182, 194, 0.28);
  border-radius: 8px;
  padding: 8px 11px 8px 13px;
  color: var(--ink);
  background: rgba(14, 17, 19, 0.7);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: rgba(247, 174, 56, 0.72);
  background: rgba(41, 82, 92, 0.4);
}

.language-menu summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.language-menu[open] summary svg {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  max-height: min(44svh, 360px);
  overflow-y: auto;
  border: 1px solid rgba(95, 182, 194, 0.22);
  border-radius: 8px;
  padding: 6px;
  background: rgba(13, 16, 18, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.language-options a {
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 9px 11px;
  color: #d9d0bc;
  text-decoration: none;
}

.language-options a:hover {
  color: var(--cyan);
  background: rgba(41, 82, 92, 0.32);
}

.language-options a[aria-current="true"] {
  color: var(--amber);
  background: rgba(247, 174, 56, 0.13);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 9svh, 96px) 0 96px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
}

.hero h1,
.content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(58px, 11vw, 136px);
  line-height: 0.92;
}

.hero p:not(.kicker),
.lead {
  max-width: 620px;
  color: #e6dcc6;
  font-size: clamp(20px, 3vw, 30px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(95, 182, 194, 0.46);
  border-radius: 8px;
  padding: 11px 18px;
  color: var(--ink);
  background: rgba(14, 17, 19, 0.72);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  background: rgba(41, 82, 92, 0.42);
}

.button.primary {
  border-color: rgba(247, 174, 56, 0.78);
  background: rgba(247, 174, 56, 0.16);
}

.band,
.content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 6vw, 76px);
  padding: 74px 0;
  border-bottom: 1px solid rgba(95, 182, 194, 0.13);
}

.band h2,
.content h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
}

.band p,
.content p,
.content li {
  color: var(--muted);
}

.band p {
  max-width: 640px;
  margin: 0;
  font-size: 20px;
}

.band ul,
.content ul {
  margin: 0;
  padding-left: 22px;
}

.band li,
.content li {
  margin: 0 0 12px;
}

.closing {
  display: block;
  max-width: 860px;
}

.content {
  max-width: 860px;
  padding: 70px 0 40px;
}

.content h1 {
  font-size: clamp(52px, 10vw, 104px);
}

.content h2 {
  margin-top: 42px;
  color: #f4eede;
  font-size: 28px;
}

.content p,
.content li {
  font-size: 18px;
}

.section-title,
.contact-line,
.status-line,
.privacy-line,
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.section-title {
  align-items: center;
}

.icon,
.inline-icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-icon {
  margin-top: 0.22em;
}

.icon-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.icon-list li {
  margin: 0;
}

.icon-list strong {
  color: var(--ink);
}

.footer {
  --footer-accent: var(--amber);
  --footer-border: rgba(95, 182, 194, 0.2);
  --footer-ink: var(--ink);
  --footer-muted: var(--quiet);
  --footer-surface: rgba(31, 36, 41, 0.58);
  --footer-surface-strong: rgba(41, 82, 92, 0.5);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--footer-border);
  padding: 32px 0 48px;
  color: var(--footer-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.footer-identity {
  display: flex;
  flex: 1 1 420px;
  min-width: min(100%, 420px);
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
  line-height: 1;
}

.footer-brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  margin-bottom: 0;
}

.footer-platform,
.footer-game {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  color: var(--footer-ink);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-platform {
  font-size: 15px;
}

.footer-game {
  font-size: 18px;
}

.footer-platform:hover,
.footer-game:hover {
  color: var(--footer-accent);
}

.footer-platform-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(247, 174, 56, 0.22);
}

.footer-brand-divider {
  width: 1px;
  height: 26px;
  flex: 0 0 auto;
  background: var(--footer-border);
}

.footer p {
  margin: 0;
  max-width: none;
  line-height: 1.45;
  white-space: nowrap;
}

.footer-actions {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--footer-border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--footer-ink);
  background: var(--footer-surface);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
  border-color: rgba(247, 174, 56, 0.58);
  color: var(--footer-accent);
  background: var(--footer-surface-strong);
  transform: translateY(-1px);
}

.footer-language {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-language-label {
  color: var(--footer-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer .language-menu summary {
  min-width: 0;
  min-height: 40px;
  border-color: var(--footer-border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--footer-ink);
  background: var(--footer-surface);
}

.footer .language-menu summary:hover,
.footer .language-menu[open] summary {
  border-color: rgba(247, 174, 56, 0.58);
  color: var(--footer-accent);
  background: var(--footer-surface-strong);
}

.footer .language-options {
  top: auto;
  right: 0;
  bottom: calc(100% + 10px);
}

@media (max-width: 760px) {
  .hero {
    min-height: 86svh;
    background:
      linear-gradient(180deg, rgba(8, 10, 12, 0.96) 0%, rgba(8, 10, 12, 0.76) 52%, rgba(8, 10, 12, 0.38) 100%),
      url("assets/desk-detective-og-1200x630.png") center bottom / cover no-repeat;
  }

  .nav {
    align-items: center;
    width: min(1120px, calc(100% - 28px));
    padding: 20px 0 28px;
  }

  .language-options {
    right: auto;
    left: 0;
  }

  .brand {
    font-size: 21px;
  }

  .hero-copy,
  .band,
  .content,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-identity {
    flex: 0 1 auto;
    min-width: 0;
  }

  .footer p {
    white-space: normal;
  }

  .footer-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-language {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer .language-menu,
  .footer .language-menu summary {
    width: 100%;
  }

  .footer .language-options {
    right: auto;
    left: 0;
    width: 100%;
  }

  .hero-copy {
    padding-top: 36px;
  }

  .band {
    display: block;
    padding: 54px 0;
  }

  .band ul {
    margin-top: 26px;
  }
}
