/* ==========================================================================
   Aworkit — klutzGames product page
   Hand-written, no framework. Fonts are self-hosted (see ../fonts/fonts.css).
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg0: #05070f;
  --bg1: #0a0f21;
  --bg2: #0e1530;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edfb;
  --muted: #9aa6c4;
  --brand: #356ae6;
  --brand-light: #6ea8ff;
  --violet: #8b5cf6;
  --cyan: #4cc9f0;
  --green: #34d399;
  --grad: linear-gradient(92deg, #6ea8ff 0%, #a78bfa 52%, #4cc9f0 100%);
  --grad-btn: linear-gradient(135deg, #356ae6 0%, #7c5cff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --nav-h: 66px;
}

/* --- Reset / base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 48px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

code, pre {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

::selection {
  background: rgba(124, 92, 255, 0.45);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

section {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
}

/* --- Section headers ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  max-width: 22ch;
}

.section-sub {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Top utility bar ------------------------------------------------------ */
.topbar {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, rgba(53, 106, 230, 0.16), rgba(139, 92, 246, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
  padding: 7px 0;
}

.topbar span {
  color: var(--muted);
}

.topbar a {
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover {
  color: #fff;
  text-decoration: none;
}

.topbar a.legal {
  color: #ffd166;
  font-weight: 600;
}

.topbar a.legal::before {
  content: "§";
  font-weight: 700;
}

/* --- Navbar --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 15, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -6px rgba(53, 106, 230, 0.9);
}

.brand .tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 8px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: var(--surface-2);
  text-decoration: none;
}

.nav-links .mobile-only {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(76, 108, 255, 0.9);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px -14px rgba(76, 108, 255, 1);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-legal {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.55);
  color: #ffd166;
}

.btn-legal:hover {
  background: rgba(255, 209, 102, 0.2);
  border-color: #ffd166;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.06rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn svg {
  flex: none;
}

/* --- Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge b {
  color: var(--text);
  font-weight: 600;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blob-float 16s ease-in-out infinite alternate;
}

.hero-bg .blob-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, #356ae6, transparent 65%);
}

.hero-bg .blob-2 {
  width: 520px;
  height: 520px;
  top: -60px;
  right: -140px;
  background: radial-gradient(circle at 60% 40%, #8b5cf6, transparent 65%);
  animation-delay: -6s;
}

.hero-bg .blob-3 {
  width: 440px;
  height: 440px;
  bottom: -220px;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, #0ea5e9, transparent 65%);
  animation-delay: -11s;
}

@keyframes blob-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 34px, 0) scale(1.12); }
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero .lead strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-note a {
  color: var(--brand-light);
}

/* App window mockup */
.mockup {
  position: relative;
  border-radius: 16px;
  background: #0b1022;
  border: 1px solid var(--line-strong);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(53, 106, 230, 0.22),
    0 0 90px -30px rgba(76, 108, 255, 0.65);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.mockup:hover {
  transform: perspective(1400px) rotateY(-2deg) rotateX(0.5deg) translateY(-4px);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
}

.mockup-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }

.mockup-bar span {
  margin-left: 10px;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mockup img {
  width: 100%;
  height: auto;
}

.mockup .float-chip {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: rgba(10, 15, 33, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: chip-bob 4.5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.float-chip b {
  color: var(--cyan);
}

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --- Marquee -------------------------------------------------------------- */
.marquee {
  padding: 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-track ul {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 16px 22px;
  flex: none;
}

.marquee-track li {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}

.marquee-track li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* --- Feature cards -------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  background: var(--surface-2);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(53, 106, 230, 0.28), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(110, 168, 255, 0.35);
  color: var(--brand-light);
  box-shadow: 0 10px 26px -14px rgba(53, 106, 230, 0.8);
}

.card h3 {
  font-size: 1.16rem;
  font-weight: 600;
  margin-bottom: 9px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.step::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 168, 255, 0.55);
  opacity: 0.85;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* --- Gallery -------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.shot {
  grid-column: span 6;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1022;
  cursor: zoom-in;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
}

.shot:nth-child(1),
.shot:nth-child(4) {
  grid-column: span 12;
}

.shot:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 168, 255, 0.55);
  box-shadow: 0 26px 60px -30px rgba(53, 106, 230, 0.9);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shot:hover img {
  transform: scale(1.02);
}

.shot .shot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(5, 7, 15, 0.92));
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
}

.shot .shot-cap small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(3, 5, 12, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox .lb-cap {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* --- Get started ---------------------------------------------------------- */
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 52px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.panel.accent {
  background:
    radial-gradient(500px 240px at 90% -10%, rgba(53, 106, 230, 0.3), transparent 70%),
    var(--surface);
  border-color: rgba(110, 168, 255, 0.35);
}

.panel h3 {
  font-size: 1.35rem;
}

.panel p {
  color: var(--muted);
  font-size: 0.97rem;
}

.panel .btn {
  margin-top: auto;
  align-self: flex-start;
}

.pkg-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
  display: grid;
  gap: 9px;
}

.pkg-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--text);
}

.pkg-list li b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(76, 201, 240, 0.12);
  border: 1px solid rgba(76, 201, 240, 0.35);
  color: var(--cyan);
  border-radius: 7px;
  padding: 2px 9px;
  min-width: 86px;
  text-align: center;
}

.codeblock {
  background: #060a18;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 4px 0 22px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #cfe0ff;
  white-space: pre;
}

.codeblock .c { color: #6b7aa0; }
.codeblock .g { color: #7ee2a8; }

/* --- OSS / Adashi band ------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 52px;
}

.info-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 34px 32px;
  background: var(--surface);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.info-card .btn {
  margin-top: 8px;
}

.license-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
}

/* --- CTA band ------------------------------------------------------------- */
.cta {
  text-align: center;
}

.cta-box {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(110, 168, 255, 0.35);
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(53, 106, 230, 0.35), transparent 70%),
    radial-gradient(600px 300px at 85% 100%, rgba(139, 92, 246, 0.35), transparent 70%),
    #0a0f21;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.cta-box > * {
  position: relative;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 24ch;
  margin-inline: auto;
}

.cta-box p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: #04060d;
  padding: 58px 0 34px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.footer ul a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer ul a:hover {
  color: var(--brand-light);
  text-decoration: none;
}

.footer ul a.legal-link {
  color: #ffd166;
  font-weight: 600;
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.08);
  padding: 9px 15px;
  border-radius: 10px;
}

.footer ul a.legal-link:hover {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd166;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer p {
  color: var(--muted);
  font-size: 0.89rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .mockup {
    transform: none;
    max-width: 760px;
    margin-inline: auto;
  }

  .features-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1300px) {
  .brand .tag {
    display: none;
  }
}

@media (max-width: 1200px) {
  .nav-toggle {
    display: block;
  }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .nav .brand {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }

  .nav-actions {
    order: 3;
    margin-left: auto;
    margin-right: 4px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-links {
    order: 4;
    position: static;
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    font-size: 1.02rem;
  }

  .nav-links .mobile-only {
    display: block;
  }
}

@media (max-width: 860px) {
  .features-grid,
  .steps,
  .start-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot:nth-child(1),
  .shot:nth-child(4) {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .topbar {
    font-size: 0.76rem;
  }

  .topbar .container {
    gap: 4px 16px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .brand .tag {
    display: none;
  }

  .step::after {
    font-size: 1.9rem;
  }

  .nav-actions {
    margin-right: 0;
  }

  .btn-legal .lbl-full {
    display: none;
  }

  .btn-legal .lbl-short {
    display: inline;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* --- Shrink safety, no-JS fallback, label swap ---------------------------- */
.features-grid > *,
.steps > *,
.start-grid > *,
.split > *,
.gallery-grid > * {
  min-width: 0;
}

.panel,
.codeblock {
  min-width: 0;
}

.btn-legal .lbl-short {
  display: none;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
