:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a1a1a;
  --accent: #0d4ed8;
  --accent-2: #dc2626;
  --line: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%);
}

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

.site-wrap {
  width: 1080px;
  margin: 0 auto;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  background: #fff;
}

.nav a.active,
.nav a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page {
  padding: 2rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
}

h1,
h2,
h3 {
  font-family: "Alegreya", Georgia, serif;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 3.2rem;
  color: var(--accent);
  text-align: center;
}

h2 {
  font-size: 2rem;
  text-align: center;
}

h3 {
  font-size: 2.1rem;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 1rem;
}

.hero-tagline .hot {
  color: var(--accent-2);
  font-weight: 700;
}

.center {
  text-align: center;
}

p.center {
  font-size: 1.45rem;
  line-height: 1.5;
}

.img-center {
  display: block;
  max-width: 520px;
  width: 520px;
  max-height: 360px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.img-medium {
  max-width: 420px;
  width: 420px;
}

.home-hero-img {
  width: 520px;
  max-height: 320px;
  object-fit: contain;
  border: 0;
}

.order-image {
  width: 540px;
  max-width: 540px;
  max-height: 430px;
  border: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.video-shell {
  width: 760px;
  margin: 0 auto;
}

video {
  width: 760px;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 430px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

button.primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

button:hover,
.button:hover {
  opacity: 0.92;
}

#csystem {
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  height: auto;
  max-width: 620px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 2px solid #0f172a;
  background: #f8fafc;
}

.sim-page #csystem {
  width: 520px;
  max-height: 560px;
  object-fit: contain;
}

.meta {
  text-align: center;
  color: #4b5563;
  margin-top: 0.5rem;
}

.order-grid {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 1rem auto 0;
}

.order-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.order-list li {
  margin: 0.6rem 0;
}

.order-options {
  width: 100%;
  max-width: 430px;
  margin: 0;
}

.image-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.lang-item p {
  text-align: center;
  font-weight: 700;
  margin: 0.4rem 0 0;
}

.is-hidden {
  display: none !important;
}

.images-page .img-center {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.images-page .top-center .img-center {
  max-width: 520px;
  max-height: 300px;
}

.images-page .lang-item .img-center {
  max-width: 380px;
  max-height: 380px;
}

.images-page .lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.images-page .image-layout > div,
.images-page .lang-item {
  min-width: 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  color: #4b5563;
}

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

.order-grid {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 1rem auto 0;
}

.image-layout {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.image-layout .top-center {
  grid-column: 1 / -1;
  justify-self: center;
}

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

@media (max-width: 1120px) {
  body {
    overflow-x: auto;
  }
}
