/* ==========================================================================
   PCDoctor Apps – site stylesheet
   Design tokens, layout, components. No framework, no build step.
   ========================================================================== */

/* ---------- Tokens (light) ---------- */
:root {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-alt: #f1f3f8;
  --ink: #141a2b;
  --ink-2: #3a4256;
  --muted: #5f6779;
  --accent-text: #2b58d9;
  --line: #e3e6ee;
  --line-strong: #d3d8e4;
  --accent: #3b6cf6;
  --accent-2: #5b3df5;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --ok: #0f7049;
  --ok-soft: #e4f6ee;
  --warn: #9a6000;
  --warn-soft: #fff3d6;
  --info: #2c5fd1;
  --info-soft: #e8efff;
  --err: #c0392b;
  --err-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(20, 26, 43, .05), 0 4px 14px -8px rgba(20, 26, 43, .12);
  --shadow-md: 0 2px 6px rgba(20, 26, 43, .06), 0 18px 40px -22px rgba(20, 26, 43, .28);
  --shadow-lg: 0 10px 30px -10px rgba(20, 26, 43, .25), 0 40px 80px -40px rgba(20, 26, 43, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --hero-grad: radial-gradient(1200px 600px at 80% -10%, rgba(59, 108, 246, .14), transparent 60%),
               radial-gradient(800px 500px at 0% 20%, rgba(91, 61, 245, .10), transparent 60%);
  color-scheme: light;
}

/* ---------- Tokens (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1420;
    --bg-elev: #161c2b;
    --bg-alt: #121826;
    --ink: #eef1f8;
    --ink-2: #c5cbdb;
    --muted: #8f98ad;
    --accent-text: #8fb0ff;
    --line: #262e42;
    --line-strong: #344060;
    --accent: #6f93ff;
    --accent-2: #9d86ff;
    --accent-ink: #0b1020;
    --accent-soft: #1b2545;
    --ok: #4ad19a;
    --ok-soft: #10301f;
    --warn: #f0b74a;
    --warn-soft: #3a2a08;
    --info: #8fb0ff;
    --info-soft: #172341;
    --err: #ff7b6e;
    --err-soft: #3a1512;
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, .03), 0 6px 18px -10px rgba(0, 0, 0, .7);
    --shadow-md: 0 1px 0 rgba(255, 255, 255, .03), 0 20px 44px -24px rgba(0, 0, 0, .8);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 40px 80px -40px rgba(0, 0, 0, .8);
    --hero-grad: radial-gradient(1200px 600px at 80% -10%, rgba(111, 147, 255, .16), transparent 60%),
                 radial-gradient(800px 500px at 0% 20%, rgba(157, 134, 255, .12), transparent 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1420;
  --bg-elev: #161c2b;
  --bg-alt: #121826;
  --ink: #eef1f8;
  --ink-2: #c5cbdb;
  --muted: #8f98ad;
  --accent-text: #8fb0ff;
  --line: #262e42;
  --line-strong: #344060;
  --accent: #6f93ff;
  --accent-2: #9d86ff;
  --accent-ink: #0b1020;
  --accent-soft: #1b2545;
  --ok: #4ad19a;
  --ok-soft: #10301f;
  --warn: #f0b74a;
  --warn-soft: #3a2a08;
  --info: #8fb0ff;
  --info-soft: #172341;
  --err: #ff7b6e;
  --err-soft: #3a1512;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .03), 0 6px 18px -10px rgba(0, 0, 0, .7);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, .03), 0 20px 44px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 40px 80px -40px rgba(0, 0, 0, .8);
  --hero-grad: radial-gradient(1200px 600px at 80% -10%, rgba(111, 147, 255, .16), transparent 60%),
               radial-gradient(800px 500px at 0% 20%, rgba(157, 134, 255, .12), transparent 60%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
p a, .prose a, .check-list a { text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }
.h4 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 70ch; color: var(--ink-2); font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 600; color: var(--accent-text); margin: 0 0 .75rem; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico.flip { transform: scaleX(-1); }
.link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px -10px rgba(59, 108, 246, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(59, 108, 246, .8); }
.btn-secondary { background: var(--bg-elev); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-elev); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-size: 1.08rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav li { position: relative; }
.site-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-text); }
.sub-toggle { background: none; border: 0; padding: .3rem; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-flex; }
.sub-toggle .ico { transform: rotate(90deg); transition: transform .2s; }
.has-sub[data-open="true"] .sub-toggle .ico { transform: rotate(-90deg); }
.site-nav .sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: .4rem; display: none; flex-direction: column; gap: .1rem;
}
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub, .site-nav .has-sub[data-open="true"] .sub { display: flex; }
.sub li { width: 100%; }
.sub a { width: 100%; padding: .55rem .7rem; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.theme-toggle, .nav-toggle { background: none; border: 1px solid transparent; border-radius: 10px; width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.theme-toggle:hover, .nav-toggle:hover { background: var(--bg-alt); color: var(--ink); }
.theme-ico, .nav-ico { display: grid; }
.theme-ico-moon { display: none; }
[data-theme="dark"] .theme-ico-sun { display: none; }
[data-theme="dark"] .theme-ico-moon { display: grid; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico-sun { display: none; }
  :root:not([data-theme="light"]) .theme-ico-moon { display: grid; }
}
.nav-toggle { display: none; }
.nav-ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-ico-close { display: grid; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: .75rem var(--gutter) 1rem; display: none; max-height: calc(100vh - 68px); overflow: auto;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a { padding: .8rem .8rem; font-size: 1.05rem; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .site-nav .sub { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem .9rem; grid-column: 1 / -1; }
  .site-nav .has-sub[data-open="true"] .sub { display: flex; }
  .site-nav .has-sub:hover .sub { display: none; }
  .site-nav .has-sub[data-open="true"]:hover .sub { display: flex; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; max-width: 760px; }
.section-head.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }
.section-head.row h2 { display: flex; align-items: center; gap: .6rem; margin: 0; }
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); background: var(--hero-grad); }
.page-hero-row { display: flex; gap: 1.25rem; align-items: flex-start; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-current] { color: var(--ink-2); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 6vw, 4rem); background: var(--hero-grad); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; color: var(--ink-2); font-size: .98rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points .ico { color: var(--ok); }

.hero-visual { position: relative; min-height: 420px; }
.device { position: absolute; background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); overflow: hidden; }
.device-screen { background: #0e1117; overflow: hidden; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.device.laptop { top: 6%; left: 0; width: 78%; border-radius: 14px 14px 6px 6px; padding: 10px 10px 0; background: #1b2130; border-color: #2b3448; }
.device.laptop .device-screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.device.laptop .device-base { height: 14px; margin: 0 -10px; background: linear-gradient(#2b3448, #1b2130); border-top: 1px solid #3a4560; }
.device.browser { right: 0; top: 40%; width: 58%; border-radius: 12px; }
.device-bar { display: flex; gap: 6px; padding: 8px 10px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.device.browser .device-screen { aspect-ratio: 4 / 3; background: #fff; }
.device.phone { left: 4%; bottom: -2%; width: 22%; border-radius: 26px; padding: 8px; background: #1b2130; border-color: #2b3448; }
.device.phone .device-screen { aspect-ratio: 9 / 19; border-radius: 20px; position: relative; background: #0E1B2A; }
.map-screen img { width: 260%; max-width: none; height: auto; position: absolute; left: -95%; top: 30%; }
.map-pin { position: absolute; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: #FF6B4A; transform: rotate(-45deg); box-shadow: 0 0 0 4px rgba(255, 107, 74, .25); }
.map-pin.p1 { left: 46%; top: 39%; }
.map-pin.p2 { left: 58%; top: 33%; }
.map-cluster { position: absolute; left: 30%; top: 47%; width: 26px; height: 26px; border-radius: 50%; background: #FFC244; color: #0B1622; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 194, 68, .25); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 3; max-width: 640px; }
  .hero h1 { max-width: none; }
}
@media (max-width: 480px) {
  .hero-visual { aspect-ratio: 1 / 1; }
  .device.phone { display: none; }
  .device.laptop { width: 88%; }
  .device.browser { width: 62%; top: 46%; }
}

/* ---------- Platform cards ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.platform-grid.compact { grid-template-columns: repeat(3, 1fr); }
.platform-card {
  display: grid; gap: .5rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.platform-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.platform-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.platform-icon.big { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.platform-icon.big .ico { width: 30px; height: 30px; }
.platform-name { font-weight: 700; font-size: 1.15rem; font-family: var(--font-display); }
.platform-text { color: var(--muted); font-size: .95rem; }
.platform-count { color: var(--accent-text); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; }
@media (max-width: 900px) { .platform-grid, .platform-grid.compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .platform-grid, .platform-grid.compact { grid-template-columns: 1fr; } }

/* ---------- App cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.app-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.app-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1117; border-bottom: 1px solid var(--line); }
.app-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.app-card:hover .app-card-media img { transform: scale(1.03); }
.app-card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.app-card-head { display: flex; align-items: center; gap: .8rem; }
.app-card-head > div { flex: 1; min-width: 0; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.app-icon.big { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.app-card-title { margin: 0; font-size: 1.2rem; }
.app-card-title a { color: var(--ink); }
.app-card-meta { margin: 0; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .3rem; }
.app-card-text { margin: 0; color: var(--ink-2); }
.app-card-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; color: var(--ink-2); font-size: .93rem; }
.app-card-features li { display: flex; align-items: center; gap: .45rem; }
.app-card-features .ico { color: var(--ok); }
.app-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Status / chips ---------- */
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-dev { background: var(--warn-soft); color: var(--warn); }
.status-beta { background: var(--info-soft); color: var(--info); }
.status-internal { background: var(--info-soft); color: var(--info); }
.status-planned { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.status-neutral { background: var(--bg-alt); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 600; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.values-grid.two { grid-template-columns: repeat(2, 1fr); }
.value { padding: 1.4rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.value-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .9rem; }
.value h3 { font-size: 1.05rem; }
.value p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid, .values-grid.two { grid-template-columns: 1fr; } }

/* ---------- App page ---------- */
.app-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem); background: var(--hero-grad); }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.app-hero-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-hero-head h1 { margin: 0 0 .35rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.app-hero-meta { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.app-tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); letter-spacing: -.01em; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); background: #0e1117; }
.shot img { width: 100%; }
.shot-illustration figcaption { padding: .5rem .8rem; font-size: .8rem; color: var(--muted); background: var(--bg-elev); border-top: 1px solid var(--line); }
.app-hero-aviaedit .shot { border-color: #2b3448; }
@media (max-width: 900px) { .app-hero-grid { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.feature { padding: 1.4rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .9rem; }
.feature h3 { font-size: 1.08rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .96rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0e1117; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-item a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; }
.gallery-item figcaption { padding: .6rem .2rem 0; color: var(--muted); font-size: .9rem; }
.gallery-item:first-child:nth-last-child(1) { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

.details-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
.detail-card { padding: 1.4rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.detail-card h2 { margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--ink-2); font-size: .96rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; }
.check-list .ico { color: var(--ok); margin-top: .25rem; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-list li { padding: .3rem .7rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-family: var(--mono); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; font-size: .96rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .details-grid { grid-template-columns: 1fr; } }

.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.roadmap-col { padding: 1.4rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px dashed var(--line-strong); }
.roadmap-col h3 { margin-bottom: .9rem; }
.roadmap-col ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: .5rem; font-size: .96rem; }
@media (max-width: 700px) { .roadmap-grid { grid-template-columns: 1fr; } }

.cta .cta-box { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 22px; background: linear-gradient(135deg, var(--accent-soft), var(--bg-elev)); border: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .3rem; }
.cta p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .cta .cta-box { flex-direction: column; align-items: flex-start; } }

/* ---------- Empty state / 404 ---------- */
.empty-state { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; border-radius: 22px; background: var(--bg-elev); border: 1px dashed var(--line-strong); }
.empty-state .hero-actions { justify-content: center; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1rem; }
.empty-icon .ico { width: 30px; height: 30px; }
.empty-state p { max-width: 52ch; margin-inline: auto; color: var(--ink-2); }
.notfound { padding-block: clamp(4rem, 12vw, 8rem); }
.notfound-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; margin: 0 0 .5rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .lead { margin-inline: auto; }

/* ---------- Forms ---------- */
.notice { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 1.5rem; font-size: .96rem; }
.notice-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.notice-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.notice-err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 45%, transparent); }
.form { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
.field { display: grid; gap: .35rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .94rem; }
.req { color: var(--err); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field textarea { resize: vertical; min-height: 150px; }
.has-error input, .has-error textarea { border-color: var(--err); }
.error { color: var(--err); font-size: .88rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Accounts ---------- */
.account-link { display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 .75rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .94rem; border: 1px solid var(--line-strong); }
.account-link:hover, .account-link[aria-current="page"] { text-decoration: none; color: var(--accent-text); border-color: var(--accent); }
.account-link.is-in { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
@media (max-width: 520px) { .account-link { padding: 0; width: 42px; justify-content: center; } .account-label { display: none; } }
.auth-section { background: var(--hero-grad); min-height: 60vh; }
.auth-wrap { max-width: 460px; }
.auth-card { padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: .4rem; }
.auth-card > .muted { margin-bottom: 1.5rem; }
.auth-form { display: grid; gap: 1rem; margin-bottom: 1rem; }
.auth-links { text-align: center; margin: .5rem 0 0; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; border-radius: 9px; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; box-shadow: var(--shadow-sm); }
.btn-google:hover { border-color: #b9bdc4; color: #1f1f1f; }
.btn-danger { background: var(--err); color: #fff; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .88rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.download-gate { display: flex; gap: .4rem; align-items: flex-start; margin-top: .75rem; }
.download-gate .ico { margin-top: .2rem; }
.account-wrap { max-width: 900px; display: grid; gap: 1.25rem; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.account-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .account-grid { grid-template-columns: 1fr; } }
.account-verify p { margin: 0 0 .75rem; }
.account-wrap .notice { margin-bottom: 0; }
.download-list, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.download-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .75rem; }
.download-list img { border-radius: 8px; }
.danger-zone { padding: 1rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--err); }
.danger-zone .auth-form { max-width: 360px; margin-top: 1rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 2rem; }
.stat { display: grid; padding: .8rem 1.1rem; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line); min-width: 120px; }
.stat-n { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.table-scroll { overflow-x: auto; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-tagline { color: var(--muted); margin: 1rem 0 0; max-width: 34ch; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 11, 20, .92); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; place-items: center; gap: .75rem; max-height: 100%; min-width: 0; }
.lightbox-figure img { max-width: min(96vw, 1600px); max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow-lg); background: #0e1117; }
.lightbox-figure figcaption { color: #cfd6e6; font-size: .95rem; text-align: center; max-width: 80ch; }
.lightbox button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lightbox-prev, .lightbox-next { display: none !important; } }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal animation ---------- */
.reveal { transform: translateY(14px); transition: transform .45s ease; }
.reveal.in { transform: none; }
.no-js .reveal { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .btn, .platform-card, .app-card, .feature, .gallery-item a, .app-card-media img { transition: none; }
}

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .lightbox, .cta { display: none !important; } }
