/* ============================================================
   DeadBird storefront — self-hosted stylesheet.
   No external fonts, CDNs or third-party assets on purpose.
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: #0e1626;
  --surface-2: #121d31;
  --surface-3: #17243b;
  --border: rgba(148, 176, 214, 0.16);
  --border-strong: rgba(148, 176, 214, 0.32);
  --text: #eaf1fb;
  --muted: #9aaac2;
  --muted-2: #718199;
  --accent: #4da3ff;
  --accent-2: #45e0c4;
  --accent-soft: rgba(77, 163, 255, 0.12);
  --warn: #ffc46b;
  --danger: #ff7a7a;
  --ok: #5ce0a0;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(77, 163, 255, 0.16), transparent 70%),
    radial-gradient(760px 480px at 92% 4%, rgba(69, 224, 196, 0.09), transparent 72%),
    linear-gradient(180deg, #080d18 0%, #070b14 55%, #080d18 100%);
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #9ccbff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 780; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); font-weight: 740; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { color: #fff; }

::selection { background: rgba(77, 163, 255, 0.35); color: #fff; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 999;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #04101f;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #04101f; }

.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #203a5f, #0c1729);
  border: 1px solid rgba(77, 163, 255, 0.45);
  box-shadow: inset 0 0 18px rgba(77, 163, 255, 0.16);
  font-weight: 800; font-size: 0.95rem; letter-spacing: -0.06em;
  color: #d9ecff;
}
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.04em; }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.nav-cta { color: #04101f; background: var(--accent); margin-left: 0.4rem; }
.nav a.nav-cta:hover { color: #04101f; background: #7bbcff; }
.nav-toggle {
  display: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #04101f; }
.btn-primary:hover { background: #7bbcff; color: #04101f; }
.btn-secondary { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: #1d2d49; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.btn-accent { background: var(--accent-2); color: #03221d; }
.btn-accent:hover { background: #7df0dc; color: #03221d; }
.btn-sm { min-height: 38px; padding: 0.5rem 0.9rem; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Shared sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.lead { color: var(--muted); font-size: 1.12rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.tiny { font-size: 0.78rem; }
.divider { height: 1px; background: var(--border); border: 0; margin: 2rem 0; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card-hover { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 163, 255, 0.28);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
}
.card-num { font-family: var(--mono); color: var(--accent-2); font-size: 0.8rem; font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: #9ccbff;
  border: 1px solid rgba(77, 163, 255, 0.3);
}
.badge.ok { background: rgba(92, 224, 160, 0.12); color: var(--ok); border-color: rgba(92, 224, 160, 0.3); }
.badge.warn { background: rgba(255, 196, 107, 0.12); color: var(--warn); border-color: rgba(255, 196, 107, 0.3); }
.badge.neutral { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--border); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.notice {
  border-left: 3px solid var(--accent);
  background: rgba(77, 163, 255, 0.07);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #cfe0f5;
  font-size: 0.94rem;
}
.notice.warn { border-color: var(--warn); background: rgba(255, 196, 107, 0.07); color: #f7dfb5; }
.notice.ok { border-color: var(--ok); background: rgba(92, 224, 160, 0.07); color: #c7f2dc; }
.notice.danger { border-color: var(--danger); background: rgba(255, 122, 122, 0.07); color: #ffd2d2; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { max-width: 620px; }
.hero-copy { max-width: 680px; }
.hero-logo-frame {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(77, 163, 255, 0.12), rgba(10, 16, 28, 0.9));
  padding: 1.1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
}
.hero-logo-frame img { width: 100%; height: auto; border-radius: 14px; }
.hero-logo-caption {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 0.9rem;
  color: var(--muted); font-size: 0.8rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3.5rem;
}
.trust-item { background: #0b1220; padding: 1.15rem 1.25rem; }
.trust-item strong { display: block; font-size: 0.92rem; }
.trust-item span { display: block; color: var(--muted); font-size: 0.79rem; margin-top: 0.2rem; }

/* ---------- Listing cards ---------- */

.listing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  height: 100%;
}
.listing-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.listing-media.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 163, 255, 0.16), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px);
}
.listing-media.placeholder span {
  font-family: var(--mono); font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, 0.12);
}
.listing-media .badge { position: absolute; top: 0.9rem; left: 0.9rem; }
.listing-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.listing-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.listing-body h3 { font-size: 1.28rem; }
.listing-body p { color: var(--muted); font-size: 0.94rem; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1rem; }
.listing-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.listing-foot .price { font-weight: 700; font-size: 0.9rem; }

.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
  border-color: rgba(77, 163, 255, 0.3);
  background: linear-gradient(120deg, rgba(77, 163, 255, 0.09), rgba(14, 22, 38, 0.9) 55%);
}
.featured-visual {
  position: relative;
  min-height: 380px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  overflow: hidden;
}
.featured-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.featured-body { padding: clamp(1.6rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.featured-body p { color: var(--muted); }
.featured-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.4rem 0; }
.featured-stats div strong { display: block; font-size: 1.35rem; }
.featured-stats div span { display: block; color: var(--muted); font-size: 0.78rem; }

/* ---------- App detail ---------- */

.breadcrumb { display: flex; gap: 0.5rem; align-items: center; color: var(--muted); font-size: 0.85rem; margin: 2rem 0 1.2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text); }

.app-hero { padding-bottom: 1rem; }
.app-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.app-hero h1 { margin: 0.8rem 0 0.6rem; }
.app-hero .lead { max-width: 700px; }

/* ---------- Store-style app header (install card first) ---------- */

.store-hero {
  padding: 2.4rem 0 1.6rem;
  background: radial-gradient(900px 320px at 12% -40%, rgba(77, 163, 255, .14), transparent 70%), #080d18;
  border-bottom: 1px solid var(--border);
}
.store-hero-grid {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}
.store-icon {
  width: 108px; height: 108px; border-radius: 24px; overflow: hidden;
  background: #0b1120; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.store-icon img { width: 100%; height: 100%; object-fit: cover; }
.store-info h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: .45rem 0 .5rem; line-height: 1.12; }
.store-info .lead { max-width: 640px; }
.store-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 .2rem; }
.store-stats { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); margin: 1.3rem 0 .4rem; }
.store-stat strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.store-stat span { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.store-install .download-panel { padding: 1.15rem; }
.store-install .download-panel h3 { font-size: 1.15rem; margin: .3rem 0; }
.store-install .btn-block { width: 100%; text-align: center; }
.store-install .sha-box { flex-wrap: wrap; }
.store-install .sha-box code { font-size: .7rem; word-break: break-all; }

/* ---------- Paid / licensed edition panel ---------- */

.purchase-section {
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.offer-card { border-color: rgba(77, 163, 255, .32); }
.offer-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.offer-price { text-align: right; flex-shrink: 0; }
.offer-price strong { display: block; font-size: 2rem; letter-spacing: -.04em; color: var(--accent-2); }
.offer-price span { display: block; font-size: .74rem; color: var(--muted); max-width: 170px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: 1.4rem; }
.offer-grid h4 { margin: 0 0 .3rem; font-size: 1rem; }
.check-list, .step-list { list-style: none; padding: 0; margin: .7rem 0 0; }
.check-list li, .step-list li {
  position: relative; padding-left: 1.6rem; margin: .55rem 0;
  font-size: .9rem; line-height: 1.55; color: var(--muted);
}
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.step-list { counter-reset: none; }
.step-list li { padding-left: 2rem; }
.step-num {
  position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 700;
}
.pay-rows { margin-top: 1rem; }
.pay-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .6rem 0; border-top: 1px solid var(--border);
}
.pay-row code { font-size: .78rem; color: var(--text); word-break: break-all; }
.offer-details { border-top: 1px solid var(--border); margin-top: .9rem; padding-top: .75rem; }
.offer-details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.offer-details[open] summary { margin-bottom: .4rem; }
.offer-details .check-list li::before { content: '•'; color: var(--accent); }
.app-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-facts { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.app-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.app-facts div:last-child { border-bottom: 0; }
.app-facts dt { color: var(--muted); font-size: 0.85rem; margin: 0; }
.app-facts dd { margin: 0; font-size: 0.85rem; font-weight: 700; text-align: right; }

.download-panel { margin-top: 1.5rem; border-color: rgba(69, 224, 196, 0.25); }
.download-panel h3 { display: flex; align-items: center; gap: 0.5rem; }
.sha-box {
  display: flex; align-items: center; gap: 0.6rem;
  background: #070d18; border: 1px solid var(--border);
  border-radius: 10px; padding: 0.65rem 0.8rem;
  margin: 0.8rem 0 1rem;
}
.sha-box code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #bcd8f7;
  overflow-wrap: anywhere;
  flex: 1;
}
.gate {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.86rem; color: var(--muted);
  margin-bottom: 0.9rem; cursor: pointer;
}
.gate input { margin-top: 0.3rem; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }

.code-block {
  background: #060c16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  color: #bcd8f7;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Video + gallery ---------- */

.video-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050912;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
}
/* Screen recordings are portrait (628x1080). Let the browser keep that ratio
   instead of forcing a 16:9 box, which made the picture tiny and hard to use. */
.video-shell video { width: auto; max-width: 100%; max-height: 74vh; background: #000; object-fit: contain; }
.video-caption { padding: 0.9rem 1.15rem; color: var(--muted); font-size: 0.86rem; border-top: 1px solid var(--border); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--accent); color: #04101f; border-color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.gallery-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  width: 100%;
}
.gallery-item:hover { border-color: var(--accent); }
.gallery-item img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center; background: #050912; }
.gallery-item .gallery-meta { display: block; padding: 0.7rem 0.85rem; }
.gallery-item strong { display: block; font-size: 0.85rem; }
.gallery-item small { display: block; color: var(--muted); font-size: 0.74rem; line-height: 1.4; margin-top: 0.15rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 5, 10, 0.9);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 520px; width: 100%; text-align: center; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); }
.lightbox p { color: var(--muted); font-size: 0.88rem; margin: 0.9rem 0; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0.5rem 0.85rem; cursor: pointer;
}

/* ---------- Features ---------- */

.feature-group { margin-bottom: 2.4rem; }
.feature-group h3 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-2); margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.feature-item {
  display: flex; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 1rem;
}
.feature-num {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(77, 163, 255, 0.25);
  border-radius: 8px; min-width: 32px; height: 26px;
  display: grid; place-items: center; flex: none;
}
.feature-item strong { display: block; font-size: 0.92rem; }
.feature-item p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ---------- Architecture ---------- */

.arch-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.arch-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.06), transparent);
}
.arch-step:not(:last-child)::after {
  content: "→";
  position: absolute; right: -0.95rem; top: 45%;
  color: var(--accent); font-weight: 800; z-index: 2;
}
.arch-step .step-no { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-2); }
.arch-step strong { display: block; margin: 0.35rem 0; font-size: 0.94rem; }
.arch-step p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

.stack-list { display: grid; gap: 0.7rem; }
.stack-row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.stack-row strong { font-size: 0.88rem; }
.stack-row span { color: var(--muted); font-size: 0.87rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.75rem; color: var(--muted); font-size: 0.92rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.cross-list { list-style: none; padding: 0; margin: 0; }
.cross-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.65rem; color: var(--muted); font-size: 0.9rem; }
.cross-list li::before { content: "×"; position: absolute; left: 0; top: -2px; color: var(--danger); font-size: 1.1rem; font-weight: 800; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: rgba(255, 255, 255, 0.04); color: #cfe0f5; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td strong { color: var(--text); }

/* ---------- Accordion ---------- */

.accordion { display: grid; gap: 0.6rem; }
.acc-item { border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; background: transparent; color: var(--text);
  border: 0; text-align: left; font: inherit; font-weight: 700; cursor: pointer;
}
.acc-trigger span:last-child { color: var(--accent); font-size: 1.2rem; flex: none; }
.acc-panel { display: none; padding: 0 1.15rem 1.1rem; color: var(--muted); font-size: 0.92rem; }
.acc-item.open .acc-panel { display: block; }
.acc-item.open .acc-trigger span:last-child { transform: rotate(45deg); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: #cfe0f5; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #080f1c;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { color: var(--muted-2); font-size: 0.76rem; }
.form-status { margin-top: 1rem; min-height: 1.5rem; font-size: 0.9rem; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Verifier ---------- */

.verify-result {
  margin-top: 0.9rem; padding: 0.9rem 1rem;
  border-radius: 10px; border: 1px solid var(--border);
  font-size: 0.88rem; background: #080f1c;
  overflow-wrap: anywhere;
}
.verify-result.match { border-color: rgba(92, 224, 160, 0.5); color: var(--ok); }
.verify-result.mismatch { border-color: rgba(255, 122, 122, 0.5); color: var(--danger); }
.verify-result code { font-family: var(--mono); font-size: 0.78rem; }

/* ---------- CTA + footer ---------- */

.cta-band {
  border: 1px solid rgba(77, 163, 255, 0.32);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(700px 260px at 85% 10%, rgba(69, 224, 196, 0.12), transparent 70%),
    linear-gradient(120deg, rgba(77, 163, 255, 0.12), rgba(12, 19, 33, 0.95));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.4rem; }
.cta-band p { color: var(--muted); margin: 0; max-width: 560px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 3rem 0 2rem; background: rgba(4, 8, 15, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem;
  color: var(--muted-2); font-size: 0.8rem;
}

/* ---------- Spacing utilities (CSP-safe alternative to inline styles) ---------- */

.mt-07 { margin-top: .7rem; }
.mt-08 { margin-top: .8rem; }
.mt-09 { margin-top: .9rem; }
.mt-10 { margin-top: 1rem; }
.mt-12 { margin-top: 1.2rem; }
.mt-13 { margin-top: 1.3rem; }
.mt-14 { margin-top: 1.4rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-17 { margin-top: 1.7rem; }
.mt-20 { margin-top: 2rem; }
.mt-35 { margin-top: 3.5rem; }
.mb-0 { margin-bottom: 0; }
.h-07 { height: .7rem; }
.h-35 { height: 3.5rem; }
.h-10 { height: 1rem; }
.h-14 { height: 1.4rem; }
.maxw-920 { max-width: 920px; }
.align-start { align-items: start; }
.justify-center { justify-content: center; }
.fs-16 { font-size: 1.6rem; }
.dl-status { min-height: 1.3rem; margin: .6rem 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .app-hero-grid, .featured-card { grid-template-columns: 1fr; }
  .store-hero-grid { grid-template-columns: 88px minmax(0, 1fr); }
  .store-icon { width: 88px; height: 88px; border-radius: 20px; }
  .store-install { grid-column: 1 / -1; }
  .offer-head, .offer-grid { grid-template-columns: 1fr; flex-direction: column; }
  .offer-price { text-align: left; }
  .offer-price span { max-width: none; }
  .featured-visual { min-height: 260px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch;
    padding: 0.6rem 0 1rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav a { padding: 0.65rem 0.8rem; }
  .nav a.nav-cta { margin-left: 0; text-align: center; }
  .grid-2, .grid-3, .grid-4, .feature-list, .form-grid, .gallery { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .stack-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .arch-flow { grid-template-columns: 1fr; }
  .gallery-item img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
