/* HFA Tech — site styles. Dark graphite, silver type, orange circuit glow. */
:root {
  --bg: #0a0a0f;
  --bg-2: #101017;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f3f3f6;
  --ink-2: #d4d4dc;
  --muted: #9b9bab;
  --orange: #ff8a1f;
  --orange-2: #ffb25e;
  --orange-deep: #e5620a;
  --good: #5fe0a8;
  --bad: #ff7a7a;
  --accent: var(--orange);
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
body::before { /* soft vignette + grain of light at the top */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(255, 138, 31, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(120, 120, 160, 0.10), transparent 60%),
    linear-gradient(180deg, #0c0c12 0%, var(--bg) 40%);
}
main { flex: 1; }
img, video { max-width: 100%; display: block; }
a { color: var(--orange-2); text-decoration: none; }
a:hover { color: #ffd0a0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--panel-2); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; word-break: break-all; }
kbd { font: 500 0.72rem var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 0.1em 0.45em; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.i.big { width: 30px; height: 30px; color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 40; transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(10, 10, 15, 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.45)); transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word { font: 800 1.28rem var(--head); letter-spacing: -0.02em; background: linear-gradient(180deg, #fff, #b9b9c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word b { font-weight: 600; margin-left: 0.28em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: #fff; background: var(--panel-2); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.search-btn {
  margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 9px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 0.92rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.search-btn:hover { border-color: var(--line-2); background: var(--panel-2); color: var(--ink-2); }
.search-btn kbd { margin-left: auto; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; border-radius: 10px; cursor: pointer; }
.menu-btn .i { width: 24px; height: 24px; }

/* ------------------------------------------------------------ buttons */
.btn {
  --b: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 12px;
  font: 600 0.95rem var(--body); border: 1px solid var(--line-2); background: var(--b); color: var(--ink); cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s, background 0.2s; text-align: left;
}
.btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--orange-2), var(--orange) 45%, var(--orange-deep)); border-color: transparent; color: #1a0d02; box-shadow: 0 8px 28px -8px rgba(255, 138, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { color: #140900; box-shadow: 0 12px 36px -8px rgba(255, 138, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary::after { /* passing shine */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transition: left 0.7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }
.btn small { display: block; font-weight: 500; font-size: 0.78rem; opacity: 0.75; }
.btn .i { width: 1.25em; height: 1.25em; }
.is-disabled { opacity: 0.55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .i { transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.copy { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); font: 500 0.8rem var(--body); padding: 5px 9px; border-radius: 8px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.copy:hover { background: rgba(255, 138, 31, 0.15); color: #fff; }
.copy.done { color: var(--good); border-color: rgba(95, 224, 168, 0.4); }

/* ------------------------------------------------------------ intro (first visit) */
.intro { position: fixed; inset: 0; z-index: 90; background: #08080c; display: grid; place-items: center; transition: opacity 0.9s var(--ease), visibility 0.9s; }
.intro-video { width: min(900px, 92vw); border-radius: 20px; box-shadow: 0 30px 120px -20px rgba(255, 138, 31, 0.35); }
.intro.out { opacity: 0; visibility: hidden; }
.intro.out .intro-video { transform: scale(0.94); transition: transform 0.9s var(--ease); }
.intro-skip { position: absolute; right: 22px; bottom: 22px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; font: 500 0.88rem var(--body); cursor: pointer; }
.intro-skip:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 40px; overflow: hidden; isolation: isolate; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 80%); }
.hero-in > *, .app-body > * { min-width: 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-2); font: 600 0.84rem var(--body); letter-spacing: 0.04em; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 138, 31, 0.08); border: 1px solid rgba(255, 138, 31, 0.25); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 138, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0); } }
.hero h1 { margin-top: 18px; background: linear-gradient(180deg, #fff 30%, #a9a9b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glow { background: linear-gradient(100deg, var(--orange-2), var(--orange) 50%, #ffd29a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 138, 31, 0.45)); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--ink-2); max-width: 36em; }
.hero-search {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 26px; padding: 7px 7px 7px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); max-width: 540px; transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-search:focus-within { border-color: rgba(255, 138, 31, 0.6); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.12); }
.hero-search .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 1rem; padding: 8px 0; }
.hero-search input::placeholder { color: #7d7d8e; }
.stats { display: flex; gap: clamp(20px, 4vw, 44px); margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stats dd { margin: 0; font: 800 1.8rem var(--head); color: #fff; }
.hero-media { perspective: 1400px; }
.screen {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0d12;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 80px -30px rgba(255, 138, 31, 0.45);
  transform: rotateY(-9deg) rotateX(4deg); transition: transform 0.9s var(--ease);
}
.hero-media:hover .screen { transform: rotateY(-3deg) rotateX(1deg); }
.hero-video { width: 100%; aspect-ratio: 1280 / 890; object-fit: cover; }
.screen-shine { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 40%); pointer-events: none; }
.marquee { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee div { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { padding: 14px 28px; color: var(--muted); font: 600 0.9rem var(--head); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.marquee span::before { content: "◆"; color: var(--orange); margin-right: 28px; font-size: 0.6em; vertical-align: 0.2em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections and cards */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section.tight { padding-top: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  --mx: 50%; --my: 50%; --accent: var(--orange);
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-lg); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease); transform-style: preserve-3d;
}
.card:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.card-glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%); }
.card:hover .card-glow { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); background: #15151c; object-fit: cover; }
.app-icon.xl { width: 112px; height: 112px; border-radius: 28px; }
.card-name { font: 700 1.3rem var(--head); }
.card-tag { color: var(--ink-2); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.85rem; margin-top: auto; padding-top: 12px; }
.card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 0.92rem; color: var(--orange-2); }
.card-go .i { transition: transform 0.3s var(--ease); }
.card:hover .card-go .i { transform: translateX(5px); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.plats { display: inline-flex; gap: 6px; }
.plat { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--panel-2); color: var(--ink-2); }
.plat .i { width: 14px; height: 14px; }
.badge { font: 700 0.7rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge.free { color: var(--good); border-color: rgba(95, 224, 168, 0.35); background: rgba(95, 224, 168, 0.08); }
.badge.pro { color: var(--orange-2); border-color: rgba(255, 138, 31, 0.4); background: rgba(255, 138, 31, 0.08); }
.badge.soon { color: #b9b4ff; border-color: rgba(185, 180, 255, 0.35); background: rgba(185, 180, 255, 0.08); }
.badge.beta { color: #7fd4ff; border-color: rgba(127, 212, 255, 0.35); background: rgba(127, 212, 255, 0.08); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s; }
.why-card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 31, 0.35); }
.why-card h3 { margin-top: 16px; }
.why-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 120%, rgba(255, 138, 31, 0.25), transparent 70%), linear-gradient(135deg, #17171f, #101016); border: 1px solid rgba(255, 138, 31, 0.25); }
.cta p { color: var(--ink-2); margin: 0; max-width: 40em; }

/* ------------------------------------------------------------ gallery page */
.page-head { padding: clamp(40px, 6vw, 80px) 0 28px; }
.page-head.narrow { max-width: 760px; }
.filters { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.filter-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); max-width: 520px; transition: border-color 0.25s, box-shadow 0.25s; }
.filter-search:focus-within { border-color: rgba(255, 138, 31, 0.6); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.12); }
.filter-search .i { color: var(--muted); }
.filter-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); font: 500 0.9rem var(--body); cursor: pointer; transition: all 0.2s; }
.chip:hover { border-color: var(--line-2); color: #fff; }
.chip[aria-pressed="true"] { background: rgba(255, 138, 31, 0.14); border-color: rgba(255, 138, 31, 0.5); color: #fff; }
.card.hide { display: none; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ------------------------------------------------------------ app page */
.app-hero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 15% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.app-head { display: flex; gap: 26px; align-items: center; }
.app-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 4px; }
.app-head .lead { margin-bottom: 10px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; margin: 0; }
.meta b { color: var(--ink); }
.dl-box { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dl-box .muted { flex-basis: 100%; margin: 4px 0 0; }
.dl-main.alt { display: none; }
.dl-box.picked .dl-main { display: none; }
.dl-box.picked .dl-main.chosen { display: inline-flex; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 40px 0 72px; }
.block { margin-bottom: 44px; }
.summary { font-size: 1.08rem; color: var(--ink-2); max-width: 46em; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 46%); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shot { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #111; cursor: zoom-in; scroll-snap-align: start; transition: transform 0.35s var(--ease), border-color 0.3s; }
.shot:hover { transform: translateY(-3px); border-color: var(--line-2); }
.shot img { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.paid { border-color: rgba(255, 138, 31, 0.35); background: radial-gradient(400px 200px at 100% 0%, rgba(255, 138, 31, 0.12), transparent 70%), var(--panel); }
.price { font: 800 1.9rem var(--head); margin: 4px 0 14px; }
.price span { font: 500 0.9rem var(--body); color: var(--muted); margin-left: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); }
.plan li .i { color: var(--good); }
.buy-form, .support { margin-top: 22px; padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-2); display: grid; gap: 14px; max-width: 560px; }
.buy-form label, .field { display: grid; gap: 6px; font-weight: 500; font-size: 0.92rem; color: var(--ink-2); }
input[type="email"], input[type="text"], input[type="number"], input[type="search"], input[type="password"], select, textarea { font: inherit; color: var(--ink); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: 0; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus { border-color: rgba(255, 138, 31, 0.7); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.12); }
.row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.form-error { color: var(--bad); margin: 0; font-size: 0.92rem; }
.versions { display: grid; gap: 10px; margin-bottom: 14px; }
.ver { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.ver summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.ver summary::-webkit-details-marker { display: none; }
.ver-n { font: 700 1.05rem var(--head); }
.chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.ver[open] .chev { transform: rotate(225deg); }
.ver-body { padding: 0 20px 18px; }
.notes { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }
.files { display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.file-name { display: flex; gap: 10px; align-items: center; min-width: 0; }
.file-name > span { display: grid; min-width: 0; }
.file-name small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-hash { display: flex; gap: 6px; align-items: center; min-width: 0; }
.file-hash code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; color: var(--muted); font-size: 0.75rem; }
.app-side { display: grid; gap: 14px; align-content: start; position: sticky; top: 92px; }
.side-card { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.side-card p { color: var(--ink-2); margin: 0; font-size: 0.94rem; }
.side-card dl { margin: 0; display: grid; gap: 4px; }
.side-card dt { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.side-card dd { margin: 0; color: var(--muted); font-size: 0.92rem; }
.side-card .i { color: var(--orange); }

/* ------------------------------------------------------------ support / thanks / prose */
.amounts { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.amounts legend { font-weight: 500; font-size: 0.92rem; color: var(--ink-2); margin-bottom: 10px; }
.amount { position: relative; cursor: pointer; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: block; text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); font: 700 1.05rem var(--head); transition: all 0.2s; }
.amount input:checked + span { border-color: var(--orange); background: rgba(255, 138, 31, 0.14); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.15); }
.amount input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.pay-note .i { color: var(--good); margin-top: 2px; }
.status-orb { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.status-orb span { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd6a8, var(--orange) 55%, var(--orange-deep)); box-shadow: 0 0 40px rgba(255, 138, 31, 0.6); }
.status-orb[data-state="wait"]::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--orange); animation: spin 1s linear infinite; }
.status-orb[data-state="ok"] span { background: radial-gradient(circle at 35% 30%, #c8ffe6, var(--good) 60%, #23a873); box-shadow: 0 0 40px rgba(95, 224, 168, 0.6); }
.status-orb[data-state="bad"] span { background: radial-gradient(circle at 35% 30%, #ffd0d0, var(--bad) 60%, #c03a3a); box-shadow: 0 0 40px rgba(255, 122, 122, 0.5); }
@keyframes spin { to { transform: rotate(360deg); } }
.licence { margin: 28px auto; padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(95, 224, 168, 0.35); text-align: left; }
.licence-key { display: flex; gap: 10px; align-items: center; }
.licence-key code { flex: 1; font-size: 0.8rem; padding: 10px 12px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink-2); }
.big-404 { font: 800 clamp(5rem, 16vw, 9rem) var(--head); margin: 0; line-height: 1; color: #2a2a35; }
.big-404 span { color: var(--orange); text-shadow: 0 0 40px rgba(255, 138, 31, 0.6); }

/* ------------------------------------------------------------ search palette, modal, lightbox */
.palette, .modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.modal { place-items: center; padding: 16px; }
.palette-back, .modal-back { position: absolute; inset: 0; background: rgba(5, 5, 8, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.25s var(--ease); }
.palette-box, .modal-box { position: relative; width: min(620px, 100%); border-radius: 20px; background: #14141b; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9); animation: pop 0.35s var(--ease); }
.palette-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-field .i { color: var(--orange); width: 20px; height: 20px; }
.palette-field input { flex: 1; background: none; border: 0; outline: 0; color: var(--ink); font: 500 1.05rem var(--body); }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow-y: auto; }
.palette-list a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.palette-list a img { width: 40px; height: 40px; border-radius: 10px; }
.palette-list a small { display: block; color: var(--muted); }
.palette-list a[aria-selected="true"], .palette-list a:hover { background: rgba(255, 138, 31, 0.12); color: #fff; }
.palette-list .none { padding: 18px; color: var(--muted); text-align: center; }
.modal-box { padding: 30px; }
.modal-x { position: absolute; top: 14px; right: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.modal-x .i { width: 18px; height: 18px; }
.steps { padding-left: 20px; display: grid; gap: 12px; color: var(--ink-2); }
.steps li { padding-left: 4px; }
.steps code.hash { display: block; margin: 8px 0; font-size: 0.72rem; }
.dl-anim { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; background: rgba(255, 138, 31, 0.12); border: 1px solid rgba(255, 138, 31, 0.35); position: relative; overflow: hidden; }
.dl-anim span { position: absolute; left: 50%; top: 14px; width: 3px; height: 26px; margin-left: -1.5px; background: var(--orange); border-radius: 2px; animation: drop 1.2s var(--ease) infinite; }
.dl-anim span::after { content: ""; position: absolute; left: -7px; bottom: -2px; width: 12px; height: 12px; border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); }
.dl-anim::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 2px; background: var(--orange-2); }
@keyframes drop { 0% { transform: translateY(-30px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(5, 5, 8, 0.92); display: grid; place-items: center; padding: 24px; animation: fade 0.25s; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 16px; animation: pop 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
body.locked { overflow: hidden; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(255, 138, 31, 0.03)); }
.foot-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 48px 0 32px; }
.foot-brand img { width: 260px; height: auto; margin-bottom: 10px; }
.foot-brand p { color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 0.94rem; overflow-wrap: anywhere; }
.foot-cols a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }

/* ------------------------------------------------------------ motion */
.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(4px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
[data-delay="1"] { --d: 1; } [data-delay="2"] { --d: 2; } [data-delay="3"] { --d: 3; } [data-delay="4"] { --d: 4; } [data-delay="5"] { --d: 5; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.32s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .screen { transform: none; }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .screen { transform: none; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 1fr; }
  .app-side { position: static; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 10px; border-radius: 16px; background: #14141b; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000; margin: 0; }
  .nav.open { display: flex; animation: pop 0.3s var(--ease); }
  .nav a { padding: 12px 14px; }
  .menu-btn { display: block; }
  .search-btn { min-width: 0; padding: 9px; margin-left: auto; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn .i { width: 20px; height: 20px; }
  .why { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .app-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .app-icon.xl { width: 88px; height: 88px; border-radius: 22px; }
  .file { grid-template-columns: 1fr; }
  .shots { grid-auto-columns: 82%; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .hero-search .btn { padding: 10px 14px; }
  .stats dd { font-size: 1.5rem; }
  .dl-box .btn-lg { width: 100%; }
}

/* ---- Skills Store and Guides ---- */
.store-bar { display: grid; gap: 14px; margin-bottom: 22px; }
.store-bar input[type="search"] { max-width: 420px; width: 100%; }
.store-card { display: flex; flex-direction: column; text-decoration: none; }
.store-cat { color: var(--muted); font-size: 0.8rem; }
.store-view { max-width: 760px; }
.store-view .back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.store-view h1 { margin-bottom: 8px; }
.store-how { margin: 22px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.store-how h2 { font-size: 1.05rem; margin: 0 0 10px; }
.store-how ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.store-how li { margin-bottom: 6px; }
.store-say { font-family: var(--mono); font-size: 0.9rem; color: var(--orange-2); }
.prose h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.prose h3, .prose h4 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.store-text { padding: 4px 20px 8px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
#store-grid { margin-bottom: 20px; }

/* ---- Plugins page ---- */
.plugins { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.plugin { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 90px; }
.plugin h2 { font-size: 1.15rem; margin: 0; }
.plugin h3 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.plugin p { color: var(--ink-2); margin: 0; }
.plugin .say { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; color: var(--ink-2); font-size: 0.93rem; }
.plugin dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 0.88rem; }
.plugin dt { color: var(--muted); }
.plugin dd { margin: 0; color: var(--ink-2); }
