/*
Theme Name: Helix Signal Grid
Description: A blue Signal Grid theme for Helix Networks.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: helix-signal-grid
*/

:root {
  color-scheme: dark;
  --bg: #080f1c; --surface: #101c2e; --surface-2: #13243b; --line: #2a405d;
  --ink: #f0f5ff; --muted: #b2c4db; --blue: #75bcff; --cyan: #83eaff; --bright: #267ce8;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 115px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--body); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
::selection { background: #75bcff; color: #071223; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4 { color: var(--ink); font: 700 1.5rem/1.12 var(--display); letter-spacing: -.04em; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.9rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 3.1rem); }
h3 { font-size: clamp(1.16rem, 2vw, 1.48rem); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.hx-wrap { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.hx-skip { position: absolute; z-index: 20; top: 6px; left: 14px; padding: 8px 16px; background: var(--cyan); color: var(--bg); transform: translateY(-150%); }
.hx-skip:focus { transform: translateY(0); }
.hx-header { position: sticky; top: 0; z-index: 10; background: #080f1cf5; border-bottom: 1px solid var(--line); }
.admin-bar .hx-header { top: 32px; }
.hx-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 19px; min-height: 78px; }
.hx-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; font: 600 1.12rem/1 var(--display); letter-spacing: -.045em; }
.hx-brand strong { font-weight: 700; }
.hx-mark { width: 30px; height: 30px; color: var(--cyan); flex: 0 0 auto; }
.custom-logo { display: block; max-width: 180px; max-height: 52px; width: auto; }
.hx-nav { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.35vw, 21px); font-size: .875rem; }
.hx-nav > a, .hx-dropdown > summary { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; text-decoration: none; font-weight: 620; color: var(--muted); white-space: nowrap; }
.hx-nav > a:hover, .hx-nav > a[aria-current], .hx-dropdown[open] > summary, .hx-dropdown > summary:hover { color: var(--ink); }
.hx-dropdown { position: relative; }
.hx-dropdown > summary { list-style: none; }
.hx-dropdown > summary::-webkit-details-marker { display: none; }
.hx-dropdown > summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.hx-dropdown-panel { position: absolute; top: 100%; left: -17px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; min-width: 410px; padding: 10px; background: #101b2d; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 60px #0007; }
.hx-dropdown-panel a { padding: 8px 9px; border-radius: 5px; line-height: 1.3; color: var(--muted); text-decoration: none; }
.hx-dropdown-panel a:hover, .hx-dropdown-panel a:focus-visible { background: var(--surface-2); color: var(--ink); }
.hx-dropdown-panel .hx-dropdown-index { grid-column: 1 / -1; color: var(--cyan); }
.hx-menu-button { display: none; }
.hx-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55em; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; background: #79bdff; color: #07182d; text-decoration: none; font-size: .91rem; font-weight: 750; line-height: 1.3; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.hx-button:hover { background: #a1d5ff; color: #061529; }
.hx-button-outline { border-color: #5477a1; color: var(--ink); background: #11203966; }
.hx-button-outline:hover { background: #172c48; color: var(--ink); border-color: var(--blue); }
.hx-button-sm { min-height: 41px; padding: 8px 12px; font-size: .78rem; }
.hx-header-cta { white-space: nowrap; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hx-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--cyan); font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hx-kicker a { text-decoration: none; color: inherit; }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px #63daff80; }
.hx-hero { position: relative; isolation: isolate; overflow: hidden; background-color: #091220; background-image: radial-gradient(ellipse at 75% 44%, #122850 0, transparent 59%),linear-gradient(90deg, #83baff12 1px, transparent 1px),linear-gradient(#83baff12 1px, transparent 1px); background-size: auto,48px 48px,48px 48px; }
.hx-hero-grid { min-height: 570px; display: grid; align-items: center; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px; padding-block: 65px; }
.hx-hero-copy { z-index: 1; }
.hx-hero h1 { margin-bottom: 22px; font-size: clamp(3rem, 5.45vw, 5.6rem); letter-spacing: -.077em; line-height: 1.01; }
.hx-hero h1 strong { display: inline; color: var(--blue); font-weight: 700; }
.hx-hero-description { max-width: 54ch; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.hx-hero-figure { position: relative; min-height: 355px; margin: 0; overflow: hidden; border: 1px solid #3c5b864e; border-radius: 18px; background: #07111ba1; }
.hx-figure-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg,#6ca5f412 1px,transparent 1px),linear-gradient(#6ca5f412 1px,transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse, #000 32%, #0009 100%); }
.hx-canvas { display: block; position: absolute; width: 100%; height: calc(100% - 42px); top: 0; }
.hx-figure-labels { position: absolute; display: flex; flex-wrap: wrap; gap: 9px 15px; justify-content: center; inset: auto 0 0; border-top: 1px solid #3c5b864e; background: #0c1729ce; padding: 10px 13px; color: #bfd6f7; font-size: .7rem; font-weight: 700; }
.hx-figure-labels span { display: inline-flex; gap: 6px; align-items: center; }
.hx-figure-labels span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.hx-outcome-band { border-block: 1px solid var(--line); background: #101c2e; }
.hx-outcome-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 18px; gap: 13px; color: var(--muted); font-size: .88rem; font-weight: 630; }
.hx-outcome-inner span::before { content: "+"; color: var(--cyan); margin-right: 9px; font-weight: 700; }
.hx-section { padding-block: clamp(48px, 7vw, 94px); }
.hx-section-alt { border-block: 1px solid var(--line); background: #0d1929; }
.hx-section-head { max-width: 730px; margin-bottom: 26px; }
.hx-section-head h2 { margin-bottom: 12px; }
.hx-section-head p:not(.hx-kicker), .hx-subtle { color: var(--muted); }
.hx-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-block: 19px 26px; }
.hx-card { min-width: 0; background: #101c2e; border: 1px solid var(--line); border-radius: 11px; padding: clamp(16px, 2.5vw, 27px); }
.hx-card h2 { font-size: 1.34rem; }
.hx-card h3, .hx-card h2 { margin-bottom: 9px; }
.hx-card p { color: var(--muted); }
.hx-card a { font-weight: 650; }
.hx-card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; color: var(--cyan); background: #1b3656; border-radius: 8px; font-family: var(--display); font-weight: 700; }
.hx-process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 25px 0 0; padding: 0; list-style: none; counter-reset: stage; }
.hx-process li { padding: 13px 0 0; border-top: 2px solid #5086ba; counter-increment: stage; color: var(--muted); font-size: .93rem; }
.hx-process li::before { content: "0" counter(stage); display: block; margin-bottom: 9px; color: var(--cyan); font: 700 .82rem/1 var(--display); }
.hx-process strong { display: block; margin-bottom: 5px; color: var(--ink); font: 700 1.1rem/1.2 var(--display); }
.hx-chiplist { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 9px; }
.hx-chiplist a { display: inline-flex; min-height: 42px; align-items: center; padding: 6px 13px; border-radius: 6px; color: #dceaff; background: #13253d; border: 1px solid var(--line); text-decoration: none; }
.hx-chiplist a:hover { border-color: var(--blue); }
.hx-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(18px, 4.5vw, 58px); align-items: start; }
.hx-page { padding-block: clamp(44px, 7vw, 84px); min-height: 60vh; }
.hx-page-head { padding-bottom: 23px; margin-bottom: 29px; border-bottom: 1px solid var(--line); }
.hx-page-head h1 { margin: 0 0 13px; font-size: clamp(2.6rem, 5.8vw, 5rem); line-height: 1.02; max-width: 20ch; overflow-wrap: anywhere; }
.hx-page-lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); max-width: 65ch; }
.hx-page-content > :where(p, h2, h3, ul:not(.hx-chiplist), ol, blockquote), .hx-prose { max-width: 75ch; }
.hx-page-content > h2 { margin-top: 36px; margin-bottom: 12px; font-size: clamp(1.60rem, 3.3vw, 2.45rem); }
.hx-page-content > h2:first-child { margin-top: 0; }
.hx-page-content > :where(p, ul, ol), .hx-prose p { color: var(--muted); }
.hx-page-content li + li { margin-top: 4px; }
.hx-tail-cta { display: flex; flex-wrap: wrap; gap: 17px; align-items: center; justify-content: space-between; padding: clamp(19px, 4vw, 39px); margin-top: 49px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(ellipse at 100% 2%, #25496e, #111f34 65%); }
.hx-tail-cta h2 { margin-bottom: 0; font-size: clamp(1.55rem, 3.3vw, 2.65rem); }
.hx-pricing-recommended { border-color: #70b8fb; background: linear-gradient(135deg, #172e4c, #101c2e 67%); }
.hx-plan-flag { color: var(--cyan) !important; font-size: .75rem; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.hx-plan-price { display: block; margin-block: 6px 0; color: var(--ink); font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1.2 var(--display); letter-spacing: -.05em; }
.hx-plan-list { color: var(--muted); padding-left: 1.12em; }
.hx-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; margin-block: 15px 24px; }
.hx-table { width: 100%; min-width: 510px; border-collapse: collapse; text-align: left; }
.hx-table caption { padding: 10px 15px; text-align: left; font-weight: 700; }
.hx-table th, .hx-table td { padding: 10px 13px; border-top: 1px solid var(--line); }
.hx-table thead { background: #14243c; }
.hx-table tbody th { font-weight: 650; }
.hx-table td { color: var(--muted); }
.hx-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.hx-filter { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 6px 10px; min-height: 42px; border-radius: 5px; }
.hx-filter[aria-pressed=true] { color: var(--ink); border-color: var(--blue); }
.hx-form { max-width: 900px; background: #101c2e; border: 1px solid var(--line); border-radius: 11px; padding: clamp(16px, 3vw, 34px); }
.hx-form label, .hx-label { display: grid; gap: 5px; color: #e1edff; font-size: .91rem; font-weight: 650; }
.hx-form input:not([type=checkbox]), .hx-form select, .hx-form textarea { width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid #496182; border-radius: 5px; background: #0b1526; color: var(--ink); }
.hx-form textarea { min-height: 108px; }
.hx-form input[type=checkbox] { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--blue); }
.hx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.hx-form .hx-wide { grid-column: 1 / -1; }
.hx-form .hx-consent-label { display: flex; gap: 8px; align-items: start; }
.hx-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.hx-form legend { margin-bottom: 11px; font-weight: 730; }
.hx-honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.hx-form .hx-result { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.hx-message { padding: 12px 16px; border: 1px solid #70b8fb; border-radius: 6px; background: #152c46; }
.hx-calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
.hx-calc .hx-form { max-width: none; }
.hx-metrics { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; align-items: baseline; }
.hx-metrics dt { color: var(--muted); }
.hx-metrics dd { margin: 0; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.hx-chart { margin: 18px 0; }
.hx-chart-row { margin-bottom: 8px; }
.hx-chart-row span { color: var(--muted); font-size: .83rem; }
.hx-chart-track { height: 7px; margin-top: 3px; background: #253853; border-radius: 5px; overflow: hidden; }
.hx-chart-track i { width: 0%; display: block; height: 100%; background: var(--blue); }
.hx-chart-row:nth-child(even) i { background: var(--cyan); }
.hx-architecture { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; margin: 20px 0; list-style: none; gap: 9px; }
.hx-architecture li { padding: 14px; border-top: 2px solid var(--blue); background: var(--surface); color: var(--muted); }
.hx-architecture strong { display: block; color: var(--ink); }
.hx-faq { margin: 11px 0; border: 1px solid var(--line); border-radius: 7px; padding: 10px 13px; }
.hx-faq summary { min-height: 32px; color: var(--ink); font-weight: 700; }
.hx-faq p { color: var(--muted); }
.hx-footer { background: #0b1423; border-top: 1px solid var(--line); margin-top: 10px; }
.hx-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 24px; padding-block: 43px 31px; }
.hx-footer-grid h2 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -.02em; }
.hx-footer-grid a:not(.hx-brand) { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.hx-footer-grid a:hover { color: var(--cyan); }
.hx-footer-intro p { margin-top: 9px; color: var(--muted); }
.hx-footer-bottom { border-top: 1px solid var(--line); padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; }
.hx-text-button { background: none; border: none; padding: 5px; color: var(--blue); text-decoration: underline; }
@media (max-width: 1170px) {
  .hx-wrap { width: min(var(--max), calc(100% - 60px)); }
  .hx-header-inner { gap: 12px; }
  .hx-nav { gap: 8px; font-size: .81rem; }
  .hx-header-cta { font-size: .74rem; }
}
@media (max-width: 1000px) {
  .hx-menu-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; margin-left: auto; }
  .hx-nav { display: none; position: absolute; inset: 100% 0 auto; max-height: 70vh; overflow-y: auto; background: #0d192a; border-bottom: 1px solid var(--line); padding: 10px 30px 17px; }
  .hx-nav.hx-nav-open { display: grid; justify-content: stretch; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .hx-dropdown[open] { grid-column: 1 / -1; }
  .hx-dropdown-panel { position: static; min-width: 0; box-shadow: none; }
  .hx-nav > a, .hx-dropdown > summary { font-size: .96rem; }
  .hx-hero-grid { min-height: 465px; padding-block: 45px; }
  .hx-hero-figure { min-height: 300px; }
}
@media (max-width: 760px) {
  .hx-wrap { width: calc(100% - 42px); }
  .hx-hero-grid, .hx-split, .hx-calc { grid-template-columns: 1fr; }
  .hx-hero-grid { min-height: auto; gap: 24px; padding-block: 39px 26px; }
  .hx-hero-figure { min-height: 258px; }
  .hx-outcome-inner, .hx-card-grid, .hx-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hx-process, .hx-architecture { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hx-header-inner { min-height: 65px; }
}
@media (max-width: 500px) {
  .hx-nav { padding-inline: 21px; }
  .hx-brand { font-size: 1.02rem; }
  .hx-header-cta { display: none; }
  .hx-hero h1 { font-size: clamp(2.5rem, 11vw, 3.35rem); }
  .hx-card-grid, .hx-form-grid { grid-template-columns: 1fr; }
  .hx-section { padding-block: 42px; }
  .hx-outcome-inner, .hx-footer-grid { gap: 11px; }
  .hx-figure-labels { gap: 5px 9px; }
  .hx-metrics { font-size: .87rem; }
}
@media (max-width: 782px) { .admin-bar .hx-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hx-header { top: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  :root { color-scheme: light; --ink: #000; --muted: #242424; --line: #ccc; --bg: #fff; }
  body { background: #fff; }
  .hx-header,.hx-footer,.hx-skip,.hx-calc button,.hx-calc .hx-actions { display: none !important; }
  .hx-calc, .hx-calc .hx-form, .hx-card { display: block; color: #000; background: #fff; border-color: #ccc; }
}
