/* Horizon Client — horizonclient.org */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #070b1a;
  --bg-2: #0b1126;
  --panel: #10172f;
  --panel-2: #141d3a;
  --line: rgba(140, 170, 255, 0.12);
  --line-2: rgba(140, 170, 255, 0.22);
  --text: #eef2ff;
  --muted: #a3adcc;
  --dim: #7681a6;
  --blue: #1e9bf0;
  --blue-2: #4fb6ff;
  --blue-glow: rgba(30, 155, 240, 0.45);
  --fire: #ffb15a;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #8fd0ff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(7, 11, 26, 0.82); border-bottom-color: var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 Inter, system-ui, sans-serif; color: #fff; white-space: nowrap;
  padding: 12px 18px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(180deg, #34a9f7, var(--blue)); box-shadow: 0 6px 24px -6px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -6px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.09); }
.btn-lg { font-size: 17px; padding: 17px 26px; border-radius: 14px; }
.btn-lg svg { width: 22px; height: 22px; }
.btn-sm { font-size: 14px; padding: 9px 14px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 90px; }
.hero-bg { position: absolute; inset: -24px; z-index: -3; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 70%; }
.hero::before { /* readability shade */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,11,26,.92) 0%, rgba(7,11,26,.72) 34%, rgba(7,11,26,.12) 64%, rgba(7,11,26,0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,11,26,0) 22%),
    linear-gradient(180deg, rgba(7,11,26,.55) 0%, rgba(7,11,26,0) 18%);
}
.hero-glow { position: absolute; z-index: -1; left: 50%; bottom: 6%; width: 46vw; height: 36vw; max-width: 760px; max-height: 560px;
  background: radial-gradient(closest-side, rgba(255,170,80,.28), rgba(255,140,60,.10) 55%, transparent 75%);
  transform: translateX(-10%); animation: flicker 3.2s ease-in-out infinite; pointer-events: none; mix-blend-mode: screen; }
@keyframes flicker { 0%,100% { opacity: .85; } 22% { opacity: 1; } 40% { opacity: .78; } 63% { opacity: .95; } 80% { opacity: .82; } }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: 14%; width: 3px; height: 3px; border-radius: 1px; background: #ffc27a; box-shadow: 0 0 6px 2px rgba(255,160,70,.7); opacity: 0; animation: rise 6s linear infinite; }
.embers i:nth-child(1) { left: 61%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 64%; animation-delay: 1.2s; animation-duration: 7s; }
.embers i:nth-child(3) { left: 59%; animation-delay: 2.4s; }
.embers i:nth-child(4) { left: 66%; animation-delay: 3.1s; animation-duration: 5.5s; }
.embers i:nth-child(5) { left: 62%; animation-delay: 4.3s; animation-duration: 8s; }
.embers i:nth-child(6) { left: 68%; animation-delay: 5.2s; }
@keyframes rise { 0% { transform: translate(0,0) scale(1); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(40px,-48vh) scale(.4); opacity: 0; } }

.hero-copy { max-width: 620px; }
.hero-logo { width: min(560px, 100%); height: auto; filter: drop-shadow(0 8px 40px rgba(30,155,240,.35)); margin: 0 0 22px -6px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 span { color: var(--blue-2); }
.hero .lead { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); color: #c6cee8; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.dl-meta { margin-top: 14px; color: var(--dim); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dl-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); opacity: .6; margin-right: 8px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint svg { width: 18px; height: 18px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.eyebrow { display: inline-block; color: var(--blue-2); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 22px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: rgba(30,155,240,.45); transform: translateY(-2px); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(30,155,240,.12); color: var(--blue-2); margin-bottom: 14px; border: 1px solid rgba(30,155,240,.25); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16.5px; font-weight: 600; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feature kbd, .kbd { font: 600 12px/1 Inter, sans-serif; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.shot { margin: 0; grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot.big { grid-column: span 3; }
.shot button { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s ease; }
.shot button:hover img { transform: scale(1.025); }
.shot figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.shot figcaption b { color: var(--text); font-weight: 600; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3,6,16,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1280px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px; }
.lightbox .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .close svg { width: 22px; height: 22px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(180deg, #34a9f7, var(--blue)); box-shadow: 0 6px 18px -4px var(--blue-glow); }
.step h3 { font-size: 17px; margin-top: 6px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step .note { margin-top: 12px; font-size: 13.5px; color: #c9d3f0; background: rgba(255,177,90,.07); border: 1px solid rgba(255,177,90,.22); border-radius: 10px; padding: 10px 12px; }
.step .note b { color: var(--fire); }

/* requirements */
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.req div { padding: 20px 22px; border-right: 1px solid var(--line); }
.req div:last-child { border-right: 0; }
.req dt { color: var(--dim); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.req dd { margin: 6px 0 0; font-size: 15.5px; font-weight: 500; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2);
  padding: 46px 42px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 0% 0%, rgba(30,155,240,.22), transparent 55%), linear-gradient(180deg, var(--panel-2), var(--panel));
}
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta p { margin-top: 8px; color: var(--muted); }
.ip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; padding: 14px 18px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line-2); color: #fff; cursor: pointer; font-family: inherit; }
.ip svg { width: 18px; height: 18px; color: var(--blue-2); }
.ip .copied { color: #7ee2a8; font-size: 13px; font-weight: 600; display: none; }
.ip.done .copied { display: inline; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- inner pages ---------- */
.page-hero { padding: 132px 0 40px; background: radial-gradient(80% 120% at 10% 0%, rgba(30,155,240,.16), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 680px; }
.prose { max-width: 780px; padding: 48px 0 90px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: #c9d1ea; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose .meta { color: var(--dim); font-size: 14px; }
.callout { margin: 26px 0; padding: 16px 18px; border-radius: 12px; background: rgba(30,155,240,.08); border: 1px solid rgba(30,155,240,.28); color: #d3e6fb; }
.callout a { font-weight: 600; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0 90px; align-items: start; }
.faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-list details[open] { border-color: rgba(30,155,240,.4); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list .a { padding: 0 20px 20px; color: #c9d1ea; }
.faq-list .a p + p { margin-top: 10px; }
.faq-list .a ul { margin: 8px 0 0; padding-left: 20px; }
.keys { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 15px; }
.keys td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.keys td:first-child { width: 150px; }
.keys tr:last-child td { border-bottom: 0; }
.side-card { position: sticky; top: 92px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; }
.side-card h2 { font-size: 19px; }
.side-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.side-card .btn { width: 100%; margin-top: 16px; }
.side-card ol { margin: 12px 0 0; padding-left: 20px; color: #c9d1ea; font-size: 14.5px; }
.side-card ol li { margin: 5px 0; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px 80px; background: radial-gradient(60% 60% at 50% 40%, rgba(30,155,240,.14), transparent 70%), var(--bg); }
.notfound .code { font-size: clamp(72px, 14vw, 140px); font-weight: 700; line-height: 1; background: linear-gradient(180deg, #ffffff, #4fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); margin: 14px auto 26px; max-width: 420px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #050817; padding: 40px 0 34px; font-size: 14px; color: var(--dim); }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: #fff; }
.disclaimer { margin-top: 22px; font-size: 13px; color: var(--dim); max-width: 760px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shot, .shot.big { grid-column: span 1; }
  .req { grid-template-columns: repeat(2, 1fr); }
  .req div:nth-child(2) { border-right: 0; }
  .req div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: rgba(10,15,34,.98); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
  .menu-btn { display: inline-flex; }
  .site-header { background: rgba(7,11,26,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .hero { display: block; min-height: 0; padding: 68px 0 56px; }
  .hero-bg { position: relative; inset: auto; height: 62vw; max-height: 470px; margin-bottom: -56px; }
  .hero-bg img { object-position: 60% 72%; }
  .hero::before { inset: 68px 0 auto 0; height: calc(62vw + 2px); max-height: 472px;
    background: linear-gradient(180deg, rgba(7,11,26,.35) 0%, rgba(7,11,26,0) 22%, rgba(7,11,26,0) 55%, rgba(7,11,26,.75) 82%, var(--bg) 100%); }
  .hero-glow { left: 30%; bottom: auto; top: calc(68px + 26vw); width: 70vw; height: 40vw; }
  .embers { display: none; }
  .hero-copy { position: relative; }
  .hero-logo { width: min(420px, 88%); margin-bottom: 16px; }
  .dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .dl-meta span::before, .dl-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-2); opacity: .8; margin-right: 2px; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
  .req div { border-right: 0; border-bottom: 1px solid var(--line); }
  .req div:last-child { border-bottom: 0; }
  .hero-actions .btn-lg { width: 100%; }
  .cta { padding: 30px 22px; }
  .cta-actions, .cta-actions .btn, .ip { width: 100%; }
  .ip { justify-content: center; }
  .keys td:first-child { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .embers { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* nav CTA keeps button styling (beats .nav-links a) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #34a9f7, var(--blue)); padding: 9px 14px; }
