/* Doxelia — site vitrine. Dark first, light theme via [data-theme] or the system. */

:root {
  --bg: #0B0D12;
  --bg-2: #10131A;
  --surface: #151924;
  --surface-2: #1B2030;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F1F3F5;
  --muted: #9AA3B5;
  --brand: #6D66F0;
  --brand-soft: #A5A0FA;
  --lime: #D4F75A;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --p: var(--brand);
  --p-soft: var(--brand-soft);
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F7FB; --bg-2: #EFEFF6; --surface: #FFFFFF; --surface-2: #F3F3F9;
    --line: rgba(15, 18, 30, .08); --line-2: rgba(15, 18, 30, .14);
    --text: #12141C; --muted: #5B6275; --lime: #5B7A00;
    --shadow: 0 30px 70px -35px rgba(30, 30, 80, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F7F7FB; --bg-2: #EFEFF6; --surface: #FFFFFF; --surface-2: #F3F3F9;
  --line: rgba(15, 18, 30, .08); --line-2: rgba(15, 18, 30, .14);
  --text: #12141C; --muted: #5B6275; --lime: #5B7A00;
  --shadow: 0 30px 70px -35px rgba(30, 30, 80, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
::selection { background: var(--p); color: #fff; }
:focus-visible { outline: 2px solid var(--p-soft); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.i { flex: none; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: var(--p); color: #fff; box-shadow: 0 10px 30px -10px var(--p); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--p); }
.btn-ghost { border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface); }

.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  border-radius: 12px; background: var(--text); color: var(--bg);
  font: 600 15px/1.15 var(--font); transition: transform .2s, box-shadow .2s;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--p); }
.store.lg { padding: 12px 20px 12px 14px; font-size: 17px; }
.store.lg svg { width: 28px; height: 28px; }
.store.is-soon { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); cursor: default; }
.store.is-soon:hover { transform: none; box-shadow: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: color-mix(in srgb, var(--p) 14%, transparent); border: 1px solid color-mix(in srgb, var(--p) 30%, transparent);
}
.pill-soon { background: color-mix(in srgb, var(--lime) 18%, transparent); border-color: color-mix(in srgb, var(--lime) 40%, transparent); color: var(--lime); font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; color: var(--text); }
.nav-links { display: flex; gap: 4px; margin-left: 16px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }
[data-theme-toggle] .i:last-child { display: none; }
:root[data-theme="light"] [data-theme-toggle] .i:first-child { display: none; }
:root[data-theme="light"] [data-theme-toggle] .i:last-child { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) [data-theme-toggle] .i:first-child { display: none; }
  :root:not([data-theme="dark"]) [data-theme-toggle] .i:last-child { display: block; }
}

/* ---------- hero ---------- */
.hero, .p-hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 400px at 20% 20%, color-mix(in srgb, var(--p) 35%, transparent), transparent 70%),
    radial-gradient(500px 380px at 85% 30%, color-mix(in srgb, var(--lime) 14%, transparent), transparent 70%);
  filter: blur(10px); opacity: .9;
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 80px 0 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: 500 13px var(--mono); color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 25%, transparent); }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); margin: 22px 0 22px; font-weight: 700; }
.grad { background: linear-gradient(100deg, var(--brand-soft), var(--brand) 45%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--lime); }

.hero-art { display: grid; place-items: center; }
.orbit { position: relative; width: min(460px, 100%); aspect-ratio: 1; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line-2);
}
.orbit::after { inset: 30%; border-style: solid; border-color: var(--line); }
.orbit-core {
  position: absolute; inset: 37%; display: grid; place-items: center; border-radius: 30%;
  background: linear-gradient(180deg, #1C1F2B, #0E1013); box-shadow: var(--shadow), 0 0 80px -10px var(--brand);
}
.orbit-core .mark { width: 62%; height: 62%; color: #F1F3F5; }
.orb {
  --a: calc(var(--i) * 45deg - 90deg);
  position: absolute; width: 18%; aspect-ratio: 1;
  left: calc(50% + cos(var(--a)) * 41%); top: calc(50% + sin(var(--a)) * 41%);
  translate: -50% -50%;
  transition: scale .3s;
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s);
}
.orb img { width: 100%; height: 100%; border-radius: 24%; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); }
.orb:hover { scale: 1.12; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(10px); margin-bottom: 40px;
}
.stats div { padding: 22px 24px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { font: 700 34px var(--display); letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; display: grid; gap: 14px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head a { color: var(--ink); }
.kicker { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 14px var(--font); color: var(--muted); padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; min-width: 260px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
}
.search input { border: 0; outline: 0; background: transparent; color: var(--text); font: 15px var(--font); width: 100%; }

/* app cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.app-grid.three { grid-template-columns: repeat(3, 1fr); }
.app-card { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; isolation: isolate; }
.app-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px 200px at 0% 0%, color-mix(in srgb, var(--p) 22%, transparent), transparent 70%);
}
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--p) 55%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--p) 70%, transparent); }
.app-card:hover::before { opacity: 1; }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.app-icon.xl { width: 88px; height: 88px; border-radius: 22px; }
.app-card h3 { font-size: 22px; }
.app-card p { color: var(--muted); font-size: 15px; flex: 1; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; }
.go { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.go .i { transition: transform .25s; }
.app-card:hover .go .i { transform: translateX(4px); }
.price { font: 500 13px var(--mono); color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* screenshot reel */
.reel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, (100vw - 1200px) / 2) 24px;
  scrollbar-width: thin;
}
.reel-item { flex: 0 0 min(620px, 86vw); margin: 0; scroll-snap-align: center; }
.reel-item > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 16px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: zoom-in; background: var(--surface);
  transition: transform .3s;
}
.reel-item > img:hover { transform: scale(1.01); }
.reel-item figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.reel-item figcaption img { border-radius: 6px; }
.reel-item figcaption a { font-weight: 600; }
.reel-item figcaption span { color: var(--muted); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principle { padding: 28px; display: grid; gap: 12px; align-content: start; }
.principle-ic, .feat-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 6px;
  color: var(--ink); background: color-mix(in srgb, var(--p) 16%, transparent); border: 1px solid color-mix(in srgb, var(--p) 30%, transparent);
}
.principle h3, .feat h3 { font-size: 19px; }
.principle p, .feat p { color: var(--muted); font-size: 15px; }
.principle:hover, .feat:hover { transform: translateY(-3px); border-color: var(--line-2); }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { transition: transform .25s; color: var(--muted); }
.faq-item[open] summary span { transform: rotate(45deg); color: var(--ink); }
.faq-item p { color: var(--muted); padding-bottom: 20px; }

/* cta */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 48px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--p) 30%, var(--surface)), var(--surface) 60%);
  border: 1px solid var(--line-2);
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 30%;
  background: color-mix(in srgb, var(--lime) 25%, transparent); filter: blur(60px); pointer-events: none;
}
.cta-band h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- product page ---------- */
.p-hero .wrap { position: relative; z-index: 1; padding: 28px 0 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 500; }
.p-hero-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.p-copy { display: grid; gap: 22px; }
.p-title { display: flex; align-items: center; gap: 20px; }
.p-title h1 { font-size: clamp(34px, 4.4vw, 52px); }
.plats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plat { font: 500 12px var(--mono); padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.p-tagline { font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--display); letter-spacing: -.02em; }
.p-tagline { background: linear-gradient(100deg, var(--text), var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.gallery { display: grid; gap: 14px; min-width: 0; }
.frame {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--shadow), 0 40px 120px -50px var(--p);
}
.frame-bar, .mock-bar {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.frame-bar b, .mock-bar b { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.frame-bar span, .mock-bar span { margin-left: 10px; }
.frame-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; cursor: zoom-in; transition: opacity .25s; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: .2s; }
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.thumb:hover { opacity: .85; }
.thumb.is-on { opacity: 1; border-color: var(--p); box-shadow: 0 0 0 2px color-mix(in srgb, var(--p) 40%, transparent); }
.note { font-size: 13px; color: var(--muted); text-align: center; }

.mock {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--shadow), 0 40px 120px -50px var(--p);
}
.mock-body { display: grid; grid-template-columns: 64px 1fr; aspect-ratio: 16 / 10; }
.mock-side { background: var(--surface-2); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 14px; padding: 18px 16px; }
.mock-side i { height: 32px; border-radius: 9px; background: var(--line); }
.mock-side i:first-child { background: color-mix(in srgb, var(--p) 55%, transparent); }
.mock-main { padding: 26px; display: grid; gap: 20px; align-content: start; }
.mock-head { display: flex; align-items: center; gap: 16px; }
.mock-head img { width: 56px; height: 56px; border-radius: 14px; }
.mock-head div { display: grid; gap: 8px; flex: 1; }
.mock-head i { height: 12px; border-radius: 6px; background: var(--line-2); width: 46%; }
.mock-head i + i { width: 28%; background: var(--line); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards div { height: 74px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--p) 22%, transparent), transparent); }
.mock-cards div:nth-child(2) { background: linear-gradient(135deg, color-mix(in srgb, var(--p-soft) 18%, transparent), transparent); }
.mock-rows { display: grid; gap: 10px; }
.mock-rows i { display: block; height: 14px; border-radius: 7px; background: var(--line); animation: shimmer 2.4s ease-in-out infinite; }
.mock-rows i:nth-child(2n) { animation-delay: .3s; }
@keyframes shimmer { 50% { opacity: .5; } }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 28px; display: grid; gap: 10px; align-content: start; }

.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.price-card {
  padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--p) 45%, var(--line));
  box-shadow: 0 30px 80px -40px var(--p); display: grid; gap: 14px; align-content: start;
}
.price-big { font: 700 clamp(40px, 5vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.price-model { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { color: var(--ink); margin-top: 3px; }
.promise {
  padding: 36px; border-radius: 24px; display: grid; gap: 16px; align-content: center;
  background: radial-gradient(400px 260px at 100% 0%, color-mix(in srgb, var(--lime) 12%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.promise h2 { font-size: clamp(26px, 3vw, 34px); }
.promise p { color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.link:hover .i { transform: translateX(3px); }
.link .i { transition: transform .2s; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.pager a { display: inline-flex; align-items: center; gap: 8px; }
.pager a:hover { color: var(--text); }

/* privacy */
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin-top: 24px; }
.prose p { color: var(--muted); }
.prose a { color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; font-size: 14px; }
.foot-brand p { color: var(--muted); max-width: 32ch; }
.foot-brand > a:not(.brand) { color: var(--ink); }
.foot h4 { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.foot-grid > div:not(.foot-brand) { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.foot-grid > div:not(.foot-brand) a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-bottom a:hover { color: var(--text); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px;
  background: rgba(5, 6, 10, .88); backdrop-filter: blur(12px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 160px); border-radius: 12px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #C9CED9; font-size: 14px; }
.lightbox .icon-btn { position: absolute; color: #F1F3F5; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); width: 48px; height: 48px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .p-hero-in { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; margin: 0; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px; font-size: 17px; }
  .nav-burger { display: inline-grid; }
  .nav-cta { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { order: -1; }
  .orbit { width: min(340px, 100%); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(4) { border-left: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .price-wrap, .app-grid.three { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .principles, .feats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats div:last-child { grid-column: 1 / -1; }
  .search { min-width: 0; width: 100%; }
  .cta-band { padding: 32px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .btn-lg { padding: 15px 18px; }
  .p-title { align-items: flex-start; }
  .app-icon.xl { width: 68px; height: 68px; border-radius: 18px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mock-body { grid-template-columns: 44px 1fr; }
  .mock-side { padding: 12px 8px; }
  .mock-main { padding: 16px; gap: 14px; }
  .mock-cards div { height: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pager { flex-direction: column; align-items: center; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
}

/* Accent text: the soft tone reads well on dark, the full tone on light. */
body, [style*="--p:"] { --ink: var(--p-soft); }
:root[data-theme="light"] body, :root[data-theme="light"] [style*="--p:"] { --ink: var(--p); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body, :root:not([data-theme="dark"]) [style*="--p:"] { --ink: var(--p); }
}
