/* ==========================================================================
   CSR Labs — site styles
   Edit the tokens in :root to rebrand colours and fonts.
   Pages with <body class="dz"> (Dream Zoo) override a few tokens further down.
   ========================================================================== */

/* Self-hosted Plus Jakarta Sans (variable, 400-800). No third-party font requests. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f6f7fd;
  --bg-elev: #ffffff;
  --ink: #101642;
  --surface: #ffffff;
  --surface-alt: #f5f7fc;
  --text: #0f172a;
  --text-muted: #5b6680;
  --text-on-dark: #e8ecf8;
  --text-on-dark-muted: #a9b3cc;
  --accent: #2f6bff;
  --accent-strong: #1e4fdb;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --accent-2: #b43cf0;
  --accent-3: #0ea5d9;
  --gradient: linear-gradient(135deg, #19d3f5, #2f6bff 50%, #b43cf0);
  --border: #e4e8f1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 24px 56px rgba(15, 23, 42, 0.14);
  --max: 1160px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; }

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

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  line-height: 1.12;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

.section { padding: 96px 0; }
.section.alt { background: var(--surface-alt); }
.section.tight { padding-top: 0; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-muted); font-size: 1.12rem; margin: 0; }
.section-head h2 { margin-bottom: 0.45em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 24px -8px var(--accent-strong); }
.btn-outline { border-color: rgba(15, 23, 42, 0.18); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: rgba(15, 23, 42, 0.04); }
.btn-outline-dark { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline-dark:hover { border-color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand-logo.square { border-radius: 11px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -6px var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(15, 23, 42, 0.06); text-decoration: none; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--accent-strong); background: var(--accent-soft); }
.nav-links a.btn { padding: 10px 20px; font-size: 0.9rem; color: #fff; margin-left: 10px; }
.has-menu { position: relative; display: flex; align-items: center; }
.has-menu > a:not(.btn) { padding-right: 8px; }
.menu-toggle {
  background: none;
  border: 0;
  color: var(--text-muted);
  width: 28px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.menu-toggle:hover { color: var(--text); background: rgba(15, 23, 42, 0.06); }
.has-menu.open .menu-toggle svg { transform: rotate(180deg); }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 50px -16px rgba(15, 23, 42, 0.25);
  display: none;
  z-index: 20;
}
.nav-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu, .has-menu.open .nav-menu { display: block; }
.nav-menu a:not(.btn) { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 10px; font-size: 0.92rem; }
.nav-menu img { width: 28px; height: 28px; border-radius: 8px; }
.nav-menu .all { color: var(--accent-strong); }
.nav-menu-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 10px 10px 4px; }
.nav-menu .mini { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); font-size: 15px; flex: none; }
.nav-menu .soon { margin-left: auto; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(25, 211, 245, 0.45), transparent 60%),
    linear-gradient(120deg, #0ea5d9 0%, #2f6bff 48%, #a12fe0 100%);
  color: #fff;
  padding: 104px 0 104px;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #c9f6ff, #ffffff 60%, #f3d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-visual { position: relative; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.page-hero { padding: 84px 0 68px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; }
.hero .eyebrow, .page-hero .eyebrow { color: rgba(255, 255, 255, 0.9); }
.hero .eyebrow::before { background: #fff; }
.hero .btn-primary { background: #fff; color: var(--accent-strong); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45); }
.hero .btn-primary:hover { background: #f1f5ff; color: var(--accent-strong); }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.hero .chip { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; box-shadow: none; }
.hero .chip svg { color: #fff; }

/* Code card (homepage hero visual) ------------------------------------- */
.code-card {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  transform: rotate(-1.2deg);
}
.code-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.code-card-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.code-card-bar i:nth-child(2) { background: #febc2e; }
.code-card-bar i:nth-child(3) { background: #28c840; }
.code-card-bar span { margin-left: auto; font-size: 0.75rem; color: var(--text-on-dark-muted); font-family: var(--font); }
.code-card pre { margin: 0; padding: 18px 20px 22px; overflow: hidden; color: #cfd6ea; white-space: pre; }
.code-card .k { color: #c792ea; }
.code-card .s { color: #c3e88d; }
.code-card .f { color: #82aaff; }
.code-card .c { color: #6b7694; }
.code-card .n { color: #f78c6c; }
.code-card-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}
.code-card-status b { color: #fff; font-weight: 600; }
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(40, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--accent-strong); }
.float-chip.a { top: -18px; left: -4%; animation-delay: -1s; }
.float-chip.b { bottom: -16px; right: 6%; animation-delay: -3s; }
.float-chip.c { top: 44%; right: -8%; animation-delay: -5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Logo strip / meta row ------------------------------------------------- */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.chip svg { width: 16px; height: 16px; color: var(--accent-strong); }

/* Cards / grids --------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 18px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 0.92rem; }
.icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.icon svg { width: 24px; height: 24px; }
.card:hover .icon { background: var(--gradient); color: #fff; transform: scale(1.05) rotate(-3deg); }

/* Process steps --------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px var(--accent-2);
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-muted); margin: 0; }

/* Two-column feature ---------------------------------------------------- */
.split {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split > div > p { color: var(--text-muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8f84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.panel {
  position: relative;
  background: linear-gradient(135deg, #eef4ff, #f7efff);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 110% -20%, rgba(180, 60, 240, 0.16), transparent 60%),
    radial-gradient(320px 220px at -20% 120%, rgba(25, 211, 245, 0.18), transparent 60%);
  pointer-events: none;
}
.panel > * { position: relative; }
.panel h3 { color: var(--text); }
.panel p { color: var(--text-muted); }
.panel strong { color: var(--text); }
.panel code {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent-strong);
  line-height: 1.9;
}
.panel .btn { margin-top: 8px; }

/* Featured product (homepage) ------------------------------------------- */
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #eaf8ef, #fff6dc);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 360px at 95% 0%, rgba(255, 196, 61, 0.22), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(63, 191, 127, 0.2), transparent 60%);
  pointer-events: none;
}
.feature-card > * { position: relative; }
.feature-card .eyebrow { color: #1f8f58; }
.feature-card .eyebrow::before { background: linear-gradient(90deg, #3fbf7f, #ffc43d); }
.feature-card h2 { color: var(--text); }
.feature-card p { color: var(--text-muted); }
.feature-card .btn-primary { background: #3fbf7f; box-shadow: 0 8px 20px -8px #3fbf7f; }
.feature-card .btn-primary:hover { background: #1f8f58; }
.feature-visual { display: grid; place-items: center; }
.feature-visual img { width: 100%; max-width: 480px; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-shot {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* Games catalogue ------------------------------------------------------- */
.game-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.game-card .art img { width: 100%; height: auto; max-height: 400px; object-fit: cover; object-position: center 48%; display: block; }
.game-card .body { padding: 36px; }
.game-card .title { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-card .title img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); flex: none; }
.game-card h2 { margin: 0; font-size: 1.5rem; }
.game-card .platform { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.game-card .meta-strip { margin: 18px 0 22px; }
.game-card .chip { background: var(--accent-soft); color: var(--text); border-color: transparent; }
.game-card .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-outline.dark { border-color: var(--border); color: var(--text); }
.btn-outline.dark:hover { border-color: var(--text); background: var(--surface-alt); }
.dev-card { display: flex; flex-direction: column; align-items: flex-start; }
.dev-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.dev-tile { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--accent-soft); }
.dev-card .platform { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; margin: -10px 0 12px; }
.dev-card p { margin-bottom: 0; }
.dev-card .chip { margin-top: 16px; }
.game-soon {
  margin-top: 28px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}
.game-soon h3 { margin-top: 0; }
.game-soon p { margin-bottom: 0; }


/* Match-3 board illustration (Dream Zoo) -------------------------------- */
.phone {
  width: min(300px, 100%);
  margin: 0 auto;
  background: #0a1b17;
  border-radius: 38px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #0a1b17;
  z-index: 2;
}
.screen {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c5a46 0%, #0f3a2f 100%);
  padding: 44px 16px 20px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.hud span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}
.hud .goal { background: #ffc43d; color: #3a2a00; }
.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px;
  border-radius: 16px;
}
.tile {
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  user-select: none;
}
.tile.hit {
  background: #ffc43d;
  box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 196, 61, 0.8);
  animation: pop 1.8s ease-in-out infinite;
}
@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3fbf7f, #ffc43d);
}
.screen .caption {
  margin-top: auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
}
.phone.sm { width: min(230px, 100%); border-radius: 30px; padding: 10px; }
.phone.sm .screen { min-height: 400px; padding-top: 36px; }
.phone.sm .tile { font-size: 1.1rem; border-radius: 8px; }
.phone.sm::before { width: 70px; height: 18px; top: 10px; }

/* Store badge ----------------------------------------------------------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 20px 10px 14px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.store-badge small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.06em; margin-bottom: 3px; }
.store-badge:hover { text-decoration: none; transform: translateY(-2px); border-color: #fff; }

/* Screenshots ----------------------------------------------------------- */
.shots {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.shot {
  aspect-ratio: 9 / 18;
  border-radius: 24px;
  background: linear-gradient(165deg, #1c5a46, #0d241f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .emoji { font-size: 3rem; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); }
.shot small { font-weight: 500; color: var(--text-on-dark-muted); }

/* FAQ ------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--text-muted); }

/* CTA ------------------------------------------------------------------- */
.cta {
  position: relative;
  background: linear-gradient(135deg, #1e4fdb, #8a2be2);
  color: #fff;
  border-radius: 24px;
  padding: 60px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.cta::before { width: 420px; height: 420px; right: -120px; top: -200px; }
.cta::after { width: 260px; height: 260px; right: -40px; top: -120px; background: rgba(255, 255, 255, 0.06); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.cta .btn-primary { background: #fff; color: var(--text); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5); }
.cta .btn-primary:hover { background: #eef1f8; }

/* Forms ----------------------------------------------------------------- */
.form {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.form .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-note { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.contact-info { display: grid; gap: 16px; }
.contact-info .card { box-shadow: none; padding: 22px 24px; }
.contact-info .card:hover { transform: none; box-shadow: none; border-color: var(--border); }
.contact-info .card::before { display: none; }
.contact-info h3 { margin-top: 0; font-size: 0.8rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-info p { color: var(--text); font-size: 1.05rem; }

/* Team ------------------------------------------------------------------ */
.team .card { text-align: center; }
.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 10px 24px -10px var(--accent-2);
}
.team .role { color: var(--accent-strong); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }

/* Values ---------------------------------------------------------------- */
.values { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.value h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); flex: none; }
.value p { color: var(--text-muted); margin: 0; }

/* Legal / long-form text ------------------------------------------------ */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; padding-top: 0.4em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: #2b3650; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.legal th, .legal td { overflow-wrap: anywhere; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 14px; border: 1px solid var(--border); }
.legal th { background: var(--surface-alt); font-weight: 700; width: 32%; }
.legal .summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 20px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.5em;
}
.legal .summary p:last-child { margin: 0; }
.toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 2em;
}
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin: 5px 0; break-inside: avoid; }
.toc a { font-weight: 600; }

/* Footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--bg);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 72px 0 28px;
  margin-top: 40px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 48px;
}
.site-footer h4 { color: var(--text); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--accent-strong); text-decoration: none; }
.footer-brand p { max-width: 320px; margin-top: 14px; font-size: 0.97rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

/* Reveal on scroll (class added by main.js; no JS = content simply shows) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Utility --------------------------------------------------------------- */
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 404 ------------------------------------------------------------------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page .code {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.error-page .btn { margin-top: 10px; }

/* Dream Zoo theme ------------------------------------------------------- */
.dz {
  --accent: #3fbf7f;
  --accent-strong: #1f8f58;
  --accent-soft: rgba(63, 191, 127, 0.14);
  --accent-2: #ffc43d;
  --gradient: linear-gradient(135deg, #3fbf7f, #ffc43d);
  --bg: #f3faf5;
  --bg-elev: #ffffff;
}
.dz .hero {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 220, 120, 0.35), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(120deg, #15804d 0%, #2aa86c 55%, #c98a12 100%);
}
.dz .hero h1 em { background: linear-gradient(90deg, #fff3b0, #ffd166); -webkit-background-clip: text; background-clip: text; }
.dz .brand-mark { background: var(--gradient); color: #1b2a14; }
.dz .site-footer { background: var(--bg); }
.dz .hero .btn-primary { color: #1f8f58; }
.dz .panel::before {
  background:
    radial-gradient(420px 260px at 110% -20%, rgba(255, 196, 61, 0.22), transparent 60%),
    radial-gradient(320px 220px at -20% 120%, rgba(63, 191, 127, 0.2), transparent 60%);
}
.dz .panel { background: linear-gradient(135deg, #ecf9f1, #fff7df); }
.dz .panel code { color: #1f8f58; }
.dz .step::before { color: #1b2a14; box-shadow: 0 8px 18px -8px #3fbf7f; }
.dz .cta { background: linear-gradient(135deg, #1f8f58, #2a6f97); }
.dz .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8f58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.dz .error-page .code { background: var(--gradient); -webkit-background-clip: text; background-clip: text; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: none; }
  .hero-visual { max-width: 520px; }
  .code-card { transform: none; }
  .float-chip.c { right: 0; }
  .feature-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-card .art img { max-height: 280px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 72px; }
  .page-hero { padding: 64px 0 52px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    display: none;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 4px 0; }
  .nav-links a:not(.btn) { display: block; font-size: 1.05rem; padding: 12px 14px; }
.nav-links a.btn { margin: 10px 0 0; width: 100%; }
  .has-menu { flex-wrap: wrap; }
  .has-menu > a:not(.btn) { flex: 1; }
  .menu-toggle { width: 44px; height: 44px; }
  .nav-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 4px 0 6px;
    padding: 4px 8px;
    background: var(--surface-alt);
    border-color: var(--border);
    box-shadow: none;
  }
  .nav-menu::before { display: none; }
  .has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu { display: none; }
  .has-menu.open .nav-menu { display: block; }
  .nav-menu a:not(.btn) { display: flex; font-size: 0.98rem; padding: 10px 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; }
  .panel { padding: 30px 26px; }
  .card { padding: 26px 22px; }
  .float-chip.b { right: 0; }
  .float-chip.a { left: 0; }
  .toc ol { columns: 1; }
  .legal th { width: 34%; }
  .legal th, .legal td { padding: 9px 10px; font-size: 0.88rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .badge-row { flex-direction: column; align-items: flex-start; }
  .code-card { font-size: 0.72rem; }
  .code-card pre { padding: 14px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
