/* ==========================================================================
   UnifiedSSH website – main stylesheet
   Colors follow the UnifiedSSH logo: copper #c7764c / #e3945e / #a95030 on a near-black base.
   Layout uses logical properties (margin-inline, padding-block, inset-inline …)
   so right-to-left languages work without extra rules.
   ========================================================================== */

:root {
  --bg: #0d0e10;
  --bg-2: #121316;
  --surface: #15161a;
  --surface-2: #1c1e23;
  --surface-3: #24262c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f0e9;
  --text-2: #c9c3b9;
  --muted: #9a958c;              /* 6.6:1 on --bg */
  --accent: #c7764c;             /* logo copper */
  --accent-light: #e3945e;       /* logo highlight: links and icons (7.9:1 on --bg) */
  --accent-strong: #a95030;      /* button fill: white text reaches 5.4:1 (WCAG AA) */
  --accent-strong-hover: #b35a35;/* white text 4.7:1 */
  --accent-soft: rgba(199, 118, 76, 0.14);
  --accent-2: #f0b48a;           /* light copper: kickers, checks, focus ring */
  --accent-2-soft: rgba(240, 180, 138, 0.12);
  --amber: #f5b942;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 84px;               /* floating bar incl. its top gap */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-shot: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --grid-line: rgba(255, 255, 255, 0.045);
}

/* ---------- base ---------- */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 680; letter-spacing: -0.032em; }
h3 { font-size: 1.14rem; font-weight: 620; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.38em;
  white-space: nowrap;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.08em 0.5em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
}

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

::selection { background: rgba(199, 118, 76, 0.45); color: #fff; }

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

.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent-strong); color: #fff; font-weight: 600; text-decoration: none;
  transition: inset-block-start 0.15s;
}
.skip-link:focus { inset-block-start: 12px; color: #fff; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 840px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Decorative grid with a soft fade – used behind heroes and the CTA */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.72em 1.3em;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: var(--accent-strong);
  border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 30px -10px rgba(199, 118, 76, 0.8);
}
.btn-primary:hover {
  --btn-bg: var(--accent-strong-hover); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 14px 36px -10px rgba(199, 118, 76, 0.95);
}
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 0.5em 0.95em; font-size: 0.92rem; border-radius: 10px; }
.btn-lg { padding: 0.9em 1.6em; font-size: 1.04rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon[data-arrow], .btn:hover use[href="#i-arrow"] { transform: translateX(2px); }

.text-link {
  display: inline;
  font-weight: 600; color: var(--accent-2); text-decoration: none;
}
.text-link .icon { margin-inline-start: 0.35em; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .icon { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .icon use[href="#i-arrow"] { transform: scaleX(-1); transform-origin: center; }

/* ---------- header: floating glass bar ---------- */

.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  padding-block-start: 12px;
  pointer-events: none;            /* only the bar itself is interactive */
}
.header-inner {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  height: 60px;
  padding-inline: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(16, 17, 19, 0.55);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  pointer-events: auto;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled .header-inner {
  background: rgba(16, 17, 19, 0.82);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
}
.site-header > .container { padding-inline: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; flex: none;
}
.brand:hover { color: var(--text); }
.logo-wordmark { display: block; height: 36px; width: auto; }   /* viewBox 380×72 incl. padding */

.site-nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 13px; border-radius: 10px;
  color: var(--text-2); font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- language switcher ---------- */

.lang-switcher { position: relative; }
.lang-switcher summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 10px; border: 1px solid transparent;
  color: var(--text-2); font-size: 0.88rem; font-weight: 600; text-transform: uppercase;
  cursor: pointer; list-style: none; user-select: none;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary:hover, .lang-switcher[open] summary { color: var(--text); border-color: var(--border-strong); }
.lang-menu {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 10px); z-index: 60;
  min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.lang-menu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: 0.95rem;
}
.lang-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--text); }
.lang-menu a[aria-current="true"]::after { content: "✓"; float: inline-end; color: var(--accent-2); }
.site-footer .lang-menu { inset-block-start: auto; inset-block-end: calc(100% + 8px); }

/* ---------- hero ---------- */

.hero { position: relative; margin-block-start: calc(-1 * var(--header-h)); padding-block: calc(var(--header-h) + 84px) 24px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 45% at 50% -5%, rgba(199, 118, 76, 0.30), transparent 70%),
    radial-gradient(30% 30% at 85% 10%, rgba(240, 180, 138, 0.10), transparent 70%),
    radial-gradient(30% 30% at 12% 20%, rgba(169, 80, 48, 0.12), transparent 70%);
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero-inner { text-align: center; max-width: 980px; }
.hero h1 { margin-block-end: 0.35em; }
.hero h1, .page-hero h1 {
  background: linear-gradient(180deg, #ffffff 25%, #f3c9a6 75%, #e3945e 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--text-2); max-width: 720px; line-height: 1.6; }
.hero .lead { margin-inline: auto; }
.lead-sm { font-size: 1.08rem; color: var(--text-2); max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-block-end: 30px; padding: 6px 8px 6px 12px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(21, 22, 26, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-2); font-size: 0.88rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
a.eyebrow:hover { color: var(--text); border-color: rgba(240, 180, 138, 0.45); }
.eyebrow-arrow {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); color: var(--text);
}
.eyebrow-arrow .icon { width: 14px; height: 14px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-2-soft), 0 0 14px rgba(240, 180, 138, 0.8);
}

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block: 38px 24px; }

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.94rem;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { color: var(--accent-2); }

/* Screenshot on a perspective stage: tilted at first, flattens while scrolling */
.hero-stage { margin-block-start: 64px; perspective: 1600px; }
.hero-stage::before {
  content: ""; position: absolute; inset-inline: 10%; inset-block-start: 30%; height: 60%;
  background: radial-gradient(closest-side, rgba(199, 118, 76, 0.45), transparent);
  filter: blur(40px); z-index: -1; pointer-events: none;
}
.hero-stage { position: relative; }

/* ---------- screenshots ---------- */

.shot {
  position: relative;
  margin: 0; border-radius: 14px; overflow: hidden;
  background: #090d12;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-shot);
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 12px 18px; border-block-start: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 0.9rem;
}
.shot-hero {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(240, 180, 138, 0.18), 0 60px 140px -40px rgba(199, 118, 76, 0.55), var(--shadow-shot);
  transform-origin: 50% 0%;
}
.shot-feature { margin-block: 8px 40px; }
.feature-body-split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px; align-items: start;
}
.feature-body-split .shot-feature { margin: 0; position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
.feature-body-split .feature-list { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Lit stage behind showcase screenshots */
.stage {
  position: relative; padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--border); border-radius: 26px;
  background:
    radial-gradient(70% 60% at 70% 20%, rgba(199, 118, 76, 0.20), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden; isolation: isolate;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.stage .shot { box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }

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

.section { position: relative; padding-block: 112px; }
.section-tight { padding-block: 56px; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.section-head-left { margin-inline: 0; text-align: start; }

/* Kicker: mono label with the logo's small square */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-block-end: 16px;
  color: var(--accent-2); font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; background: var(--accent-light);
  box-shadow: 0 0 12px rgba(227, 148, 94, 0.7);
}

.grid { display: grid; gap: 16px; }
.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)); }

/* Cards with a soft spotlight that follows the pointer (set by main.js) */
.card {
  --mx: 50%; --my: 0%;
  position: relative;
  padding: 26px;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(240, 180, 138, 0.07), transparent 45%),
    linear-gradient(180deg, var(--surface), rgba(21, 22, 26, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-block-end: 0.45em; }
.card p { color: var(--text-2); font-size: 0.98rem; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(199, 118, 76, 0.24), rgba(199, 118, 76, 0.08));
  color: var(--accent-2);
  border: 1px solid rgba(240, 180, 138, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.icon-badge .icon { width: 23px; height: 23px; }
.icon-badge-lg { width: 54px; height: 54px; border-radius: 15px; }
.icon-badge-lg .icon { width: 27px; height: 27px; }

/* ---------- bento (home: three pillars) ---------- */

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bento .card { padding: 30px; overflow: hidden; }
.bento .card:hover { transform: translateY(-2px); }
.bento h3 { font-size: 1.4rem; margin-block: 20px 0.4em; }
.bento-lg { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.bento-lg h3 { font-size: 1.75rem; }

/* Decorative terminal preview (aria-hidden) */
.term {
  border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden;
  background: #0a0b0d; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.65;
}
.term-bar { display: flex; align-items: center; gap: 8px; overflow: hidden; padding: 10px 12px; border-block-end: 1px solid var(--border); background: var(--surface); }
.term-tab { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 7px; color: var(--muted); font-size: 0.76rem; }
.term-tab.is-active { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.term-tag { padding: 0 5px; border-radius: 4px; background: rgba(240, 120, 110, 0.18); color: #f2a59d; font-size: 0.68rem; font-weight: 700; }
.term-body { margin: 0; padding: 14px 16px 16px; color: #d6d0c6; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.term-body .u { color: #8fd48a; font-weight: 600; }
.term-body .p { color: #7fb4f0; }
.term-body .h { color: #e8c170; }
.term-body .t { color: #f0b48a; }
.term-cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.2em; background: var(--accent-light); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- showcase rows ---------- */

.showcase { padding-block: 88px; counter-increment: showcase; }
main { counter-reset: showcase; }
.showcase-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: 72px;
}
.showcase-reverse .showcase-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase-reverse .showcase-text { order: 2; }
.showcase-tall .showcase-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase-tall .stage { max-width: 440px; justify-self: center; width: 100%; }
.showcase-tall .shot { max-width: 360px; margin-inline: auto; }
.showcase-text p { color: var(--text-2); font-size: 1.08rem; }
.showcase .kicker::after { content: counter(showcase, decimal-leading-zero); order: -1; color: var(--muted); }
.showcase .kicker::before { order: 0; }

.checklist { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist .icon {
  width: 20px; height: 20px; padding: 3px; margin-block-start: 0.15em;
  border-radius: 6px; background: var(--accent-soft); color: var(--accent-2);
}

/* ---------- feature matrix (home: "and much more") ---------- */

.matrix {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--border); gap: 1px;
}
.mini-feature { padding: 28px 26px; background: var(--bg-2); transition: background-color 0.25s; }
.mini-feature:hover { background: var(--surface); }
.mini-feature > .icon { width: 24px; height: 24px; color: var(--accent-light); margin-block-end: 16px; }
.mini-feature h3 { font-size: 1.04rem; margin-block-end: 0.35em; }
.mini-feature p { color: var(--muted); font-size: 0.94rem; }
.matrix + .center { margin-block-start: 44px; }

/* ---------- native facts ---------- */

.native { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.native .section-head { margin-block-end: 0; position: sticky; inset-block-start: calc(var(--header-h) + 32px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.fact { padding: 26px; }
.fact dt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-weight: 620; font-size: 1.08rem; margin-block-end: 8px; }
.fact dd { margin: 0; color: var(--text-2); font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band { padding-block: 40px 112px; }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: 28px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(199, 118, 76, 0.32), transparent 70%),
    var(--surface);
  border: 1px solid rgba(240, 180, 138, 0.2);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
}
.cta-mark { width: 64px; height: 64px; filter: drop-shadow(0 10px 30px rgba(199, 118, 76, 0.6)); }
.cta-inner h2 { margin-block-end: 0.25em; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.cta-inner p { color: var(--text-2); font-size: 1.1rem; max-width: 560px; margin-inline: auto; }

/* ---------- inner pages ---------- */

.page-hero { position: relative; margin-block-start: calc(-1 * var(--header-h)); padding-block: calc(var(--header-h) + 72px) 40px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero-sm { padding-block-end: 8px; }
.page-hero .lead { margin-block-end: 0; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(21, 22, 26, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-2); font-size: 0.93rem; font-weight: 500; text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.chip:hover { color: var(--text); border-color: rgba(240, 180, 138, 0.45); background: var(--accent-soft); }
.chip .icon { color: var(--accent-2); }

.feature-section { padding-block: 88px; }
.feature-section + .feature-section::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 24px; max-width: calc(var(--container) - 48px); margin-inline: auto;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.feature-head { display: flex; gap: 22px; align-items: flex-start; margin-block-end: 40px; }
.feature-head h2 { margin-block-end: 0.3em; }
.feature-list { margin-block-start: 8px; }

/* download */
.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-block-start: 24px; color: var(--muted); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-light);
  border: 1px solid rgba(199, 118, 76, 0.32);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.badge-accent { background: var(--accent-2-soft); color: var(--accent-2); border-color: rgba(240, 180, 138, 0.32); }

.download-grid { align-items: stretch; }
.download-card { display: flex; flex-direction: column; padding: 36px; }
.download-card h2 { font-size: 1.7rem; margin-block: 20px 0.4em; }
.download-card .checklist { margin-block-end: 32px; }
.download-card .btn { margin-block-start: auto; }
.download-card > .badge { position: absolute; inset-block-start: 28px; inset-inline-end: 28px; }
.download-card-featured {
  border-color: rgba(240, 180, 138, 0.3);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(240, 180, 138, 0.08), transparent 45%),
    radial-gradient(90% 60% at 100% 0%, rgba(199, 118, 76, 0.2), transparent 70%),
    var(--surface);
  box-shadow: 0 40px 90px -50px rgba(199, 118, 76, 0.6);
}
.file-name { margin-block: 14px 0; text-align: center; color: var(--muted); font-size: 0.88rem; }
.file-name code { background: none; border: 0; }
.hash { display: grid; gap: 4px; margin-block-start: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); font-size: 0.76rem; color: var(--muted); }
.hash code { white-space: normal; word-break: break-all; background: none; border: 0; padding: 0; }

.info-grid { gap: 64px; }
.info-grid h2 { font-size: 1.7rem; }
.info-grid h3 { margin-block-start: 32px; }

.code {
  position: relative;
  margin: 14px 0 0; padding: 16px 18px; padding-inline-end: 84px;
  background: #0a0b0d; border: 1px solid var(--border-strong); border-radius: 12px;
  color: var(--accent-2); overflow-x: auto; line-height: 1.5;
}
.code code { background: none; border: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn {
  position: absolute; inset-block-start: 9px; inset-inline-end: 9px;
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text-2); font: 600 0.8rem var(--font); cursor: pointer;
}
.copy-btn:hover { color: var(--text); }

.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 56px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; inset-block-start: -2px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(240, 180, 138, 0.25);
  font: 600 0.82rem var(--mono);
}
.steps h3 { margin-block-end: 0.25em; }
.steps p { color: var(--text-2); }

.note > .icon { width: 26px; height: 26px; color: var(--accent-2); margin-block-end: 14px; }
.grid-3 + .muted { margin-block-start: 40px; }

/* changelog */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-block: 10px 0; inset-inline-start: 7px;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--border) 25%, transparent);
}
.release { position: relative; padding-inline-start: 48px; padding-block-end: 48px; }
.release::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 8px;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--bg); border: 2px solid var(--border-strong);
}
.release:first-child::before { background: var(--accent-light); border-color: var(--accent-light); box-shadow: 0 0 0 5px var(--accent-2-soft), 0 0 18px rgba(227, 148, 94, 0.7); }
.release-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-head h2 { font-size: 1.5rem; margin: 0; letter-spacing: -0.02em; }
.release-summary { margin-block: 6px 12px; color: var(--accent-2); font-weight: 500; }
.release ul { margin: 0; padding-inline-start: 1.2em; color: var(--text-2); display: grid; gap: 7px; }
.release li::marker { color: var(--muted); }

/* docs */
.guide { padding-block: 24px; border-block-end: 1px solid var(--border); }
.guide:last-child { border-block-end: 0; }
.guide h3 { font-size: 1.24rem; }
.guide p { color: var(--text-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.shortcut-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.shortcut-table th, .shortcut-table td { padding: 13px 18px; text-align: start; border-block-end: 1px solid var(--border); }
.shortcut-table th { background: var(--surface); color: var(--muted); font: 600 0.76rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.shortcut-table tr:last-child td { border-block-end: 0; }
.shortcut-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.shortcut-table td:first-child { white-space: nowrap; width: 1%; }
.shortcut-table td:last-child { color: var(--text-2); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); transition: border-color 0.2s, background-color 0.2s; }
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: rgba(240, 180, 138, 0.3); background: var(--surface); }
.faq summary {
  position: relative; padding: 18px 22px; padding-inline-end: 58px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 18px; inset-block-start: 50%;
  display: grid; place-items: center; width: 26px; height: 26px; margin-block-start: -13px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--accent-2);
  font: 500 1.1rem/1 var(--mono); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-2); }

/* legal */
.legal h2 { font-size: 1.35rem; margin-block: 2em 0.5em; letter-spacing: -0.02em; }
.legal h2:first-child { margin-block-start: 0; }
.legal p { color: var(--text-2); }
.ph {
  padding: 0 4px; border-radius: 4px;
  background: rgba(245, 185, 66, 0.14); color: var(--amber);
  outline: 1px dashed rgba(245, 185, 66, 0.55);
}

/* 404 */
.not-found { padding-block: calc(var(--header-h) + 120px) 120px; }
.not-found .lead { margin-inline: auto; margin-block-end: 28px; }
.code-inline { display: inline-block; text-align: start; padding-inline-end: 18px; margin-block-end: 32px; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer { position: relative; border-block-start: 1px solid var(--border); background: #0a0b0c; padding-block: 72px 28px; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 148, 94, 0.6), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-block-start: 16px; color: var(--muted); max-width: 320px; font-size: 0.95rem; }
.footer-col h2 {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-block-end: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.96rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-block-start: 56px; padding-block-start: 22px; border-block-start: 1px solid var(--border);
  color: var(--muted); font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- scroll-driven motion (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .hero-stage .shot-hero {
      animation: flatten linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
  .hero-inner > * { animation: rise 0.8s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.06s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.18s; }
  .hero-inner > :nth-child(5) { animation-delay: 0.24s; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes flatten { from { transform: rotateX(14deg) scale(0.94); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-inner, .showcase-tall .showcase-inner, .showcase-reverse .showcase-inner, .native, .bento-lg { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .showcase-reverse .showcase-text { order: 0; }
  .native .section-head { position: static; }
  .feature-body-split { grid-template-columns: minmax(0, 1fr); }
  .feature-body-split .shot-feature { position: static; max-width: 420px; justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px);
    display: none; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px;
    background: #111214; border: 1px solid var(--border-strong); border-radius: 18px;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85);
  }
  .site-header.nav-open .header-inner { background: #111214; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-actions { justify-content: space-between; padding-inline: 4px; }
  .grid-3, .grid-2, .bento { grid-template-columns: minmax(0, 1fr); }
  .info-grid { gap: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding-inline: 18px; }
  .site-header > .container { padding-inline: 10px; }
  .logo-wordmark { height: 32px; }
  .hero { padding-block-start: calc(var(--header-h) + 48px); }
  .hero-stage { margin-block-start: 44px; }
  .section { padding-block: 72px; }
  .showcase { padding-block: 56px; }
  .matrix, .facts { grid-template-columns: minmax(0, 1fr); }
  .feature-head { flex-direction: column; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .download-card { padding: 26px; }
  .download-card > .badge { position: static; align-self: flex-start; margin-block-end: 14px; }
  .cta-row .btn { width: 100%; }
  .bento .card { padding: 24px; }
  .term { font-size: 0.72rem; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .hero-glow, .bg-grid { display: none; }
  body { background: #fff; color: #000; }
}
