/* King Network Services — site styles */
:root {
  --brand: #010180;
  --ink: #1e2227;
  --ink-2: #2b3036;
  --ink-3: #353b42;
  --line-dark: rgba(255, 255, 255, 0.10);
  --signal: #010180;
  --signal-ink: #ffffff;
  --paper: #ffffff;
  --paper-2: #f2f3f5;
  --text: #1b1f24;
  --muted: #5b626b;
  --line: #dfe1e5;
  --blue: #1515b0;
  --radius: 10px;
  --wrap: 1160px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(1, 1, 128, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand-name { font: 700 1.35rem/1 var(--display); letter-spacing: .03em; }
.brand-name small { display: block; font: 500 .66rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #b4bcc6; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: #eef0fa; }
.nav a.btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--brand); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--signal); color: var(--signal-ink) !important;
  font-weight: 600; text-decoration: none; border-radius: 6px;
  padding: 12px 22px; border: 2px solid var(--signal); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(1,1,128,.22); }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.28); }
.btn.ghost:hover { border-color: #fff; box-shadow: none; }
.nav a.btn { padding: 8px 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 500px at 85% 20%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero p.lede { color: #b9bfc7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; }
.hero.sub .wrap { padding-top: 76px; padding-bottom: 80px; }
.hero h1 em { font-style: normal; color: var(--signal); }

/* tower signal animation */
.arc { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: pulse 3.2s ease-out infinite; }
.arc.a2 { animation-delay: .5s; } .arc.a3 { animation-delay: 1s; }
@keyframes pulse { 0% { opacity: 0; } 20% { opacity: .95; } 70% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .arc { animation: none; opacity: .7; } }

/* ---------- stats band ---------- */
.stats { background: var(--ink-3); color: #fff; border-top: 1px solid var(--line-dark); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 700 2.1rem/1 var(--display); color: var(--signal); margin-bottom: 6px; }
.stat span { font-size: .9rem; color: #b9bfc7; }

/* ---------- sections ---------- */
section { padding: 96px 0; scroll-margin-top: 76px; }
.product { scroll-margin-top: 90px; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: #fff; }
section.dark .lede, section.dark p { color: #b9bfc7; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* division cards */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.division {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.division:hover { border-color: var(--signal); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,23,36,.10); }
.division .tag { font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.division h3 { font-size: 2rem; }
.division ul { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 8px; }
.division li { display: flex; gap: 10px; color: var(--muted); }
.division li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .62em; background: var(--signal); border-radius: 2px; }
.division .more { margin-top: auto; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.division .more::after { content: "→"; transition: transform .2s; }
.division:hover .more::after { transform: translateX(4px); }
.division .icon { width: 52px; height: 52px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; margin-bottom: 22px; }
.division .icon svg { width: 28px; height: 28px; }

/* service grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
section.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.card .num { font: 700 .85rem/1 var(--display); letter-spacing: .1em; color: var(--signal); margin-bottom: 14px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
section.dark .card h3 { color: #fff; }

/* generations strip */
.gens { display: flex; gap: 10px; margin: 18px 0 4px; }
.gens span { font: 700 1.05rem/1 var(--display); padding: 8px 12px; border-radius: 6px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.gens span:last-child { background: var(--ink); color: var(--signal); border-color: var(--ink); }

/* fiber path diagram */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem/1 var(--display); background: var(--brand); color: #fff;
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h4 { font-size: 1.25rem; margin: 6px 0 4px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
.diagram { background: var(--ink); border-radius: var(--radius); padding: 24px; }

/* tower management */
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.feature-list li { display: flex; gap: 12px; }
.feature-list li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.callout {
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.callout h3 { color: #fff; font-size: 1.8rem; }
.callout .big { font: 700 3.4rem/1 var(--display); color: var(--signal); margin: 10px 0 6px; }

/* licenses */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.cred small { display: block; font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cred b { display: block; font: 600 1.15rem/1.2 var(--display); }
.cred span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.assoc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.assoc span { font-size: .85rem; padding: 6px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }

/* products */
.products { display: grid; gap: 24px; }
.product {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper);
}
.product .visual { background: var(--ink); display: grid; place-items: center; padding: 32px; position: relative; }
.product .visual svg { width: 100%; max-width: 220px; }
.product .body { padding: 36px; }
.product .status { display: inline-block; font: 600 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: #e8f3ea; color: #23703a; margin-bottom: 14px; }
.product .status.dev { background: #fff3dc; color: #8a5a00; }
.product h3 { font-size: 2.1rem; }
.product ul { margin: 14px 0 22px; padding-left: 20px; color: var(--muted); }
.product ul li { margin-bottom: 4px; }
.product .links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.product .links a { text-decoration: none; }
.product .links a:hover { text-decoration: underline; }
.product.next { grid-template-columns: 1fr; border-style: dashed; background: transparent; }
.product.next .body { text-align: center; padding: 44px; }
.product.next p { color: var(--muted); max-width: 56ch; margin: 0 auto; }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.contact-card svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.contact-card small { display: block; color: #9aa1aa; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.contact-card a, .contact-card div { color: #fff; text-decoration: none; font-size: 1.05rem; }

/* vendor box */
.note { border-left: 4px solid var(--signal); background: var(--paper); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.note code { font-size: .88rem; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }

/* footer */
.site-footer { background: #121417; color: #9aa1aa; padding: 48px 0 32px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: #b9bfc7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 22px; margin-top: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-art { justify-self: start; max-width: 300px; order: -1; }
  .divisions, .split, .contact { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .product { grid-template-columns: 1fr; }
  .product .visual { padding: 28px; }
  .product .visual svg { max-width: 160px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: 0 12px 24px rgba(1,1,128,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.btn { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .grid-3, .creds, .feature-list { grid-template-columns: 1fr; }
  .division, .product .body, .callout { padding: 26px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px; }
  .stat b { font-size: 1.7rem; }
  .gens { flex-wrap: wrap; }
  .hero-art { display: none; }
}

/* featured full-width service card (drone) */
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; background: var(--ink); border-color: var(--ink); scroll-margin-top: 90px; }
.card.feature h3 { color: #fff; }
.card.feature p { color: #b9bfc7; max-width: 70ch; }
.creds.two { grid-template-columns: repeat(2, minmax(0, 320px)); }
@media (max-width: 760px) {
  .card.feature { grid-template-columns: 1fr; }
  .card.feature svg { max-width: 220px; }
  .creds.two { grid-template-columns: 1fr; }
}

.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
@media (max-width: 600px) { .brand img { height: 42px; } }
.product .visual.logo img { width: 100%; max-width: 230px; height: auto; }
@media (max-width: 960px) { .product .visual.logo img { max-width: 200px; } }

/* graphite theme: on dark surfaces the accent becomes silver */
.hero, .stats, section.dark, .card.feature, .diagram, .site-footer, .callout, .division .icon {
  --signal: #c3c9d1; --signal-ink: #1e2227;
}
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.callout p { color: #b9bfc7; }
.feature-list li svg { color: var(--brand); }
.hero h1 em { color: #c3c9d1; }
