/* ============================================================
   Project QT — promo site stylesheet
   Theme: "cosmic candy puzzle arcade" — light, playful, rounded
   Mobile-first: base = small screens, 480px, 768px breakpoints
   ============================================================ */

:root {
  --bg: #FBF6F0;
  --bg-soft: #F3ECFD;
  --surface: #FFFFFF;
  --ink: #352A5E;
  --ink-soft: #5C5285;
  --violet: #7C4DFF;
  --violet-deep: #5B2ED4;
  --coral: #FF6FA5;
  --mint: #2EC4B6;
  --gold: #FFB020;
  --line: #E7DEFA;
  --grad: linear-gradient(135deg, #7C4DFF 0%, #FF6FA5 100%);
  --shadow: 0 10px 30px rgba(91, 46, 212, 0.12);
  --radius: 18px;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.3px;
}

.brand:hover { text-decoration: none; }

.brand .brand-badge {
  background: var(--grad);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 800;
}

.nav { display: none; width: 100%; order: 3; }
.nav.open { display: block; }

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 12px;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

.nav-link:hover { background: var(--bg-soft); color: var(--violet-deep); text-decoration: none; }
.nav-link.active { color: var(--violet-deep); background: var(--bg-soft); }

.btn-play {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124, 77, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-play:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 77, 255, 0.45); text-decoration: none; color: #fff; }

.btn-ghost {
  display: inline-block;
  border: 2px solid var(--violet);
  color: var(--violet-deep);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 9px 22px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

.nav-toggle {
  background: var(--bg-soft);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-deep);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 111, 165, 0.22) 0, transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(46, 196, 182, 0.18) 0, transparent 45%),
    linear-gradient(180deg, #F3ECFD 0%, var(--bg) 100%);
  padding: 44px 0 56px;
  border-bottom: 2px solid var(--line);
}

.hero-inner { display: flex; flex-direction: column; gap: 30px; }

.hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-title .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-tag {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 620px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.fact {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.fact .k { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--coral); font-weight: 800; }
.fact .v { display: block; font-weight: 800; color: var(--ink); font-size: 0.98rem; }

.hero-media { position: relative; }

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.badge {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--violet-deep);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
}

.badge.mint { color: #0E7A70; border-color: rgba(46, 196, 182, 0.5); }
.badge.coral { color: #D63E7C; border-color: rgba(255, 111, 165, 0.5); }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section.alt { background: var(--bg-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-sub { color: var(--ink-soft); max-width: 720px; margin-bottom: 26px; }

.section-divider { border: none; border-top: 2px dashed var(--line); margin: 34px 0; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(91, 46, 212, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-card.mint .icon { background: linear-gradient(135deg, #2EC4B6, #7C4DFF); }
.feature-card.gold .icon { background: linear-gradient(135deg, #FFB020, #FF6FA5); }

.feature-card h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 6px; color: var(--ink); }
.feature-card p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Screenshot grid + lightbox ---------- */
.shot-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.shot-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(91, 46, 212, 0.14);
  background: var(--surface);
}

.shot-card:hover { text-decoration: none; border-color: var(--coral); }

.shot-card img { width: 100%; }

.shot-card figcaption {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 60, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.quote-card {
  background: var(--surface);
  border-left: 5px solid var(--mint);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(91, 46, 212, 0.06);
}

.quote-card.coral { border-left-color: var(--coral); }
.quote-card.violet { border-left-color: var(--violet); }

.quote-card p { font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }
.quote-card cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; color: var(--ink); font-size: 0.88rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad);
  border-radius: 22px;
  color: #fff;
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-banner h2 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 8px; }
.cta-banner p { opacity: 0.95; margin-bottom: 18px; }

.cta-banner .btn-play { background: #fff; color: var(--violet-deep); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.cta-banner .btn-play:hover { color: var(--violet-deep); }

.cta-wrapper { text-align: center; margin-top: 34px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin: 18px 0 4px; }
.breadcrumbs a { color: var(--violet-deep); font-weight: 700; }

/* ---------- Article / prose pages ---------- */
.article h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 34px 0 10px;
}

.article h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); margin: 24px 0 8px; }

.article p { margin-bottom: 14px; color: var(--ink); }

.article .intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  border-left: 4px solid var(--coral);
  padding-left: 16px;
  margin: 0 0 22px;
}

.article ul { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; color: var(--ink); }

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.figure-caption { font-size: 0.82rem; color: var(--ink-soft); text-align: center; padding: 8px 10px; background: #fff; font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; margin: 26px 0; }
.split.flip .split-copy { order: 2; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 26px; border-radius: 14px; border: 1.5px solid var(--line); }

table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }

th {
  background: var(--bg-soft);
  color: var(--violet-deep);
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink); }
tr:nth-child(even) td { background: #FBF9FF; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin: 22px 0; }

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-family: var(--font-display);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral);
  font-size: 1.4rem;
  font-weight: 800;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item .answer { padding: 0 18px 16px; color: var(--ink-soft); font-size: 0.97rem; }

.faq-sysreq { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D9D2F2;
  padding: 28px 0;
  margin-top: 40px;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

.copyright { font-size: 0.86rem; color: #B9B0DE; }

.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.lang-switch a {
  color: #E6E0FA;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-switch a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.lang-switch a.active { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet-deep);
  color: #fff;
  padding: 8px 16px;
  z-index: 300;
  border-radius: 0 0 10px 0;
}

.skip-link:focus { left: 0; }

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 480px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body { font-size: 18px; }

  .nav-toggle { display: none; }
  .nav { display: block; width: auto; order: 0; }
  .nav-list { flex-direction: row; gap: 4px; padding: 0; }
  .nav-link { padding: 8px 14px; }

  .hero { padding: 64px 0 72px; }
  .hero-inner { flex-direction: row; align-items: center; gap: 44px; }
  .hero-copy { flex: 1 1 52%; }
  .hero-media { flex: 1 1 48%; }
  .hero-title { font-size: 2.6rem; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .shot-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-grid { grid-template-columns: repeat(3, 1fr); }

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

  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
