/*
 * StarInitio Support Center - public site styles.
 * Same design language as the starinitio.com portal: Tajawal, sand / palm-green / desert-gold palette,
 * Sadu weaving bands, Najdi crenellations and eight-point-star geometry. Light + dark themes.
 * Layout and navigation follow a product-company pattern: a sticky top bar with mega menus, a wide hero,
 * card grids, alternating full-width bands and a multi-column footer.
 */
:root {
  --bg: #f5eee2; --bg-2: #efe4d2; --surface: #fffaf2; --surface-2: #fbf4e8; --surface-3: #f3e9d8;
  --ink: #1c1712; --ink-2: #4b4136; --ink-3: #7a6c5c;
  --line: rgba(60, 42, 20, .14); --line-2: rgba(60, 42, 20, .24);
  --palm: #1f7a5c; --gold: #b8912f; --clay: #b5733f; --sadu: #a23b36; --sea: #1e6f93;
  --palm-rgb: 31, 122, 92; --gold-rgb: 184, 145, 47; --sadu-rgb: 162, 59, 54; --surface-rgb: 255, 250, 242; --ink-rgb: 28, 23, 18;
  --brand: var(--palm); --brand-rgb: var(--palm-rgb);
  --on-brand: #ffffff;
  --band: #0d1a16; --band-ink: #f3ece0; --band-ink-2: #cfc4b3; --band-line: rgba(243, 236, 224, .14);
  --sky-a: #e4d3b6; --sky-v: #cdb48d;
  --s-bg: #efe2cb; --s-a: #a23b36; --s-b: #2b211a; --s-c: #efe2cb; --s-d: #b8912f;
  --shadow: 0 1px 2px rgba(60,40,15,.06), 0 12px 32px -12px rgba(60,40,15,.22);
  --shadow-lg: 0 2px 4px rgba(60,40,15,.06), 0 24px 60px -20px rgba(60,40,15,.35);
  --radius: 20px; --radius-sm: 12px;
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root { --geo: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2296%22%20height%3D%2296%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23b8912f%22%20stroke-opacity%3D%22.16%22%20stroke-width%3D%221%22%3E%3Crect%20x%3D%2228%22%20y%3D%2228%22%20width%3D%2240%22%20height%3D%2240%22%2F%3E%3Crect%20x%3D%2228%22%20y%3D%2228%22%20width%3D%2240%22%20height%3D%2240%22%20transform%3D%22rotate%2845%2048%2048%29%22%2F%3E%3Cpath%20d%3D%22M0%2048h20M76%2048h20M48%200v20M48%2076v20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); --geo-light: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2296%22%20height%3D%2296%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d6b25e%22%20stroke-opacity%3D%22.22%22%20stroke-width%3D%221%22%3E%3Crect%20x%3D%2228%22%20y%3D%2228%22%20width%3D%2240%22%20height%3D%2240%22%2F%3E%3Crect%20x%3D%2228%22%20y%3D%2228%22%20width%3D%2240%22%20height%3D%2240%22%20transform%3D%22rotate%2845%2048%2048%29%22%2F%3E%3Cpath%20d%3D%22M0%2048h20M76%2048h20M48%200v20M48%2076v20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1a16; --bg-2: #10231d; --surface: #13241f; --surface-2: #172b25; --surface-3: #1b322b;
    --ink: #f3ece0; --ink-2: #cfc4b3; --ink-3: #9d9181;
    --line: rgba(243, 236, 224, .12); --line-2: rgba(243, 236, 224, .22);
    --palm: #3fb08a; --gold: #d6b25e; --clay: #d49563; --sadu: #cf5d56; --sea: #4aa3c9;
    --palm-rgb: 63, 176, 138; --gold-rgb: 214, 178, 94; --sadu-rgb: 207, 93, 86; --surface-rgb: 19, 36, 31; --ink-rgb: 243, 236, 224;
    --on-brand: #06120e;
    --band: #0a1512; --band-line: rgba(243, 236, 224, .1);
    --sky-a: #0a1512; --sky-v: #1b2f28;
    --s-bg: #1a2c26; --s-a: #b8483f; --s-b: #d6b25e; --s-c: #1a2c26; --s-d: #6b5a3a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 70px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1a16; --bg-2: #10231d; --surface: #13241f; --surface-2: #172b25; --surface-3: #1b322b;
  --ink: #f3ece0; --ink-2: #cfc4b3; --ink-3: #9d9181;
  --line: rgba(243, 236, 224, .12); --line-2: rgba(243, 236, 224, .22);
  --palm: #3fb08a; --gold: #d6b25e; --clay: #d49563; --sadu: #cf5d56; --sea: #4aa3c9;
  --palm-rgb: 63, 176, 138; --gold-rgb: 214, 178, 94; --sadu-rgb: 207, 93, 86; --surface-rgb: 19, 36, 31; --ink-rgb: 243, 236, 224;
  --on-brand: #06120e;
  --band: #0a1512; --band-line: rgba(243, 236, 224, .1);
  --sky-a: #0a1512; --sky-v: #1b2f28;
  --s-bg: #1a2c26; --s-a: #b8483f; --s-b: #d6b25e; --s-c: #1a2c26; --s-d: #6b5a3a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 70px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; direction: ltr; unicode-bidi: isolate; }
pre { background: #0a1512; color: #e6efe9; border-radius: var(--radius-sm); padding: 1rem 1.2rem; overflow-x: auto; direction: ltr; text-align: left; font-size: .86rem; line-height: 1.6; border: 1px solid rgba(255,255,255,.06); }
pre code { background: none; border: 0; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.muted { color: var(--ink-3); }
.hint { color: var(--ink-3); font-size: .82rem; display: block; margin-top: .3rem; }
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: .5rem .9rem; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Sadu band ---------- */
.sadu { display: block; width: 100%; height: 12px; }
.sadu .s-bg { fill: var(--s-bg); } .sadu .s-a { fill: var(--s-a); } .sadu .s-b { fill: var(--s-b); } .sadu .s-c { fill: var(--s-c); } .sadu .s-d { fill: var(--s-d); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(var(--surface-rgb), .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.mark-badge { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #0d1a16; box-shadow: 0 0 0 2px var(--gold); overflow: hidden; }
.mark-badge img { width: 86%; height: 86%; object-fit: contain; }
.brand-logo { height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.12rem; direction: ltr; unicode-bidi: isolate; }
.brand-sub { font-size: .74rem; color: var(--ink-3); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: .15rem; margin-inline-start: 1rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; height: 40px; padding: 0 .8rem; border-radius: 10px;
  background: none; border: 0; color: var(--ink-2); font: 500 .95rem var(--font); cursor: pointer; text-decoration: none;
}
.nav-link:hover, .nav-item.open > .nav-link, .nav-link.active { color: var(--ink); background: rgba(var(--ink-rgb), .06); text-decoration: none; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -12px; min-width: 520px; padding: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.mega.one-col { grid-template-columns: 1fr; min-width: 320px; }
.nav-item.open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-item { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .75rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mega-item:hover { background: var(--surface-3); text-decoration: none; }
.mega-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .2); overflow: hidden; }
.mega-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega-ic img { width: 100%; height: 100%; object-fit: cover; }
.mega-item b { display: block; font-size: .95rem; font-weight: 700; color: var(--ink); }
.mega-item > span:last-child > span { display: block; font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .25rem; padding: .7rem .75rem .35rem; border-top: 1px solid var(--line); font-size: .86rem; }

.header-actions { display: flex; align-items: center; gap: .45rem; margin-inline-start: auto; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; font: 600 .8rem var(--font); padding: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-form { margin: 0; }
.i-sun { display: none; } :root[data-theme="dark"] .i-sun { display: inline; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: inline; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.nav-toggle { display: none; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav .container { padding-top: .5rem; padding-bottom: 1.2rem; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; font-weight: 700; cursor: pointer; }
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.m-group[open] > summary svg { transform: rotate(180deg); }
.m-group .mega-item { padding: .55rem .25rem; }
.m-link { display: block; padding: .9rem 0; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }

@media (max-width: 1020px) {
  .main-nav, .header-actions .hide-sm { display: none; }
  .nav-toggle { display: inline-grid; }
}

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem 1.25rem; border-radius: 999px; font: 700 .95rem var(--font); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .btn .flip { transform: scaleX(-1); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-ghost, .btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--gold); }
.btn-outline-light { background: transparent; color: var(--band-ink); border-color: rgba(243,236,224,.35); }
.btn-outline-light:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: #1c1712; }
.btn-sm { min-height: 36px; padding: .35rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger-outline { background: transparent; color: var(--sadu); border-color: rgba(var(--sadu-rgb), .4); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; color: var(--ink-2); }
.input { width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 1rem var(--font); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); }
textarea.input { min-height: 110px; resize: vertical; }
.field-check { display: flex; gap: .5rem; align-items: center; }

/* ---------- Generic blocks ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--ink-3); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 700; color: var(--gold); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .3s; }
.card-link:hover { text-decoration: none; }
@media (hover: hover) { .card-link:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), .5); box-shadow: var(--shadow-lg); } }
.card-link:active { transform: scale(.985); }
.card h3 { margin: .9rem 0 .35rem; }
.card p { color: var(--ink-2); font-size: .95rem; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; flex: none; color: var(--brand); background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .22); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.plugin-card__top h3 { margin: 0; }
.plugin-card__meta { margin-top: auto; padding-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-3); font-size: .84rem; }
.plugin-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.plugin-card .belongs { font-size: .8rem; color: var(--ink-3); }

.badge { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; white-space: nowrap; }
.badge-free, .badge-on { color: var(--palm); background: rgba(var(--palm-rgb), .12); }
.badge-paid { color: var(--gold); background: rgba(var(--gold-rgb), .16); }
.badge-off { color: var(--ink-3); background: rgba(var(--ink-rgb), .07); }

.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: rgba(var(--palm-rgb), .12); color: var(--palm); }
.alert-error { background: rgba(var(--sadu-rgb), .12); color: var(--sadu); }
.empty-state { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-3); background: var(--surface-2); }
.empty-state h1 { font-size: 1.6rem; }
table.plain { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.plain th, table.plain td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
table.plain th { color: var(--ink-3); font-weight: 600; }
.key-box { display: block; margin: .5rem 0 1rem; padding: .8rem; word-break: break-all; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: var(--geo); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
[dir="rtl"] .page-hero::before { -webkit-mask-image: linear-gradient(270deg, transparent, #000 60%); mask-image: linear-gradient(270deg, transparent, #000 60%); }
.page-hero .container { padding-top: clamp(2.2rem, 5vw, 3.6rem); padding-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--ink-2); max-width: 62ch; font-size: 1.05rem; margin: 0; }
.page-header { padding-top: clamp(2rem, 5vw, 3.2rem); padding-bottom: 1rem; }
.page-header p { max-width: 62ch; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 8vw, 6rem) 0 clamp(6.5rem, 12vw, 9rem); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(45% 55% at 80% 10%, rgba(var(--gold-rgb), .28), transparent 70%), radial-gradient(50% 60% at 15% 0%, rgba(var(--palm-rgb), .16), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: var(--geo); -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 35%, #000 25%, transparent 75%); }
.hero .pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--surface-rgb), .7); font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--palm); box-shadow: 0 0 0 4px rgba(var(--palm-rgb), .22); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.3rem); max-width: 18ch; margin: 1.2rem auto .8rem; letter-spacing: -.01em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--palm), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 60ch; margin: 0 auto; }
.hero-search { display: flex; gap: .5rem; max-width: 560px; margin: 2rem auto 0; padding: .4rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow); }
.hero-search svg { width: 20px; height: 20px; margin-inline-start: .7rem; align-self: center; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1rem var(--font); padding: .5rem .3rem; }
.hero-search input:focus { outline: none; }
.hero-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-stats { display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats span { color: var(--ink-3); font-size: .88rem; }
.skyline { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: clamp(70px, 10vw, 130px); z-index: -1; }
.skyline .sky-a { fill: var(--sky-a); } .skyline .sky-v { fill: var(--sky-v); }

/* ---------- Quick links ---------- */
.quick { margin-top: clamp(-4.5rem, -7vw, -3rem); position: relative; z-index: 2; }
.quick .card-link { flex-direction: row; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.25rem; }
.quick .card-link h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.quick .card-link p { margin: 0; font-size: .88rem; color: var(--ink-3); }

/* ---------- Bands ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: var(--band-ink); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: var(--geo-light); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.band h2, .band h3 { color: var(--band-ink); }
.band p, .band .muted { color: var(--band-ink-2); }
.band .eyebrow { color: #d6b25e; }
.band .card { background: rgba(255,255,255,.04); border-color: var(--band-line); box-shadow: none; color: var(--band-ink); }
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .15rem; border-radius: 50%; background: rgba(214,178,94,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b25e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Terminal mock */
.terminal { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); background: #07100d; }
.terminal-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); direction: ltr; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4a44; }
.terminal-bar i:nth-child(1) { background: #cf5d56; } .terminal-bar i:nth-child(2) { background: #d6b25e; } .terminal-bar i:nth-child(3) { background: #3fb08a; }
.terminal-bar span { margin-inline-start: .5rem; font: 500 .78rem var(--mono); color: #8fa39b; }
.terminal pre { margin: 0; border: 0; border-radius: 0; background: transparent; font-size: .84rem; }
.t-c { color: #7f948c; } .t-k { color: #d6b25e; } .t-s { color: #8fd3b6; } .t-f { color: #e6efe9; }

/* Download card (home + /download) */
.release { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 820px) { .release { grid-template-columns: 1.3fr 1fr; } }
.release-version { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; direction: ltr; unicode-bidi: isolate; }
.release-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--ink-3); font-size: .9rem; margin: .6rem 0 1.2rem; }
.release-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .7rem; }
.platform { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.platform svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform b { font-size: .92rem; } .platform span { font-size: .8rem; color: var(--ink-3); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: step; display: flex; gap: .8rem; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--brand-rgb), .12); color: var(--brand); font-weight: 800; font-size: .9rem; }
.archive-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.archive-row:last-child { border-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); transition: transform .25s, background .25s; }
.faq-item > summary .pm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.faq-item[open] > summary .pm { transform: rotate(45deg); background: rgba(var(--brand-rgb), .14); color: var(--brand); }
.faq-item .faq-a { padding: 0 1.2rem 1.15rem; color: var(--ink-2); }
.faq-search { max-width: 520px; margin-bottom: 1.5rem; }

/* ---------- Filters (marketplace) ---------- */
.filters-bar { display: flex; flex-wrap: wrap; gap: .6rem; padding: .7rem; margin-bottom: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.filters-bar .input { flex: 1 1 200px; width: auto; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .86rem; background: var(--surface); }
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- Docs ---------- */
.docs-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .docs-layout { grid-template-columns: 250px 1fr; } }
.docs-nav { display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 88px; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.docs-nav a { display: block; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.docs-nav a:hover { background: var(--surface-3); text-decoration: none; }
.docs-nav a.active { background: rgba(var(--brand-rgb), .12); color: var(--brand); }
@media (max-width: 899px) { .docs-nav { position: static; flex-direction: row; overflow-x: auto; } .docs-nav a { white-space: nowrap; } }
.prose { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2.2rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.8rem; } .prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.2rem; } .prose li { margin-bottom: .45rem; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.7rem; }
.oauth-row { display: grid; gap: .5rem; margin: 1.2rem 0; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); font-weight: 600; background: var(--surface); }
.oauth-btn:hover { border-color: var(--gold); text-decoration: none; }
.oauth-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.oauth-btn svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--ink-3); font-size: .85rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-switch { text-align: center; margin: 1rem 0 0; color: var(--ink-3); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; border-radius: 28px; background: var(--band); color: var(--band-ink); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: var(--geo-light); }
.cta-band h2 { color: var(--band-ink); }
.cta-band p { color: var(--band-ink-2); max-width: 52ch; margin: 0 auto 1.4rem; }

/* ---------- Logo strips ---------- */
.logo-strip-title { text-align: center; color: var(--ink-3); font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 2.4rem; }
.logo-strip__item img { height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .2s, filter .2s; }
.logo-strip__item:hover img { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--surface-2); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 3fr; } }
.footer-brand p { color: var(--ink-3); max-width: 34ch; margin-top: .9rem; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.6rem; }
.footer-cols h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.footer-cols a { display: block; color: var(--ink-2); font-size: .93rem; padding: .28rem 0; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.2rem 0 max(1.4rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
.footer-bottom .tools { display: flex; gap: .4rem; align-items: center; }

@media (max-width: 560px) {
  .hero-search { border-radius: 18px; flex-wrap: wrap; }
  .hero-search .btn { width: 100%; }
  .section-head { align-items: flex-start; }
}
@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.plugin-card__meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions .btn svg, .release-actions .btn svg { width: 18px; height: 18px; }

/* Demo gallery */
.demo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.demo-shot { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(var(--brand-rgb, 169,113,58), .16), rgba(var(--ink-rgb), .05)); display: grid; place-items: center; }
.demo-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-ph svg { width: 3rem; height: 3rem; stroke: var(--ink-3); fill: none; stroke-width: 1.5; }
.demo-badge { position: absolute; top: .75rem; inset-inline-start: .75rem; }
.badge-demo-live { color: var(--palm); background: rgba(var(--palm-rgb), .16); }
.badge-demo-progress { color: var(--gold); background: rgba(var(--gold-rgb), .18); }
.badge-demo-planned { color: var(--ink-3); background: rgba(var(--ink-rgb), .08); }
.demo-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.demo-body h3 { margin: 0; }
.demo-body p { margin: 0; color: var(--ink-2); flex: 1; }
.demo-planned .demo-shot { filter: saturate(.6); }

/* Community */
.topic-list { display: grid; gap: .75rem; margin-top: 1rem; }
.topic-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.topic-row h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.post-body { margin: .75rem 0; line-height: 1.7; overflow-wrap: anywhere; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); cursor: pointer; font: inherit; text-decoration: underline; }
