/* KonKonGames — konkongames.com
   Colours come from Kiseki's key art: night-sky indigo, crystal violet,
   desert sand. */
:root {
  --bg: #0b0a14;
  --bg-2: #12101f;
  --panel: #191529;
  --line: #2c2545;
  --text: #ece8f5;
  --muted: #a9a2bf;
  --violet: #a66bff;
  --violet-hi: #c9a4ff;
  --sand: #e0b57c;
  --radius: 14px;
  --wrap: 1120px;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-hi); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: .02em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--sand); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--text); }
.narrow { max-width: 640px; }
.small { font-size: .9rem; color: var(--muted); }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(11, 10, 20, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.nav-cta { color: var(--bg); background: var(--violet-hi); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.topbar nav a.nav-cta:hover { background: #fff; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, #b98aff, #7d3df0); color: #fff; box-shadow: 0 8px 30px rgba(140, 80, 255, .35); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .25); color: var(--muted); cursor: default; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,10,20,.15) 0%, rgba(11,10,20,0) 40%, rgba(11,10,20,.75) 75%, var(--bg) 100%); }
.hero-copy { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 64px; }
.tagline { font-family: var(--display); font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 600; max-width: 760px; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); margin-bottom: .2em; }
.meta { color: var(--muted); font-size: .92rem; }

/* Intro */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro p { color: var(--muted); }
.intro .lead { color: var(--text); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.fact-num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--violet-hi); line-height: 1.1; }
.facts li span:last-child { color: var(--muted); font-size: .95rem; }

/* Features */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Ships */
.ships { background: var(--bg) url("img/starfield.webp") center / cover no-repeat; position: relative; }
.ships::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg-2), rgba(11,10,20,.35) 18%, rgba(11,10,20,.35) 82%, var(--bg)); }
.ships .wrap { position: relative; }
.ship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.ship-grid figure { margin: 0; background: rgba(18, 16, 31, .55); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.ship-grid img { width: 100%; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,.6)); transition: transform .4s ease; }
.ship-grid figure:hover img { transform: translateX(6px) scale(1.03); }
.ship-grid figcaption { margin-top: 12px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.ship-grid figcaption span { color: var(--sand); font-weight: 500; font-size: .85rem; }

/* Crew */
.crew-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.crew-grid li { background: linear-gradient(to bottom, #1d1833, var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.crew-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; }
.crew-grid span { display: block; padding: 10px 6px 12px; font-weight: 600; font-size: .95rem; }

/* CTA */
.cta { padding-top: 0; }
.cta-box { text-align: center; background: radial-gradient(ellipse at top, rgba(166,107,255,.22), transparent 70%), var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(40px, 6vw, 64px) 24px; max-width: 880px; }
.cta-box p { color: var(--muted); max-width: 600px; margin: 0 auto; }

/* Studio */
.studio { background: var(--bg-2); border-top: 1px solid var(--line); }
.studio p { color: var(--muted); }
.contact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mail { display: inline-block; font-size: 1.15rem; font-weight: 600; margin: 4px 0 14px; word-break: break-all; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .ship-grid { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 10px 16px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .wrap, .hero-copy { padding-left: 16px; padding-right: 16px; }
  .grid-3, .ship-grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  /* Small screens: show the whole key art, logo included, then the copy. */
  .hero { display: block; min-height: 0; padding-top: 56px; }
  .hero-art { position: relative; height: auto; aspect-ratio: 1408 / 768; }
  .hero-shade { top: auto; height: 40%; bottom: auto; inset: auto 0 auto 0; display: none; }
  .hero-copy { padding-top: 20px; padding-bottom: 40px; }
  .tagline { font-size: 1.3rem; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ship-grid img { transition: none; }
}
