/* =====================================================================
   Reliable Telecom — Brand & Design System
   An HCC Digital Operating System
   Palette: near-black / navy foundations, Target-style red accent (#CC0000)
   ===================================================================== */

:root {
  /* Foundations */
  --bg:        #070a12;
  --bg-2:      #0c1424;
  --panel:     #101a30;
  --panel-2:   #0e1626;
  --line:      #1d2b47;
  --line-soft: #16223c;

  /* Text */
  --ink:       #f4f7fc;
  --ink-soft:  #c3cee0;
  --muted:     #8695ad;

  /* Brand accent */
  --red:       #cc0000;
  --red-bright:#ff3b3b;
  --red-deep:  #8f0000;
  --blue:      #3a6bb0;

  /* Utility */
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.75);
  --shadow-sm: 0 10px 30px -12px rgba(0,0,0,.7);
  --maxw:      1180px;
  --nav-h:     72px;

  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(204,0,0,.8); }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,13,22,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--red); border-radius: 2px; margin-top: 4px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); border-radius: 9px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0c1424 url("../img/hero-network.svg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,9,17,.94) 0%, rgba(6,9,17,.7) 46%, rgba(6,9,17,.35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); }
.hero-card { max-width: 720px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 26px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: rgba(204,0,0,.12); border: 1px solid rgba(204,0,0,.4);
  color: #ffb3b3; font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 34px; margin-top: 8px; }
.hero-meta div { min-width: 120px; }
.hero-meta .k { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-meta .v { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

.bg-panel { background:
  linear-gradient(180deg, var(--bg-2), var(--bg)); }
.bg-band  { background:
  radial-gradient(1100px 500px at 80% -10%, rgba(27,58,107,.35), transparent 60%),
  var(--bg); }

/* Cable motif accent on section edge */
.rail { position: relative; }
.rail::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), transparent);
}

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #2b3f66; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(204,0,0,.12); border: 1px solid rgba(204,0,0,.35); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--red-bright); }
.card h3 { color: #fff; }
.card p { margin-bottom: 0; font-size: .98rem; }

/* Split feature block */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-2);
  box-shadow: var(--shadow);
}
.split-media svg { width: 100%; height: auto; display: block; }

.ck { list-style: none; margin: 20px 0 0; padding: 0; }
.ck li { position: relative; padding: 9px 0 9px 32px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.ck li:first-child { border-top: 0; }
.ck li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(204,0,0,.15); border: 1px solid var(--red);
}
.ck li::after {
  content: ""; position: absolute; left: 6px; top: 18px; width: 5px; height: 9px;
  border: solid var(--red-bright); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Step / process */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.step .n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: var(--red); color: #fff; counter-increment: step;
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 6px; color: #fff; }
.step p { margin-bottom: 0; font-size: .97rem; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.stat .k { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: #fff; }
.stat .v { font-size: .85rem; color: var(--muted); }

/* CTA band */
.cta {
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(30px, 5vw, 56px);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(204,0,0,.22), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
}
.cta h2 { margin-bottom: 10px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.02);
}

/* Notice / disclosure */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px;
  padding: 16px 18px; background: rgba(204,0,0,.06); color: var(--ink-soft); font-size: .95rem;
}
.notice strong { color: #fff; }

/* ---------- Contact / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #0a1120; color: var(--ink); font-family: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.info-list .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(204,0,0,.12);
  border: 1px solid rgba(204,0,0,.35); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; stroke: var(--red-bright); }
.info-list .t { font-weight: 700; color: #fff; }
.info-list .d { font-size: .92rem; color: var(--muted); }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 22px; }
.post-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); transition: border-color .18s ease, transform .18s ease;
}
.post-card:hover { border-color: #2b3f66; transform: translateY(-3px); }
.post-card .thumb { align-self: stretch; min-height: 150px; }
.post-card .thumb svg { width: 100%; height: 100%; }
.post-card .body { padding: 22px 24px 22px 0; }
.post-card h3 { color: #fff; margin-bottom: 6px; }
.post-card a { color: inherit; }
.post-meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin-top: 2em; }
.article p, .article li { color: var(--ink-soft); }
.article ul, .article ol { padding-left: 1.2em; margin-bottom: 1.2em; }
.article li { margin-bottom: .5em; }
.article .kicker { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.article blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red);
  color: #fff; font-size: 1.15rem; font-style: italic;
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); font-weight: 500; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 34ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: var(--muted);
}
.footer-credit { font-weight: 600; color: var(--ink-soft); }
.footer-credit .red { color: var(--red-bright); }

/* ---------- Assistant widget ---------- */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 200; font-family: var(--sans); }
.assistant-fab {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px;
  background: var(--red); color: #fff; border: 0; cursor: pointer; font-weight: 700; font-size: .95rem;
  box-shadow: 0 16px 34px -12px rgba(204,0,0,.85);
}
.assistant-fab:hover { background: var(--red-bright); }
.assistant-fab svg { width: 20px; height: 20px; }
.assistant-panel {
  position: absolute; right: 0; bottom: 64px; width: min(360px, calc(100vw - 40px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden;
}
.assistant-panel[hidden] { display: none; }
.assistant-head { padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.assistant-head .title { display: flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; }
.assistant-head .status { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.assistant-body { padding: 16px 18px; }
.assistant-body p { font-size: .92rem; margin-bottom: 12px; }
.assistant-body .field { margin-bottom: 12px; }
.assistant-close {
  position: absolute; top: 12px; right: 12px; background: transparent; border: 0; color: var(--muted);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.assistant-close:hover { color: #fff; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Reveal (progressive enhancement, JS-safe) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  #rt-path, [attributeName] { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(9,13,22,.98); border-bottom: 1px solid var(--line); padding: 12px 18px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 8px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-cta .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb { min-height: 120px; }
  .post-card .body { padding: 4px 22px 24px; }
  .info-list li { grid-template-columns: 36px 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px 24px; }
}
