/* Northbitz — deep indigo, violet signal, hex-grid network. Dark throughout. */

:root {
  --bg: #051a1c;
  --bg-2: #072226;
  --nav: #0a2b2f;
  --panel: #0c2a2e;
  --line: #174a4f;
  --violet: #0e9e96;
  --violet-2: #3fd1c4;
  --text: #ecfbfa;
  --muted: #97bfbd;
  --green: #2bd6a0;
  --red: #ff3b5c;
  --head: 'Outfit', 'Avenir Next', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: .98rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 600px; }
.center .lead { margin-inline: auto; }

/* Announcement */
.announce { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .45rem 1rem; background: var(--violet); color: #fff; font-size: .82rem; }
.announce__arrow { opacity: .6; font-size: 1.1rem; }
.announce__btn { padding: .25rem .7rem; border: 1.5px solid var(--green); color: #fff; font-weight: 600; font-size: .78rem; background: rgba(13, 10, 34, .35); }
.announce__btn:hover { background: var(--green); color: var(--bg); }

/* Header */
.site-header { background: var(--nav); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.utility { display: flex; justify-content: flex-end; gap: 1rem; padding-top: .5rem; font-size: .72rem; }
.utility a { color: var(--muted); }
.utility .ir { color: #ff8a9e; }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0 .9rem; gap: 2rem; }
.brand { color: var(--text); display: flex; flex-direction: column; }
.brand:hover { color: var(--text); }
.brand__word { font-family: var(--head); font-weight: 500; letter-spacing: .32em; font-size: 1.2rem; display: inline-flex; align-items: center; }
.brand__word.small { font-size: .9rem; }
.brand__o { color: var(--green); display: inline-flex; width: 1.05em; margin-right: .32em; }
.brand__o svg { width: 100%; }
.brand small { font-size: .58rem; letter-spacing: .06em; color: var(--muted); margin-top: .1rem; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { color: #d3ebe9; font-size: .92rem; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: #fff; box-shadow: 0 2px 0 var(--violet-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; font: 500 .9rem var(--sans); color: #fff; background: var(--violet); border: 0; border-radius: 3px; cursor: pointer; }
.btn:hover { background: var(--violet-2); color: #fff; }
.btn i { display: inline-grid; place-items: center; width: 18px; height: 18px; background: rgba(13, 10, 34, .55); font-style: normal; font-size: .8rem; border-radius: 2px; }
.btn--small { padding: .5rem .9rem; font-size: .84rem; }
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--panel); }
.btn--red { background: var(--red); }
.btn--red:hover { background: #ff5c77; }

/* Hero with hex field */
.hero { position: relative; overflow: hidden; min-height: 470px; display: flex; align-items: center; background: radial-gradient(ellipse 60% 80% at 75% 50%, #0b3a3e 0%, var(--bg) 70%); }
.hero .container { position: relative; z-index: 2; }
.hero__copy { max-width: 470px; padding: 4rem 0; }
.hero__copy p { color: #cde6e4; }
.hexfield { position: absolute; z-index: 1; right: -18%; top: -30%; width: 95%; height: 170%; perspective: 1100px; pointer-events: none; mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
.hexfield svg { width: 100%; height: 100%; transform: rotateX(58deg) rotateZ(-14deg) scale(1.25); transform-origin: 50% 60%; }
.hx-traces polyline { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-opacity: .85; }
.hx-glow { fill: none; stroke: #fff; stroke-width: 2.4; }
.page-hero { min-height: 300px; }
.page-hero .hero__copy { padding: 3rem 0; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); margin: 2.5rem 0 2.5rem; flex-wrap: wrap; }
.tab { background: none; border: 0; padding: .8rem .4rem; font: 600 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.is-on { color: var(--text); border-color: var(--violet); }
.tabpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; text-align: left; }
.tabpanel[hidden] { display: none; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding: .45rem 0 .45rem 1.4rem; position: relative; color: #cde6e4; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; background: var(--violet-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Terminal */
.terminal { background: #031214; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: .76rem; line-height: 1.8; overflow: hidden; }
.terminal__bar { display: flex; justify-content: space-between; padding: .5rem .9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.terminal__body { padding: .8rem 1rem; white-space: pre; overflow-x: auto; color: #c9e5e2; }
.t-dim { color: #4d7a78; } .t-v { color: var(--violet-2); } .t-r { color: var(--red); } .t-g { color: var(--green); } .t-a { color: #ffc861; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metrics div { background: var(--bg); padding: 1.8rem 1.5rem; }
.metrics b { display: block; font-family: var(--head); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.metrics span { color: var(--muted); font-size: .85rem; }

/* Cards */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem; }
.card small { font-family: var(--mono); color: var(--violet-2); font-size: .72rem; }
.card h3 { margin-top: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: .92rem; }
.card--red { border-color: #5a1f3a; background: linear-gradient(135deg, #2a1020, var(--panel)); }
.card--red small { color: #ff8a9e; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }

.log div { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; }
.log time { color: var(--violet-2); }
.log span { color: var(--muted); }

.adv { display: grid; grid-template-columns: 130px 1fr 90px; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.adv:last-child { border-bottom: 1px solid var(--line); }
.adv code { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.sev { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; text-align: center; padding: .2rem .5rem; border-radius: 2px; }
.sev--critical { background: rgba(255, 59, 92, .15); color: #ff8a9e; }
.sev--high { background: rgba(255, 200, 97, .12); color: #ffc861; }
.sev--info { background: rgba(63, 209, 196, .15); color: var(--violet-2); }

.service { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2.2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.service h2 { font-size: 1.6rem; }
.service p { color: #cde6e4; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .76rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.service--ir { border: 1px solid #5a1f3a; background: linear-gradient(90deg, rgba(255, 59, 92, .08), transparent 60%); padding: 2.2rem 1.6rem; }

.cta-ir { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 2.4rem; border: 1px solid #5a1f3a; background: linear-gradient(120deg, #2a1020, var(--bg-2)); border-radius: 6px; }
.cta-ir h2 { margin: 0; }
.cta-ir a.phone { font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .85rem; font: inherit; color: var(--text); background: #041517; border: 1px solid var(--line); border-radius: 3px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-2); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { display: block; color: #ff8a9e; font-size: .8rem; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 3px; margin-bottom: 1rem; border: 1px solid rgba(43, 214, 160, .4); background: rgba(43, 214, 160, .07); }
.notice--error { border-color: rgba(255, 59, 92, .4); background: rgba(255, 59, 92, .07); }

/* Photo slots */
.photo { width: 100%; object-fit: cover; border-radius: 6px; }
.photo-slot { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; padding: 1rem; border-radius: 6px; border: 1px dashed var(--line); background: radial-gradient(circle at 70% 30%, rgba(14, 158, 150, .25), transparent 60%), var(--panel); }
.photo-slot__label { font-size: .82rem; }
.photo-slot__label::before { content: '⬡ photo  '; color: var(--violet-2); font-family: var(--mono); font-size: .7rem; }
.photo-slot__file { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

/* Footer */
.site-footer { background: #031214; border-top: 1px solid var(--line); padding: 2rem 0; font-size: .82rem; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fine { margin-top: 1rem; font-size: .72rem; color: #5c8583; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 1.2rem; background: var(--nav); }
  .site-nav.is-open { display: flex; }
  .announce > span:not(.announce__arrow) { display: none; }
  .tabpanel, .split, .service, .grid--2 { grid-template-columns: 1fr; }
  .grid--3, .metrics { grid-template-columns: 1fr 1fr; }
  .hexfield { opacity: .45; width: 140%; right: -50%; }
  .adv { grid-template-columns: 1fr auto; }
  .adv code { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid--3, .metrics, .form-row { grid-template-columns: 1fr; }
}

.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }

/* Low-resolution stock photo: shown no larger than its native width */
.small-photo { max-width: 612px; width: 100%; justify-self: center; }

/* Lodestar console */
.console { background: #041416; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.console__bar { display: flex; justify-content: space-between; padding: .6rem 1rem; border-bottom: 1px solid var(--line); font: .72rem var(--mono); color: var(--muted); }
.console__body { display: grid; grid-template-columns: 1.55fr 1fr; }
.console__graph { width: 100%; height: auto; display: block; padding: 1rem; border-right: 1px solid var(--line); }
.lnode rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.lnode__label { fill: var(--text); font: 500 13px var(--sans); }
.lnode__sub { fill: var(--muted); font: 11px var(--mono); }
.node--red rect { stroke: var(--red); fill: #24101a; }
.node--warn rect { stroke: #ffc861; }
.node--safe rect { stroke: var(--violet-2); }
.node--go rect { stroke: var(--green); }
.ledge path { fill: none; stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
.ledge--red path { stroke: var(--red); }
.ledge--go path { stroke: var(--green); stroke-width: 2.5; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.radar { fill: none; stroke: var(--violet-2); stroke-width: 1.5; transform-origin: 590px 92px; animation: radar 2.4s ease-out infinite; }
.radar--2 { animation-delay: 1.2s; }
@keyframes radar { from { transform: scale(.9); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.paused rect { fill: var(--green); }
.paused text { fill: #041416; font: 600 10px var(--mono); text-anchor: middle; letter-spacing: .08em; }
.feed { list-style: none; margin: 0; padding: .6rem 0; font-size: .82rem; }
.feed li { display: grid; grid-template-columns: 64px 44px 1fr; gap: .6rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--line); color: #cde6e4; }
.feed li:last-child { border-bottom: 0; background: rgba(43, 214, 160, .06); }
.feed time { font: .72rem var(--mono); color: var(--muted); }
.sev--ok { background: rgba(43, 214, 160, .15); color: var(--green); }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ledge path, .radar, .feed li { animation: none; } }

.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps4 div { background: var(--bg); padding: 1.6rem 1.4rem; }
.steps4 small { font: .72rem var(--mono); color: var(--violet-2); }
.steps4 h3 { margin: 1rem 0 .4rem; }
.steps4 p { color: var(--muted); font-size: .92rem; margin: 0; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.lists h3 { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .console__body { grid-template-columns: 1fr; }
  .console__graph { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps4, .lists { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .steps4, .lists { grid-template-columns: 1fr; } }
