/*
 * Hex Halo: components
 * Every value comes from tokens.css. Load tokens.css first.
 * Halo art is inline SVG: a stack of outline polygons (class hx-ring-line),
 * each a little smaller and turned a few degrees, inside an svg.hx-halo.
 */

/* Base */
.vf { margin: 0; background: var(--hx-void); color: var(--hx-text); font-family: var(--hx-sans); font-size: var(--hx-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(.vf) *, :where(.vf) *::before, :where(.vf) *::after { box-sizing: border-box; }
:where(.vf) a { color: inherit; text-decoration: none; }
:where(.vf) img, :where(.vf) svg { max-width: 100%; }
.hx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hx-container { width: 100%; max-width: var(--hx-container); margin: 0 auto; padding: 0 var(--hx-space-5); }
.hx-narrow { max-width: var(--hx-text-width); margin-left: auto; margin-right: auto; }
.hx-section { padding: var(--hx-space-9) 0; position: relative; }
.hx-section--line { border-top: var(--hx-border); }
.hx-center { text-align: center; }

/* Type */
.hx-hero-title { margin: 0; font-size: var(--hx-text-hero); line-height: 1.05; font-weight: 500; letter-spacing: var(--hx-track-tight); text-wrap: balance; }
.hx-h2 { margin: 0; font-size: var(--hx-text-h2); line-height: 1.1; font-weight: 500; letter-spacing: var(--hx-track-tight); text-wrap: balance; }
.hx-h3 { margin: 0; font-size: var(--hx-text-h3); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.hx-lit { color: var(--hx-accent); }
.hx-dimmed { color: var(--hx-dim); }
.hx-lead { margin: 0; font-size: var(--hx-text-lead); line-height: 1.55; color: var(--hx-dim); max-width: 600px; }
.hx-center .hx-lead { margin-left: auto; margin-right: auto; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hx-mono); font-size: var(--hx-text-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--hx-dim); margin-bottom: var(--hx-space-4); }
.hx-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--hx-iris); }
.hx-micro { font-family: var(--hx-mono); font-size: var(--hx-text-micro); color: var(--hx-faint); }

/* Nav: a flat bar with a hairline */
.hx-nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 8, 6, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: var(--hx-border); }
.hx-nav__inner { max-width: var(--hx-container); margin: 0 auto; height: 64px; padding: 0 var(--hx-space-5); display: flex; align-items: center; gap: var(--hx-space-5); }
.hx-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.hx-logo svg { width: 24px; height: 24px; flex: none; overflow: visible; }
.hx-logo__mark .hx-ring-line { stroke-width: 3.5; }
.hx-nav__links { display: flex; gap: var(--hx-space-6); margin: 0 auto; font-size: 14px; color: var(--hx-dim); }
.hx-nav__links a:hover, .hx-nav__links a[aria-current] { color: var(--hx-text); }
.hx-nav__end { display: flex; align-items: center; gap: var(--hx-space-5); font-size: 14px; }
@media (max-width: 860px) { .hx-nav__links { display: none; } .hx-nav__end { margin-left: auto; } .hx-nav .hx-hide-sm { display: none; } }

/* Buttons: pills */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--hx-radius); font: 600 14px/1 var(--hx-sans); white-space: nowrap; cursor: pointer; transition: background var(--hx-fast), border-color var(--hx-fast), color var(--hx-fast), box-shadow var(--hx-fast); }
.hx-btn--pale { background: var(--hx-pale); color: var(--hx-pale-ink); }
.hx-btn--pale:hover { background: #FFFFFF; }
.hx-btn--outline { background: var(--hx-raised); color: var(--hx-text); border-color: var(--hx-line-bright); }
.hx-btn--outline:hover { border-color: var(--hx-dim); }
.hx-btn--accent { position: relative; background: var(--hx-pale); color: var(--hx-pale-ink); box-shadow: var(--hx-shadow-iris); }
.hx-btn--accent::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--hx-iris); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hx-btn--accent:hover { background: var(--hx-glint); }
.hx-btn--ghost { background: transparent; color: var(--hx-dim); padding: 0; height: auto; border: 0; }
.hx-btn--ghost:hover { color: var(--hx-text); }
.hx-btn--lg { height: 46px; padding: 0 24px; font-size: 15px; }
.hx-btn--block { width: 100%; }
.hx-btn svg { width: 16px; height: 16px; flex: none; }

/* Badges */
.hx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--hx-radius-pill); border: var(--hx-border); background: var(--hx-panel); font: 500 11px/1.5 var(--hx-mono); color: var(--hx-dim); white-space: nowrap; }
.hx-badge--accent { color: var(--hx-accent); border-color: var(--hx-accent-line); background: var(--hx-accent-soft); }
.hx-badge--gold { color: var(--hx-gold); }
.hx-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }

/* Hero: left-aligned text with the halo on the right */
.hx-hero { padding-top: var(--hx-space-9); padding-bottom: var(--hx-space-7); display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--hx-space-7); align-items: center; }
.hx-hero .hx-lead { margin-top: var(--hx-space-5); max-width: 440px; }
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: var(--hx-space-3); margin-top: var(--hx-space-6); }
.hx-hero__note { margin: var(--hx-space-4) 0 0; font-size: var(--hx-text-small); color: var(--hx-dim); }
.hx-hero--center { grid-template-columns: 1fr; gap: 0; text-align: center; justify-items: center; }
.hx-hero--center .hx-lead { margin-left: auto; margin-right: auto; max-width: 600px; }
.hx-hero--center .hx-hero__actions, .hx-cta .hx-hero__actions { justify-content: center; }
@media (max-width: 900px) { .hx-hero { grid-template-columns: 1fr; padding-top: var(--hx-space-8); } .hx-hero .hx-halo { max-width: 300px; } }

/* Halo: stacked outline polygons glowing like neon tubes */
.hx-halo { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; filter: var(--hx-ring-glow); }
.hx-ring-line { fill: none; stroke: var(--hx-accent); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.hx-halo--spin { animation: hx-turn var(--hx-slow) linear infinite; transform-origin: 50% 50%; }
@keyframes hx-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hx-halo--spin { animation: none; } }
.hx-halo-stage { position: relative; display: grid; place-items: center; padding: var(--hx-space-5); }
.hx-halo-stage::before { content: ""; position: absolute; inset: 0; background: var(--hx-glow); pointer-events: none; }
.hx-halo-stage > * { position: relative; }

/* Window: a blurred product shot under the hero */
.hx-window { position: relative; border: var(--hx-border); border-radius: var(--hx-radius-lg); background: var(--hx-panel); box-shadow: var(--hx-shadow-card); overflow: hidden; }
.hx-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 10, 0) 55%, var(--hx-void) 100%); pointer-events: none; }

/* Logo strip */
.hx-strip { display: flex; align-items: center; gap: var(--hx-space-7); padding: var(--hx-space-5) 0; border-top: var(--hx-border); border-bottom: var(--hx-border); overflow-x: clip; }
.hx-strip__label { flex: none; max-width: 150px; font-size: var(--hx-text-small); color: var(--hx-dim); line-height: 1.4; }
.hx-strip__names { display: flex; gap: var(--hx-space-7); align-items: center; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--hx-faint); white-space: nowrap; }
@media (max-width: 700px) { .hx-strip { flex-direction: column; align-items: flex-start; gap: var(--hx-space-4); } .hx-strip__names { gap: var(--hx-space-5); font-size: 16px; flex-wrap: wrap; white-space: normal; } }

/* Cards */
.hx-grid { display: grid; gap: var(--hx-space-4); }
.hx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .hx-grid--3, .hx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hx-grid--2, .hx-grid--3, .hx-grid--4 { grid-template-columns: 1fr; } }
.hx-card { padding: var(--hx-space-5); background: var(--hx-panel); border: var(--hx-border); border-radius: var(--hx-radius-lg); transition: border-color var(--hx-fast); }
.hx-card:hover { border-color: var(--hx-line-bright); }
.hx-card p { margin: var(--hx-space-2) 0 0; color: var(--hx-dim); }
.hx-card__art { height: 120px; margin: calc(var(--hx-space-5) * -1) calc(var(--hx-space-5) * -1) var(--hx-space-5); border-bottom: var(--hx-border); background: var(--hx-grid); background-size: var(--hx-grid-size); display: grid; place-items: center; border-radius: var(--hx-radius-lg) var(--hx-radius-lg) 0 0; }
.hx-card__art svg { height: 88px; width: auto; filter: var(--hx-ring-glow); }

/* Stats */
.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--hx-border); border-radius: var(--hx-radius-lg); overflow: hidden; }
.hx-stat { padding: var(--hx-space-5); border-right: var(--hx-border); }
.hx-stat:last-child { border-right: 0; }
.hx-stat__value { display: block; font-size: 36px; font-weight: 500; letter-spacing: var(--hx-track-tight); line-height: 1.1; }
.hx-stat__value em { font-style: normal; color: var(--hx-accent); }
.hx-stat__label { display: block; margin-top: var(--hx-space-2); font-size: var(--hx-text-small); color: var(--hx-dim); }
@media (max-width: 760px) { .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hx-stat:nth-child(2) { border-right: 0; } .hx-stat:nth-child(-n+2) { border-bottom: var(--hx-border); } }

/* Split: text and a visual */
.hx-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hx-space-8); align-items: center; }
.hx-split .hx-lead { margin-top: var(--hx-space-4); }
@media (max-width: 900px) { .hx-split { grid-template-columns: 1fr; gap: var(--hx-space-6); } }
.hx-list { list-style: none; padding: 0; margin: var(--hx-space-5) 0 0; display: grid; gap: var(--hx-space-3); }
.hx-list li { display: flex; gap: var(--hx-space-3); color: var(--hx-dim); }
.hx-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border: 1.5px solid var(--hx-accent); transform: rotate(45deg); }
.hx-list strong { color: var(--hx-text); font-weight: 500; }

/* Terminal: a readout panel */
.hx-terminal { background: var(--hx-panel); border: var(--hx-border); border-radius: var(--hx-radius-lg); overflow: hidden; box-shadow: var(--hx-shadow-card); text-align: left; }
.hx-terminal__bar { display: flex; align-items: center; gap: var(--hx-space-3); padding: 10px 16px; border-bottom: var(--hx-border); font: 500 12px/1 var(--hx-mono); color: var(--hx-dim); }
.hx-terminal__bar .hx-badge { margin-left: auto; }
.hx-terminal__body { margin: 0; padding: var(--hx-space-5); font: 400 13px/1.8 var(--hx-mono); color: var(--hx-dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.hx-terminal__body b { color: var(--hx-text); font-weight: 500; }
.hx-terminal__body i { font-style: normal; color: var(--hx-accent); }
.hx-terminal__body u { text-decoration: none; color: var(--hx-gold); }
.hx-meter { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--hx-raised); overflow: hidden; }
.hx-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--hx-deep), var(--hx-accent)); border-radius: 3px; }

/* Quote */
.hx-quote { margin: 0; padding: var(--hx-space-6); background: var(--hx-panel); border: var(--hx-border); border-radius: var(--hx-radius-lg); }
.hx-quote blockquote { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.hx-quote figcaption { display: flex; align-items: center; gap: var(--hx-space-3); margin-top: var(--hx-space-5); font-size: var(--hx-text-small); color: var(--hx-dim); }
.hx-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--hx-raised); border: 1px solid var(--hx-accent-line); display: grid; place-items: center; font: 500 12px/1 var(--hx-mono); color: var(--hx-accent); }

/* Tabs */
.hx-tabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--hx-radius-pill); background: var(--hx-panel); border: var(--hx-border); max-width: 100%; }
.hx-tabs button { border: 0; background: transparent; color: var(--hx-dim); font: 500 13px/1 var(--hx-sans); padding: 9px 16px; border-radius: var(--hx-radius-pill); cursor: pointer; white-space: nowrap; }
.hx-tabs button[aria-selected="true"] { background: var(--hx-hover); color: var(--hx-text); box-shadow: 0 0 0 1px var(--hx-line-bright); }

/* Pricing */
.hx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hx-space-4); align-items: stretch; }
@media (max-width: 900px) { .hx-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.hx-plan { display: flex; flex-direction: column; gap: var(--hx-space-5); padding: var(--hx-space-6); background: var(--hx-panel); border: var(--hx-border); border-radius: var(--hx-radius-lg); }
.hx-plan--featured { border-color: transparent; box-shadow: var(--hx-shadow-lit); background-image: var(--hx-glow-low); }
.hx-plan__head { display: flex; justify-content: space-between; align-items: center; gap: var(--hx-space-3); }
.hx-plan__price { display: flex; align-items: baseline; gap: 6px; }
.hx-plan__amount { font-size: 44px; font-weight: 500; letter-spacing: var(--hx-track-tight); line-height: 1; }
.hx-plan__per { color: var(--hx-dim); font-size: var(--hx-text-small); }
.hx-plan p { margin: 0; color: var(--hx-dim); }
.hx-plan ul { list-style: none; margin: 0; padding: var(--hx-space-5) 0 0; border-top: var(--hx-border); display: grid; gap: 10px; flex: 1; }
.hx-plan li { display: flex; gap: 10px; font-size: 14px; }
.hx-plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border: 1.5px solid var(--hx-accent); transform: rotate(45deg); }

/* Table */
.hx-table-wrap { overflow-x: auto; border: var(--hx-border); border-radius: var(--hx-radius-lg); }
.hx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.hx-table th, .hx-table td { padding: 14px 18px; text-align: left; border-bottom: var(--hx-border); }
.hx-table thead th { font: 500 12px/1.4 var(--hx-mono); color: var(--hx-dim); text-transform: uppercase; letter-spacing: .06em; background: var(--hx-panel); }
.hx-table tbody tr:last-child td { border-bottom: 0; }
.hx-table td:not(:first-child), .hx-table th:not(:first-child) { text-align: center; }
.hx-yes { color: var(--hx-accent); }
.hx-no { color: var(--hx-faint); }

/* FAQ */
.hx-faq { border-top: var(--hx-border); }
.hx-faq details { border-bottom: var(--hx-border); padding: var(--hx-space-5) 0; }
.hx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--hx-space-4); font-size: 17px; font-weight: 500; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; font-family: var(--hx-mono); color: var(--hx-accent); }
.hx-faq details[open] summary::after { content: "\2212"; }
.hx-faq p { margin: var(--hx-space-3) 0 0; color: var(--hx-dim); max-width: 620px; }

/* Forms */
.hx-auth { width: 100%; max-width: 420px; margin: 0 auto; padding: var(--hx-space-6); background: var(--hx-panel); border: var(--hx-border); border-radius: var(--hx-radius-lg); box-shadow: var(--hx-shadow-card); }
.hx-form { display: grid; gap: var(--hx-space-4); }
.hx-field { display: grid; gap: 6px; }
.hx-label { font-size: var(--hx-text-small); font-weight: 500; }
.hx-input, .hx-select { width: 100%; height: 42px; padding: 0 14px; background: var(--hx-void); color: var(--hx-text); border: 1px solid var(--hx-line-bright); border-radius: var(--hx-radius); font: 400 15px/1 var(--hx-sans); }
.hx-input::placeholder { color: var(--hx-faint); }
.hx-input:focus, .hx-select:focus { outline: none; border-color: var(--hx-iris-sky); box-shadow: 0 0 0 3px rgba(156, 200, 255, .15); }
.hx-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hx-dim) 50%), linear-gradient(135deg, var(--hx-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.hx-hint { font-size: 12px; color: var(--hx-faint); }
.hx-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--hx-text-small); color: var(--hx-dim); }
.hx-check input { accent-color: var(--hx-accent); margin-top: 3px; }
.hx-or { display: flex; align-items: center; gap: var(--hx-space-3); font: 500 11px/1 var(--hx-mono); color: var(--hx-faint); text-transform: uppercase; letter-spacing: .08em; }
.hx-or::before, .hx-or::after { content: ""; flex: 1; height: 1px; background: var(--hx-line); }
.hx-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hx-space-2); }
.hx-choice label { display: grid; place-items: center; padding: 10px 6px; border: 1px solid var(--hx-line-bright); border-radius: var(--hx-radius); font-size: var(--hx-text-small); color: var(--hx-dim); cursor: pointer; text-align: center; }
.hx-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hx-choice input:checked + label { border-color: var(--hx-accent-line); color: var(--hx-text); background: var(--hx-hover); }

/* Article */
.hx-article { font-size: 17px; line-height: 1.75; color: var(--hx-dim); }
.hx-article strong { color: var(--hx-text); }
.hx-article h2 { margin: var(--hx-space-7) 0 var(--hx-space-3); font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; color: var(--hx-text); }
.hx-article p { margin: 0 0 var(--hx-space-5); }
.hx-article a { color: var(--hx-text); border-bottom: 1px solid var(--hx-iris-sky); }
.hx-article code { font: 400 .88em/1 var(--hx-mono); padding: 2px 6px; border-radius: 4px; background: var(--hx-raised); color: var(--hx-text); border: var(--hx-border); }
.hx-article blockquote { margin: var(--hx-space-6) 0; padding: 0 0 0 var(--hx-space-5); border-left: 2px solid var(--hx-iris-sky); font-size: 21px; line-height: 1.5; color: var(--hx-text); }
.hx-article ul { padding-left: 0; list-style: none; display: grid; gap: var(--hx-space-2); margin: 0 0 var(--hx-space-5); }
.hx-article ul li { display: flex; gap: var(--hx-space-3); }
.hx-article ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 12px; border: 1.5px solid var(--hx-accent); transform: rotate(45deg); }
.hx-byline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--hx-space-3); margin-top: var(--hx-space-5); font-size: var(--hx-text-small); color: var(--hx-dim); }
.hx-figure { margin: var(--hx-space-7) auto; border: var(--hx-border); border-radius: var(--hx-radius-lg); background: var(--hx-grid), var(--hx-panel); background-size: var(--hx-grid-size), auto; }
.hx-figure figcaption { padding: var(--hx-space-3) var(--hx-space-5); border-top: var(--hx-border); font: 400 12px/1.5 var(--hx-mono); color: var(--hx-faint); }

/* CTA */
.hx-cta { position: relative; padding: var(--hx-space-8) var(--hx-space-5); border: var(--hx-border); border-radius: var(--hx-radius-lg); background: var(--hx-glow-low), var(--hx-panel); text-align: center; overflow: hidden; }
.hx-cta .hx-lead { margin: var(--hx-space-4) auto 0; }
.hx-cta .hx-hero__actions { margin-top: var(--hx-space-6); }

/* Footer */
.hx-footer { margin-top: var(--hx-space-9); border-top: var(--hx-border); padding: var(--hx-space-7) 0 var(--hx-space-6); font-size: 14px; color: var(--hx-dim); }
.hx-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--hx-space-6); }
.hx-footer__grid h4 { margin: 0 0 var(--hx-space-3); font: 500 12px/1 var(--hx-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--hx-faint); }
.hx-footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hx-footer__grid a:hover { color: var(--hx-text); }
.hx-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--hx-space-3); margin-top: var(--hx-space-7); padding-top: var(--hx-space-5); border-top: var(--hx-border); font: 400 12px/1.5 var(--hx-mono); color: var(--hx-faint); }
@media (max-width: 760px) { .hx-footer__grid { grid-template-columns: 1fr 1fr; } .hx-footer__grid > :first-child { grid-column: 1 / -1; } }
