:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --line: #2a2f3a;
  --text: #f2efe8;
  --muted: #a3a7b3;
  --accent: #ff5a4e;
  --accent-2: #ffc857;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: "Fredoka", "Outfit", sans-serif;
  font-weight: 600; font-size: 24px; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 18px 0 0 var(--accent-2);
  margin-right: 18px;
}
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel-2); }
.menu-btn {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 28px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-family: "Fredoka", "Outfit", sans-serif;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05; margin: 0 0 18px; font-weight: 600;
}
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 20px; max-width: 620px; margin: 0 auto 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff; border: 0;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.section-title h2 {
  font-family: "Fredoka", "Outfit", sans-serif;
  font-size: 34px; margin: 0; font-weight: 600;
}
.section-title a { color: var(--muted); text-decoration: none; }
.section-title a:hover { color: var(--text); }
.page-head { padding: 64px 0 8px; }
.page-head h1 {
  font-family: "Fredoka", "Outfit", sans-serif;
  font-size: clamp(36px, 5vw, 54px); margin: 0 0 8px;
}
.page-head p { color: var(--muted); margin: 0; font-size: 19px; }

/* ---------- Cards ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: #3a4150; }
.card-art {
  aspect-ratio: 16 / 10; position: relative;
  display: grid; place-items: center; overflow: hidden;
}
.card-art img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art img.icon {
  width: 96px; height: 96px; border-radius: 22px; position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin: 0 0 4px; font-size: 21px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff;
}
.badge.soon { background: var(--accent-2); color: #1a1a1a; }
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 32px; text-align: center; color: var(--muted);
}

/* ---------- Project page ---------- */
.project-hero { padding: 56px 0 24px; }
.project-top { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.project-top img.icon { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.project-top h1 {
  font-family: "Fredoka", "Outfit", sans-serif;
  font-size: clamp(34px, 5vw, 52px); margin: 0; line-height: 1.1;
}
.project-top .tagline { color: var(--muted); font-size: 19px; margin: 6px 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }

.app-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #555; border-radius: 12px; padding: 8px 18px;
}
.app-store-badge small { display: block; font-size: 11px; line-height: 1; }
.app-store-badge strong { display: block; font-size: 20px; line-height: 1.2; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.shots img {
  height: 360px; width: auto; border-radius: 14px;
  scroll-snap-align: start; border: 1px solid var(--line); cursor: zoom-in;
}
.video {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.video iframe { width: 100%; height: 100%; border: 0; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.features li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9);
  display: none; place-items: center; z-index: 100; padding: 20px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 12px; }

/* ---------- Text pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; }
.prose p, .prose li { color: #d8d5ce; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
  }
  .nav.open { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .shots img { height: 260px; }
  .hero { padding: 64px 0 48px; }
}
