:root {
  --bg: #121820;
  --panel: #1a222d;
  --panel-2: #212b38;
  --line: #2c3848;
  --text: #e4e9f0;
  --muted: #93a0b2;
  --accent: #f2a516;
  --accent-ink: #1a1204;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Site title ---------- */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 24px;
  text-align: center;
}
.site-title {
  margin: 0;
}
.site-logo {
  width: clamp(208px, 28vw, 296px);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
}
.site-tagline {
  margin: 4px 0 0;
  color: var(--muted);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.site-nav a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.site-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(242,165,22,0.06), transparent 60%),
    var(--bg);
}
.hero h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
}
.lead {
  color: var(--muted);
  max-width: 78ch;
  margin: 20px auto 32px;
  font-size: 1.125rem;
  text-align: justify;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb935; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section:last-of-type { padding-bottom: 72px; }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* Video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.shot:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .shot:hover img { transform: none; } }

.notice {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.95rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #cdd5e0;
}
.card li:first-child { border-top: 0; }

/* Extras tiles */
.tiles {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tiles > li {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.tiles > li > strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}
.tiles > li > span:not(.badge) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}
/* Nested sub-feature list inside a tile */
.tiles ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.tiles ul li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: #cdd5e0;
  font-size: 0.95rem;
}
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(242,165,22,.45);
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 6px;
  white-space: nowrap;
}

/* Contact band */
.contact {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact h2 { font-size: 1.6rem; }
.contact p { margin: 6px 0 0; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox::backdrop { background: rgba(5, 8, 12, .88); }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: fixed;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0; }
  .section { padding-top: 56px; }
  .shots { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
