/* Heliarc landing page. Native CSS, Geist, one violet accent.
   Shape rule: --r-lg (20px) for images and panels, --r-md (12px) for buttons and chips. Nothing else. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f6f9; --surface: #fbfbfd; --surface-2: #eeeef4;
  --text: #15151c; --muted: #565667; --line: rgb(21 21 28 / .1); --line-strong: rgb(21 21 28 / .22);
  --accent: #5443e0; --accent-hover: #4636cc; --on-accent: #fbfbfd; --accent-text: #4a39d6; --accent-soft: #e9e7fb;
  --shadow: 0 30px 60px -24px rgb(60 40 140 / .35), 0 8px 20px -10px rgb(60 40 140 / .2);
  --r-lg: 20px; --r-md: 12px;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d12; --surface: #15151c; --surface-2: #1d1d27;
    --text: #ececf3; --muted: #a2a2b5; --line: rgb(236 236 243 / .12); --line-strong: rgb(236 236 243 / .28);
    --accent: #8d80ff; --accent-hover: #a094ff; --on-accent: #0d0d12; --accent-text: #a99fff; --accent-soft: #211f45;
    --shadow: 0 30px 60px -24px rgb(6 4 30 / .8), 0 8px 20px -10px rgb(6 4 30 / .6);
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.skip { position: absolute; left: 12px; top: -48px; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-md); z-index: 100; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

/* icons: library SVGs painted with currentColor, so they follow the theme */
.i { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.i-lg { width: 28px; height: 28px; }
.logo { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 28px; margin-left: 8px; }
.nav nav a { color: var(--muted); font-size: .9375rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); color: var(--muted); font-size: 1.25rem; transition: color .2s, background .2s; }
.icon-link:hover { color: var(--text); background: var(--surface-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid transparent; font: 500 .9375rem/1 var(--font); white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s; }
.btn small { font: 400 .8125rem/1 var(--mono); opacity: .75; }
.btn small:empty { display: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 40px; padding: 0 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

/* type */
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 3.7vw, 3.375rem); line-height: 1.02; letter-spacing: -.045em; }
h1 span { display: block; }
.accent { color: var(--accent-text); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); line-height: 1.06; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.02em; }
.lead { margin-top: 24px; max-width: 34ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--muted); }
.body { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 1.0625rem; }
.eyebrow { margin-bottom: 14px; font: 500 .8125rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }

.section { padding-block: clamp(72px, 11vw, 144px) 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero: split, copy left, real screenshot right */
.hero { min-height: calc(100dvh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(24px, 5vh, 64px); }
.hero-shot img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* tabs: copy left, framed crop right */
.tabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.points { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.points .i { margin-top: 2px; color: var(--accent-text); }
.frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.frame img { width: 100%; }
.frame-plain { background: var(--surface-2); padding: clamp(16px, 3vw, 40px); box-shadow: none; }
.frame-plain img { border-radius: var(--r-md); box-shadow: var(--shadow); max-width: 880px; margin-inline: auto; }

/* command bar: stacked, text then wide crop */
.command { display: grid; gap: 40px; }
.bangs { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.bangs code { font: 500 .875rem/1 var(--mono); padding: 9px 12px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); }

/* privacy bento: five items, five cells */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cell { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cell p { color: var(--muted); max-width: 44ch; }
.cell .i-lg { color: var(--accent-text); margin-bottom: 8px; }
.b-img { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--surface-2); }
.b-img img { margin: auto -28px -28px; width: calc(100% + 56px); max-width: none; margin-top: 20px; }
.b-trk { grid-column: 3 / 5; background: linear-gradient(145deg, #4a3ad4, #6a4fe8); border-color: transparent; color: #fbfbfd; }
.b-trk p { color: rgb(251 251 253 / .86); }
.b-trk .i-lg { color: #fbfbfd; }
.b-prv { grid-column: 3; background: var(--accent-soft); border-color: transparent; }
.b-cki { grid-column: 4; }
.b-perm { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.b-perm .i-lg { margin: 0; }
.b-perm p { margin-top: 6px; max-width: 70ch; }

/* extensions and import: two panels */
.pair { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.panel p { color: var(--muted); max-width: 46ch; }
.panel .actions { margin-top: auto; padding-top: 22px; }
.logos { list-style: none; padding: 0; margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; color: var(--muted); }
.logos li { width: 36px; height: 36px; }

/* download */
.ver { display: inline-flex; align-items: center; min-height: 1.6em; }
.ver .skeleton { display: none; width: 7em; height: .9em; border-radius: 6px; background: var(--surface-2); }
.is-loading .ver .skeleton { display: inline-block; }
.is-loading .ver .ver-text { display: none; }
.ver.is-error { color: var(--accent-text); }
.note { margin-top: 24px; color: var(--muted); max-width: 70ch; font-size: .9375rem; }
.footer { margin-top: clamp(72px, 11vw, 144px); border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* motion: entrance and scroll reveal show hierarchy; both switch off for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-shot { animation: rise .9s var(--ease) both; }
  .hero-copy > h1 { animation-delay: .05s; }
  .hero-copy > .lead { animation-delay: .15s; }
  .hero-copy > .actions { animation-delay: .25s; }
  .hero-shot { animation-delay: .2s; animation-duration: 1.1s; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .is-loading .skeleton { animation: pulse 1.4s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pulse { 50% { opacity: .45; } }

/* mobile: everything collapses to one column */
@media (max-width: 900px) {
  .hero, .tabs, .pair { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .bento { grid-template-columns: 1fr; }
  .b-img, .b-trk, .b-prv, .b-cki, .b-perm { grid-column: 1; grid-row: auto; }
  .b-perm { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .actions .btn { flex: 1 1 auto; }
}
