/* ════════════════════════════════════════════════════════════════
   TK FLUX — Command Center Homepage
   Self-contained styling layered on top of /styles/seo.css.
   Palette per directive: executive command center, dark + technical.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #020817;
  --bg-2: #0f172a;
  --bg-3: #131f38;
  --surface: #0f172a;
  --line: #1e293b;
  --line-soft: #243049;
  --primary: #3b82f6;
  --secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --white: #ffffff;
  --cream: #f8fafc;
  --text: #cbd5e1;
  --muted: #94a3b8;
  /* keep legacy names used by seo.css header/footer in sync */
  --gold: #3b82f6;
  --gold-soft: #06b6d4;
}

body { background: var(--bg); }

/* mission-control backdrop: engineering grid + a single restrained glow */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(900px 480px at 88% -10%, rgba(59,130,246,.07), transparent 58%),
    linear-gradient(rgba(148,163,184,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.045) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
}

.mono { font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* ── Status pill ──────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.3);
  color: #6ee7b7; border-radius: 2px; padding: 6px 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ════════ HERO ════════ */
.home-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); position: relative; }
.home-hero .grid {
  display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center;
}
@media (min-width: 1000px){
  .home-hero .grid { grid-template-columns: 1.02fr 1.1fr; gap: 52px; }
}
.hero-eyebrow { color: var(--secondary); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; margin: 18px 0 16px; }
.home-hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.05; margin: 0 0 18px;
  color: var(--white); font-weight: 800; letter-spacing: -.025em; max-width: 16ch;
}
.home-hero h1 .grad {
  background: linear-gradient(95deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero .lede { font-size: clamp(1.02rem, 1.9vw, 1.22rem); color: var(--text); max-width: 58ch; margin: 0 0 24px; line-height: 1.6; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.trust-row li {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 2px; padding: 7px 12px; font-size: .8rem; font-weight: 600; color: var(--cream);
}
.trust-row li svg { width: 14px; height: 14px; color: var(--success); flex: none; }

/* hero authority statement — executive positioning line above the CTAs */
.hero-authority {
  margin: 0 0 26px; max-width: 60ch; font-size: .98rem; line-height: 1.6;
  color: var(--muted); border-left: 2px solid var(--primary); padding-left: 14px;
}
.hero-authority strong { color: var(--cream); font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 2px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #2f6fe0; color: #fff; }
.btn-ghost { background: rgba(148,163,184,.05); color: var(--cream); border-color: var(--line-soft); }
.btn-ghost:hover { border-color: var(--secondary); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ── Live dashboard panel (hero right) ── */
.panel {
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(8,15,33,.95));
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 40px 80px -44px rgba(0,0,0,.85); overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: rgba(2,8,23,.6);
}
.panel-bar .title { font-size: .82rem; font-weight: 700; color: var(--cream); letter-spacing: .02em; }
.panel-bar .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; color: var(--secondary); text-transform: uppercase;
}
.panel-bar .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); animation: ping 2s infinite; }
.panel-bar .clock { font-size: .72rem; color: var(--muted); }
.dotrow { display: flex; gap: 6px; }
.dotrow i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dotrow i:nth-child(1){ background:#f43f5e; } .dotrow i:nth-child(2){ background:#f59e0b; } .dotrow i:nth-child(3){ background:#10b981; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (min-width: 540px){ .metric-grid { grid-template-columns: repeat(3, 1fr); } }
.metric {
  background: var(--surface); padding: 16px 15px; position: relative;
}
.metric .k { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.metric .v { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 700; color: var(--white); letter-spacing: -.01em; line-height: 1.15; margin-top: 7px; font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; }
.metric .d { font-size: .7rem; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-family: ui-monospace, monospace; }
.metric .d.up { color: var(--success); }
.metric .d.cy { color: var(--secondary); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-top: 9px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--primary), rgba(59,130,246,.25)); border-radius: 1px; min-height: 2px; }

/* ════════ Section scaffolding ════════ */
.sec { padding: 70px 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 0 38px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--secondary); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: .74rem; margin: 0 0 12px; }
.sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--white); margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.sec .sub { font-size: 1.05rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Problem cards ── */
.prob-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px){ .prob-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .prob-grid { grid-template-columns: repeat(4,1fr); } }
.prob {
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 20px 18px;
  transition: .16s ease; position: relative; overflow: hidden;
}
.prob:hover { border-color: rgba(244,63,94,.4); transform: translateY(-2px); }
.prob .ic { width: 38px; height: 38px; border-radius: 2px; display: grid; place-items: center; background: rgba(244,63,94,.1); color: var(--danger); margin-bottom: 14px; }
.prob .ic svg { width: 19px; height: 19px; }
.prob h3 { font-size: 1.02rem; color: var(--white); margin: 0 0 7px; font-weight: 700; }
.prob p { font-size: .89rem; color: var(--muted); margin: 0; line-height: 1.55; }
.prob .tag { position: absolute; top: 15px; right: 15px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; color: var(--danger); background: rgba(244,63,94,.1); padding: 3px 7px; border-radius: 3px; font-family: ui-monospace, monospace; }

/* ── Infrastructure modules ── */
.mod-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px){ .mod-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .mod-grid { grid-template-columns: repeat(4,1fr); } }
.mod {
  background: linear-gradient(180deg, var(--surface), rgba(8,15,33,.6));
  border: 1px solid var(--line); border-radius: 2px; padding: 20px; display: block; transition: .16s ease;
}
.mod:hover { border-color: var(--primary); transform: translateY(-3px); text-decoration: none; box-shadow: 0 24px 50px -34px rgba(59,130,246,.6); }
.mod .mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mod .ic { width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; background: rgba(59,130,246,.12); color: var(--primary); }
.mod .ic svg { width: 20px; height: 20px; }
.mod .stat-chip { font-size: .6rem; font-weight: 800; letter-spacing: .07em; color: var(--success); background: rgba(16,185,129,.1); padding: 4px 8px; border-radius: 3px; display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; }
.mod .stat-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.mod h3 { font-size: 1.06rem; color: var(--white); margin: 0 0 6px; font-weight: 700; }
.mod p { font-size: .89rem; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.mod .more { font-size: .82rem; font-weight: 700; color: var(--secondary); display: inline-flex; align-items: center; gap: 6px; }

/* ── Operational intelligence hubs ── */
.hub-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px){ .hub-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .hub-grid { grid-template-columns: repeat(4,1fr); } }
.hub { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 18px; display: block; transition: .16s ease; position: relative; }
.hub:hover { border-color: var(--secondary); transform: translateY(-2px); text-decoration: none; }
.hub .hx { position: absolute; top: 14px; right: 16px; font-size: .72rem; color: var(--line-soft); font-weight: 700; }
.hub h3 { font-size: 1rem; color: var(--white); margin: 0 0 7px; font-weight: 700; padding-right: 28px; }
.hub p { font-size: .85rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.hub .more { font-size: .78rem; font-weight: 700; color: var(--secondary); }

/* ── National coverage grid ── */
.geo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 620px){ .geo-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px){ .geo-grid { grid-template-columns: repeat(7,1fr); } }
.geo { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 12px 13px; font-size: .85rem; font-weight: 600; color: var(--cream); transition: .16s ease; }
.geo:hover { border-color: var(--primary); color: #fff; text-decoration: none; background: rgba(59,130,246,.06); }
.geo .ab { font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--secondary); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.25); border-radius: 3px; padding: 2px 5px; flex: none; }

/* ── Ecosystem network ── */
.eco-wrap { background: linear-gradient(180deg, rgba(15,23,42,.7), rgba(2,8,23,.4)); border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.eco-svg { width: 100%; height: auto; display: block; }
.eco-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 16px; }
.eco-legend span { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.eco-legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* ── Industry command centers ── */
.ind-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px){ .ind-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .ind-grid { grid-template-columns: repeat(3,1fr); } }
.ind {
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  transition: .16s ease; display: block;
}
.ind:hover { border-color: var(--secondary); transform: translateY(-2px); text-decoration: none; }
.ind .ihead { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: rgba(2,8,23,.5); }
.ind .ihead .ic { width: 28px; height: 28px; border-radius: 3px; display: grid; place-items: center; background: rgba(6,182,212,.12); color: var(--secondary); }
.ind .ihead .ic svg { width: 16px; height: 16px; }
.ind .ihead .name { font-size: .95rem; font-weight: 700; color: var(--white); }
.ind .ihead .badge { margin-left: auto; font-size: .6rem; font-weight: 800; letter-spacing: .08em; color: var(--success); }
.ind .ibody { padding: 16px; }
.ind .row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ind .row:last-child { border-bottom: 0; }
.ind .row .lbl { font-size: .78rem; color: var(--muted); }
.ind .row .val { font-size: .82rem; font-weight: 700; color: var(--cream); font-family: ui-monospace, Menlo, monospace; }
.ind .row .val.up { color: var(--success); }

/* ════════ LIVE SYSTEMS — full command center ════════ */
.cc { background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,8,23,.94)); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: 0 50px 100px -54px rgba(0,0,0,.9); }
.cc-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(2,8,23,.7); flex-wrap: wrap; }
.cc-top .brand { font-weight: 800; color: var(--white); letter-spacing: .04em; font-size: .95rem; }
.cc-top .brand b { color: var(--primary); }
.cc-top .meta { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: .72rem; color: var(--muted); }
.cc-top .meta .ok { color: #6ee7b7; display: inline-flex; gap: 6px; align-items: center; }
.cc-top .meta .ok .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: ping 2.2s infinite; }

.cc-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); }
@media (min-width: 720px){ .cc-tiles { grid-template-columns: repeat(4,1fr); } }
.cc-tile { background: var(--surface); padding: 16px 16px 14px; }
.cc-tile .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cc-tile .v { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-top: 6px; letter-spacing: -.02em; }
.cc-tile .d { font-size: .72rem; font-weight: 700; margin-top: 3px; }
.cc-tile .d.up { color: var(--success); } .cc-tile .d.cy { color: var(--secondary); } .cc-tile .d.am { color: var(--warning); }

.cc-body { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
@media (min-width: 880px){ .cc-body { grid-template-columns: 1.3fr 1fr 1fr; } }
.cc-card { background: var(--surface); padding: 16px 18px; }
.cc-card h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream); margin: 0 0 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cc-card h4 .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }

/* pipeline funnel */
.funnel { display: grid; gap: 9px; }
.funnel .stg { }
.funnel .stg .top { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 5px; }
.funnel .stg .top .nm { color: var(--text); } .funnel .stg .top .ct { color: var(--cream); font-weight: 700; font-family: ui-monospace, monospace; }
.funnel .bar { height: 8px; border-radius: 5px; background: rgba(148,163,184,.12); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* agent activity feed */
.feed { display: grid; gap: 11px; max-height: 230px; overflow: hidden; }
.feed .ev { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; opacity: 0; transform: translateY(6px); animation: feedin .5s forwards; }
@keyframes feedin { to { opacity: 1; transform: none; } }
.feed .ev .ic { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; background: rgba(59,130,246,.12); color: var(--primary); }
.feed .ev .ic svg { width: 13px; height: 13px; }
.feed .ev .tx { color: var(--text); line-height: 1.4; }
.feed .ev .tx b { color: var(--cream); font-weight: 700; }
.feed .ev .tm { margin-left: auto; color: var(--muted); font-size: .68rem; font-family: ui-monospace, monospace; flex: none; }

/* task queue */
.queue { display: grid; gap: 9px; }
.queue .q { display: flex; align-items: center; gap: 10px; font-size: .8rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(2,8,23,.4); }
.queue .q .nm { color: var(--text); }
.queue .q .st { margin-left: auto; font-size: .62rem; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 3px; text-transform: uppercase; font-family: ui-monospace, monospace; }
.st.done { color: var(--success); background: rgba(16,185,129,.1); }
.st.run { color: var(--secondary); background: rgba(6,182,212,.1); }
.st.queued { color: var(--warning); background: rgba(245,158,11,.1); }

/* health gauge + seo bars row */
.cc-foot { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
@media (min-width: 720px){ .cc-foot { grid-template-columns: 1fr 1fr; } }
.gauge { display: flex; align-items: center; gap: 18px; }
.gauge svg { width: 96px; height: 96px; flex: none; }
.gauge .ring-bg { fill: none; stroke: rgba(148,163,184,.14); stroke-width: 10; }
.gauge .ring-fg { fill: none; stroke: url(#hg); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s ease; }
.gauge .score { font-size: 1.7rem; font-weight: 800; color: var(--white); }
.gauge .lbl { font-size: .82rem; color: var(--muted); }
.bars { display: grid; gap: 10px; }
.bars .b .top { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: 4px; }
.bars .b .top .nm { color: var(--text); } .bars .b .top .pc { color: var(--cream); font-weight: 700; font-family: ui-monospace, monospace; }
.bars .b .track { height: 7px; border-radius: 5px; background: rgba(148,163,184,.12); overflow: hidden; }
.bars .b .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--success)); border-radius: 5px; }

/* ── Case studies ── */
.cs-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px){ .cs-grid { grid-template-columns: repeat(3,1fr); } }
.cs { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 22px; display: flex; flex-direction: column; }
.cs .ind-tag { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.cs .blk { margin-bottom: 12px; }
.cs .blk .h { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.cs .blk p { font-size: .88rem; color: var(--text); margin: 0; line-height: 1.5; }
.cs .metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.cs .metrics .m .n { font-size: 1.4rem; font-weight: 800; color: var(--success); letter-spacing: -.02em; }
.cs .metrics .m .c { font-size: .72rem; color: var(--muted); }

/* ── FAQ ── */
.faq-grid { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 2px; background: var(--surface); padding: 2px 20px; transition: border-color .18s; }
.faq details[open] { border-color: var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--white); padding: 17px 0; list-style: none; font-size: .98rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; line-height: 1; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; margin: 0; color: var(--text); line-height: 1.6; font-size: .94rem; }

/* ── Final CTA ── */
.final { padding: 84px 0; text-align: center; border-bottom: 1px solid var(--line); position: relative; }
.final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); font-weight: 800; letter-spacing: -.02em; margin: 0 auto 16px; max-width: 20ch; line-height: 1.1; }
.final p { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin: 0 auto 28px; line-height: 1.6; }
.final .cta-row { justify-content: center; }

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(2,8,23,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; padding: 13px; font-size: .94rem; }
@media (max-width: 760px){
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* ════════ HERO OPERATIONS CONSOLE ════════ */
.console {
  background: linear-gradient(180deg, rgba(15,23,42,.97), rgba(6,12,28,.97));
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  box-shadow: 0 44px 90px -46px rgba(0,0,0,.9);
}
.con-bar { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(2,8,23,.7); }
.con-bar .dotrow i { width: 9px; height: 9px; }
.con-title { font-size: .78rem; font-weight: 700; color: var(--cream); letter-spacing: .01em; }
.con-env { font-size: .58rem; font-weight: 800; letter-spacing: .12em; color: var(--success); border: 1px solid rgba(16,185,129,.4); border-radius: 3px; padding: 2px 6px; font-family: ui-monospace, monospace; }
.con-clock { margin-left: auto; font-size: .72rem; color: var(--muted); }
.con-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: rgba(2,8,23,.4); padding: 0 6px; }
.con-tabs .tab { font-size: .74rem; font-weight: 600; color: var(--muted); padding: 10px 13px; border-bottom: 2px solid transparent; }
.con-tabs .tab.active { color: var(--white); border-bottom-color: var(--primary); }
.con-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (min-width: 480px){ .con-kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); padding: 13px 13px 12px; display: flex; flex-direction: column; gap: 3px; }
.kpi .kl { font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi .kv { font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.kpi .kd { font-size: .62rem; font-weight: 700; font-family: ui-monospace, monospace; }
.kpi .kd.up { color: var(--success); } .kpi .kd.cy { color: var(--secondary); }
.con-main { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
@media (min-width: 560px){ .con-main { grid-template-columns: 1.5fr 1fr; } }
.con-chart { background: var(--surface); padding: 14px; }
.ch-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .72rem; color: var(--cream); font-weight: 700; margin-bottom: 10px; }
.ch-head .muted { font-size: .64rem; font-weight: 500; }
.area { width: 100%; height: 96px; display: block; }
.ch-axis { display: flex; justify-content: space-between; font-size: .58rem; color: var(--muted); margin-top: 6px; }
.con-side { background: var(--surface); padding: 14px; }
.cs-head { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 11px; }
.plrow { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 8px; }
.plrow .nm { font-size: .72rem; color: var(--text); }
.plrow i { display: block; height: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.plrow b { font-size: .72rem; color: var(--cream); text-align: right; font-weight: 700; }
.con-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(2,8,23,.6); font-size: .68rem; color: var(--muted); }
.con-foot .ok { color: #6ee7b7; display: inline-flex; align-items: center; gap: 6px; }
.con-foot .ok .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: ping 2.2s infinite; }
.con-foot .muted { margin-left: auto; }

/* ════════ Command-center extras (row 2 + new panels) ════════ */
.cc-tile .v.mono, .cc-tile .v { font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; font-weight: 700; }
.cc-row2 { border-top: 1px solid var(--line); }
@media (min-width: 880px){ .cc-row2 { grid-template-columns: 1fr 1fr 1fr; } }

.queue .q .qid { color: var(--muted); font-size: .68rem; flex: none; }

/* data table (CRM activity, workflow monitoring) */
.dtable { width: 100%; border-collapse: collapse; font-size: .76rem; }
.dtable th { text-align: left; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.dtable th.r, .dtable td.r { text-align: right; }
.dtable td { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td b { color: var(--cream); font-weight: 700; }
.dtable td.up { color: var(--success); } .dtable td.muted { color: var(--muted); }
.dtable .mono { color: var(--cream); }
.wfs { font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; font-family: ui-monospace, monospace; }
.wfs.ok { color: var(--success); background: rgba(16,185,129,.1); }
.wfs.warn { color: var(--warning); background: rgba(245,158,11,.1); }

/* customer journey tracking */
.journey { display: grid; gap: 7px; }
.jstep { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 11px; border: 1px solid var(--line); border-left: 2px solid var(--secondary); border-radius: 3px; background: rgba(2,8,23,.4); }
.jstep .jn { font-size: .92rem; font-weight: 700; color: var(--white); }
.jstep .jl { grid-row: 2; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.jstep .jc { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .72rem; color: var(--secondary); font-weight: 700; }
.jstep .jc.up { color: var(--success); }
.jstep.last { border-left-color: var(--success); }

/* review generation tracking */
.rev { display: grid; gap: 0; }
.rrow { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rrow .rl { font-size: .76rem; color: var(--text); }
.rrow .rv { font-size: .82rem; font-weight: 700; color: var(--cream); }
.rrow .rv.up { color: var(--success); }
.rspark { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 12px; }
.rspark i { flex: 1; background: linear-gradient(180deg, var(--secondary), rgba(6,182,212,.2)); border-radius: 1px; min-height: 3px; }

/* system health monitoring */
.health { display: grid; gap: 0; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .78rem; }
.hrow .hs { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hrow .hs.ok { background: var(--success); box-shadow: 0 0 8px rgba(16,185,129,.6); }
.hrow .hn { color: var(--text); }
.hrow .hv { margin-left: auto; color: var(--muted); font-size: .72rem; }
.hfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: .68rem; color: var(--muted); }
.hfoot .ok { color: #6ee7b7; display: inline-flex; align-items: center; gap: 6px; }
.hfoot .ok .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .status-pill .dot, .panel-bar .live .dot, .cc-top .meta .ok .dot, .con-foot .ok .dot { animation: none; }
  .feed .ev { animation: none; opacity: 1; transform: none; }
  .btn:hover, .prob:hover, .mod:hover, .ind:hover { transform: none; }
}

/* ════════ MOBILE — intentional small-screen layout ════════ */
@media (max-width: 760px){
  .wrap { padding: 0 16px; }
  .sec { padding: 44px 0; }
  .home-hero { padding: 40px 0 40px; }
  .home-hero .grid { gap: 30px; }
  .sec-head { margin-bottom: 26px; }
  /* full-width, thumb-friendly primary actions */
  .home-hero .cta-row .btn, .final .cta-row .btn { flex: 1 1 100%; padding: 15px 20px; }
  .trust-row { gap: 7px; }
  /* console: tighten chrome, keep readable */
  .con-kpis .kpi { padding: 11px 11px 10px; }
  .con-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .con-tabs::-webkit-scrollbar { display: none; }
  /* command center stacks cleanly */
  .cc-top { gap: 8px; }
  .cc-top .meta { gap: 10px; }
  .cc-card { padding: 15px 15px; }
  .feed { max-height: none; }
  /* larger tap targets on dense rows */
  .queue .q, .geo, .hrow, .rrow { min-height: 44px; }
  .faq summary { padding: 16px 0; }
}
@media (max-width: 420px){
  .con-kpis { grid-template-columns: repeat(2, 1fr); }
  .geo-grid { grid-template-columns: 1fr 1fr; }
}
