/* Quup Studio — quup.app
   Self-contained: fonts are served from this domain, no third-party requests. */

@font-face {
  font-family: "Rajdhani";
  src: url("fonts/Rajdhani-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("fonts/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #04070d;
  --surface: #0b1220;
  --surface-raised: #0e1626;
  --text: #e8eef7;
  --text-secondary: #93a4bd;
  --text-muted: #63728a;
  --border: rgba(110, 140, 190, 0.14);
  --border-strong: rgba(110, 140, 190, 0.3);
  --accent: #3f8dff;
  --accent-soft: rgba(63, 141, 255, 0.12);
  --danger: #ff5147;
  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --page: 940px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(63, 141, 255, 0.16), transparent 70%),
    radial-gradient(700px 460px at 100% 8%, rgba(255, 81, 71, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px 96px;
}

.wrap.narrow {
  max-width: 760px;
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 1;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

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

/* ---------- type ---------- */

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--text);
}

p,
li {
  color: var(--text-secondary);
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

code {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--text);
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 28px;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

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

/* the brand's slash motif */
.rule {
  height: 4px;
  width: 68px;
  background: var(--accent);
  transform: skewX(-24deg);
  margin: 22px 0 26px;
}

.rule.split {
  width: 120px;
  background: linear-gradient(90deg, var(--accent) 0 48%, transparent 48% 52%, var(--danger) 52% 100%);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 26px 0 8px;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
}

.hero-art span {
  position: absolute;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  transform: skewX(-24deg);
}

.hero-art span:nth-child(1) { top: 18%; left: -10%; width: 60%; }
.hero-art span:nth-child(2) { top: 46%; right: -10%; width: 45%; }
.hero-art span:nth-child(3) { top: 78%; left: 10%; width: 35%; }

.hero-logo {
  display: block;
  width: min(420px, 82%);
  height: auto;
  margin: 0 0 22px;
}

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.chip.muted {
  color: var(--text-muted);
  background: rgba(110, 140, 190, 0.08);
}

.chip.muted::before {
  background: var(--text-muted);
}

/* ---------- layout blocks ---------- */

section.block {
  margin-top: 72px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.panel {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
}

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

.panel .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

/* game card */

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  background: linear-gradient(140deg, var(--surface-raised), var(--surface) 70%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 32px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.game-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

.game-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.game-card p {
  margin: 10px 0 0;
  font-size: 15px;
}

/* facts */

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 8px;
  list-style: none;
}

.facts li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 16px;
}

/* screenshot */

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.device {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(160deg, #182233, #070b13);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ---------- privacy document ---------- */

.doc h2 {
  font-size: 21px;
  margin: 46px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 34px;
}

.doc h3 {
  font-size: 16px;
  margin: 26px 0 6px;
  color: var(--text);
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 6px;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.doc th {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface-raised);
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.callout {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}

.toc li {
  margin-bottom: 4px;
  font-size: 15px;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.langbar {
  display: flex;
  gap: 8px;
  margin: 0 0 30px;
}

.langbar a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 16px;
}

.langbar a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

hr.split {
  border: none;
  border-top: 1px solid var(--border-strong);
  margin: 80px 0;
}

/* ---------- footer ---------- */

footer.site {
  margin-top: 84px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

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

footer.site nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .game-card,
  .shot-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .shot-row .device {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px 64px; }

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

  .toc ol { columns: 1; }

  header.site {
    padding: 14px 0;
    margin-bottom: 28px;
  }

  nav { gap: 16px; }

  nav a { font-size: 14px; }

  section.block { margin-top: 52px; }

  .doc table { font-size: 14px; }
}
