:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #617086;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --line: rgba(16, 24, 39, 0.16);
  --blue: #2f80ed;
  --green: #248f55;
  --red: #c94c62;
  --amber: #ad6f15;
  --violet: #7554d9;
  --shadow: 0 18px 55px rgba(8, 17, 34, 0.24);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f8fb;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.game-page {
  overflow: hidden;
}

#game,
#scene {
  width: 100vw;
  height: 100vh;
}

#game {
  position: relative;
  background: #101725;
}

#scene {
  display: block;
}

.hud {
  position: fixed;
  z-index: 5;
}

.topbar {
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.brand,
.topbar nav,
.objective,
.briefing,
.talk-prompt,
.dialogue,
.mobile-controls,
.contact-modal {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(230px, 42vw);
  height: auto;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 7px;
  border-radius: 8px;
}

.topbar nav a,
.topbar nav button,
.briefing-actions a,
.briefing-actions button,
.dialogue-actions a,
.dialogue-actions button,
.talk-prompt button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.topbar nav a,
.briefing-actions a,
.dialogue-actions a {
  background: #eef3f9;
}

.topbar nav button,
.briefing-actions button,
.dialogue-actions button,
.talk-prompt button,
.submit-button {
  color: #fff;
  background: #1f6ed4;
}

.briefing {
  left: 50%;
  bottom: 36px;
  width: min(720px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 8px;
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #1f6ed4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.briefing h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.briefing p:not(.eyebrow) {
  max-width: 58ch;
  margin: 14px 0 0;
  color: #435066;
  line-height: 1.8;
}

.briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.objective {
  top: 92px;
  left: 18px;
  display: grid;
  gap: 4px;
  width: min(330px, calc(100vw - 36px));
  padding: 14px;
  border-radius: 8px;
}

.objective span,
.objective small {
  color: var(--muted);
  font-size: 13px;
}

.objective strong {
  font-size: 17px;
}

.talk-prompt {
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 8px;
  transform: translateX(-50%);
}

.talk-prompt span {
  font-weight: 800;
}

.dialogue {
  left: 50%;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(880px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 8px;
  transform: translateX(-50%);
}

.speaker {
  margin: 0 0 8px;
  color: #1f6ed4;
  font-weight: 900;
}

.line {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.65;
}

.dialogue-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: end;
  min-width: 154px;
}

.mobile-controls {
  right: 18px;
  bottom: 18px;
  display: none;
  gap: 12px;
  align-items: end;
  padding: 10px;
  border-radius: 8px;
}

.stick {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 46px);
  gap: 4px;
}

.stick button,
.talk-mobile {
  min-width: 46px;
  min-height: 46px;
  color: #fff;
  border-radius: 7px;
  background: #263245;
}

.stick [data-move="up"] {
  grid-column: 2;
}

.stick [data-move="left"] {
  grid-row: 2;
}

.stick [data-move="down"] {
  grid-column: 2;
  grid-row: 3;
}

.stick [data-move="right"] {
  grid-column: 3;
  grid-row: 2;
}

.talk-mobile {
  width: 74px;
  background: #1f6ed4;
}

.noscript {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.noscript img {
  width: min(360px, 80vw);
}

.contact-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border-radius: 8px;
  color: var(--ink);
}

.contact-modal::backdrop {
  background: rgba(8, 17, 34, 0.58);
}

.contact-modal form {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 25px;
}

#closeContact {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #eef3f9;
}

.contact-modal label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.contact-modal input,
.contact-modal select,
.contact-modal textarea {
  width: 100%;
  border: 1px solid #cdd6e4;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

.contact-modal textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #1b6b3d;
  font-weight: 800;
}

.submit-button {
  min-height: 46px;
}

.submit-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.company-page {
  color: #172033;
  background: #f6f8fb;
}

.company-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid #dbe2ec;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.company-header img {
  width: min(230px, 48vw);
}

.company-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-header a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  background: #eef3f9;
}

.company-header .primary-link,
.company-cta a,
.company-hero a {
  color: #fff;
  background: #1f6ed4;
}

.company-main section {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.company-main section > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.company-hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(16, 24, 39, 0.88), rgba(31, 110, 212, 0.34)),
    url("/assets/sevenbeat-logo-horizontal.png") center 62% / min(600px, 76vw) auto no-repeat,
    #101725;
  color: #fff;
}

.company-hero p {
  max-width: 680px;
  color: #e3eaf4;
  font-size: 18px;
  line-height: 1.85;
}

.company-hero h1 {
  max-width: 820px;
  margin-top: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.company-hero a,
.company-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 7px;
  text-decoration: none;
}

.section-title {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.lead {
  color: #526176;
  font-size: 18px;
  line-height: 1.9;
}

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

.card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  background: #fff;
}

.card h3 {
  margin-top: 0;
}

.card p,
.flow li,
.faq p {
  color: #526176;
  line-height: 1.8;
}

.flow {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.flow li {
  padding: 18px 20px;
  border-left: 5px solid #1f6ed4;
  background: #fff;
}

.price-table {
  width: min(100%, 980px);
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  background: #fff;
}

.price-table th,
.price-table td {
  padding: 16px;
  border-bottom: 1px solid #dbe2ec;
  text-align: left;
  vertical-align: top;
}

.price-table th {
  background: #eef3f9;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq article {
  padding: 18px 20px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  background: #fff;
}

.company-cta {
  color: #fff;
  background: #101725;
}

.company-footer {
  padding: 28px clamp(18px, 5vw, 64px);
  color: #617086;
  background: #fff;
}

@media (max-width: 860px) {
  .topbar {
    align-items: start;
  }

  .topbar nav {
    flex-wrap: wrap;
    justify-content: end;
  }

  .objective {
    top: 88px;
  }

  .briefing {
    bottom: 18px;
  }

  .dialogue {
    grid-template-columns: 1fr;
    bottom: 142px;
  }

  .dialogue-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .mobile-controls {
    display: flex;
  }

  .talk-prompt {
    display: none;
  }

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

  .company-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand {
    height: 44px;
  }

  .topbar nav a,
  .topbar nav button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .objective {
    display: none;
  }

  .briefing h1 {
    font-size: 31px;
  }

  .briefing,
  .dialogue {
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .dialogue {
    bottom: 136px;
  }

  .line {
    font-size: 16px;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
  }
}

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