/* QMC4.com Design System & Extension Styles */
:root {
  --ink: #070F34;
  --ink-2: #0A1240;
  --surface: #0E1548;
  --surface-2: #091038;
  --line: rgba(150, 175, 255, .14);
  --hair: rgba(150, 175, 255, .24);
  --text: #EAEEFF;
  --muted: #9FB0E0;
  --muted-2: #8090C4;
  --red: #F715AB;
  --red-deep: #A80E88;
  --red-tint: rgba(247, 21, 171, .15);
  --accent-600: #FB55BF;
  --signal: #34EDF3;
  --signal-tint: rgba(52, 237, 243, .14);
  --zaffre: #0313A6;
  --violet: #9201CB;
  --violet-tint: rgba(146, 1, 203, .22);
  --paper: #EEF0FA;
  --paper-2: #DFE3F4;
  --paper-ink: #0B1233;
  --paper-muted: #4C5578;
  --paper-line: rgba(11, 18, 51, .16);
  --maxw: 1220px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Ray Security Brand Integrations */
  --ray-blue: #0066FF;
  --ray-cyan: #00F0FF;
  --ray-tint: rgba(0, 102, 255, 0.15);
  --ray-glow: 0 0 30px rgba(0, 102, 255, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
}

p { margin: 0 0 1.1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

.kick {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.kick .no { color: var(--red); }
.kick::after { content: ""; height: 1px; width: 46px; background: var(--hair); }
.kick.center { justify-content: center; }

.lede { font-size: 1.22rem; line-height: 1.55; color: var(--text); max-width: 38ch; }
.muted { color: var(--muted); }
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: var(--ink); padding: 12px 18px;
  font-family: var(--mono); font-size: .8rem;
}
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 700; padding: 15px 24px;
  border: 1px solid transparent; cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--red); color: var(--ink); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-ray { background: var(--ray-blue); color: #FFF; box-shadow: var(--ray-glow); }
.btn-ray:hover { background: #0052CC; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--text); border-color: var(--hair); }
.btn-line:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn .arw { width: 14px; height: 9px; transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 15, 52, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: .04em; font-size: 1.15rem; }
.brand svg { width: 36px; height: 36px; }
.brand .sup4 { font-size: .6em; color: var(--red); vertical-align: .4em; }
.navlinks { display: flex; gap: 24px; align-items: center; }
.navlinks a { font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); transition: color .18s; }
.navlinks a:hover { color: var(--text); }
.navlinks a.active { color: var(--signal); }
.nav-cta { font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--red); padding: 10px 16px; }
.nav-cta:hover { background: var(--accent-600); }

.menu-btn { display: none; background: none; border: 1px solid var(--hair); color: var(--text); width: 42px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1020px) {
  .navlinks {
    position: absolute; top: 84px; left: 0; right: 0; background: var(--ink-2);
    flex-direction: column; gap: 0; padding: 10px 28px 24px; border-bottom: 1px solid var(--line); display: none;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .navlinks .nav-cta { margin-top: 16px; width: 100%; text-align: center; }
  .menu-btn { display: inline-flex; }
}

/* Hero Section */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-inner { position: relative; z-index: 5; display: grid; grid-template-columns: 1.5fr .95fr; gap: 0; padding: clamp(40px, 6vw, 72px) 0 0; }
.hero-main { padding: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 56px) clamp(48px, 6vw, 72px) 0; border-right: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 5rem); font-weight: 400; letter-spacing: -.03em; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 52ch; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dossier {
  padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 5vw, 64px) clamp(28px, 4vw, 44px);
  background: rgba(14, 21, 72, 0.4);
  backdrop-filter: blur(8px);
}
.dossier-h { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.idx { list-style: none; margin: 0; padding: 0; }
.idx li { border-top: 1px solid var(--line); }
.idx li:last-child { border-bottom: 1px solid var(--line); }
.idx a { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 12px 4px; transition: all .18s ease; }
.idx a:hover { padding-left: 10px; color: #fff; background: rgba(247, 21, 171, 0.05); }
.idx .n { font-family: var(--mono); font-size: .74rem; color: var(--red); }
.idx .t { font-size: .94rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-main { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .hero-dossier { padding-left: 0; }
}

/* Dateline strip */
.dateline { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dateline .row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 14px 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dateline .row span { display: flex; align-items: center; gap: 8px; }
.dateline .row span::before { content: "⊕"; color: var(--red); }
.dateline .row span.partner-badge::before { content: "⚡"; color: var(--signal); }
.dateline .row span.partner-badge { color: var(--signal); font-weight: 700; }

/* Responsive Grid Utility System */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.grid-2col.align-center {
  align-items: center;
}

.grid-ray {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.svc-row {
  display: grid;
  grid-template-columns: auto 1.1fr 1.4fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
  transition: all .18s ease;
}
.svc-row:hover {
  background: linear-gradient(90deg, var(--red-tint), transparent);
  padding-left: 14px;
}

.art {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 24px 4px;
  transition: padding .18s ease;
}
.art:hover {
  padding-left: 12px;
}

/* RAY SECURITY PARTNERSHIP SECTION */
.ray-partner-sec {
  background: radial-gradient(100% 70% at 90% 20%, rgba(0, 102, 255, 0.12), transparent 60%), linear-gradient(180deg, var(--ink-2), var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ray-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0, 102, 255, 0.15); border: 1px solid rgba(0, 102, 255, 0.35);
  padding: 6px 14px; border-radius: 100px; font-family: var(--mono); font-size: .72rem;
  color: var(--signal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px;
}
.ray-card {
  background: var(--surface);
  border: 1px solid rgba(0, 102, 255, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), var(--ray-glow);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.ray-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--signal), var(--ray-blue), var(--red));
}
.feature-list { list-style: none; margin: 24px 0; padding: 0; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: .98rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-icon {
  width: 28px; height: 28px; border-radius: 6px; background: rgba(52, 237, 243, 0.12);
  border: 1px solid rgba(52, 237, 243, 0.3); display: flex; align-items: center; justify-content: center;
  color: var(--signal); flex-none; font-family: var(--mono); font-size: .8rem;
}

/* INTERACTIVE AI EXPOSURE POSTURE CALCULATOR WIDGET */
.calc-sec {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.calc-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.calc-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.progress-bar-wrap { width: 100%; height: 6px; background: var(--surface); border-radius: 100px; margin-bottom: 32px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 25%; background: linear-gradient(90deg, var(--signal), var(--red)); transition: width .4s ease; }

.q-step { display: none; }
.q-step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.q-title { font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 500; margin-bottom: 8px; }
.q-desc { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }

.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.option-btn {
  background: var(--surface); border: 1px solid var(--hair); padding: 20px; border-radius: 6px;
  cursor: pointer; transition: all .2s ease; text-align: left; color: var(--text);
}
.option-btn:hover { border-color: var(--signal); background: rgba(52, 237, 243, 0.05); }
.option-btn.selected { border-color: var(--red); background: rgba(247, 21, 171, 0.12); box-shadow: 0 0 15px rgba(247, 21, 171, 0.2); }
.option-title { font-family: var(--mono); font-size: .88rem; font-weight: 700; margin-bottom: 6px; display: block; color: var(--text); }
.option-sub { font-size: .84rem; color: var(--muted); display: block; }

.calc-nav { display: flex; justify-content: space-between; align-items: center; }

/* Calculator Result Dashboard */
.result-dashboard { display: none; text-align: center; }
.result-dashboard.active { display: block; animation: fadeIn .4s ease; }
.risk-meter {
  width: 140px; height: 140px; border-radius: 50%; border: 6px solid var(--red);
  margin: 0 auto 24px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(247, 21, 171, 0.3);
}
.risk-score { font-family: var(--display); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--text); }
.risk-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 32px 0; text-align: left; }
.res-card { background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 6px; }
.res-card h4 { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--signal); margin-bottom: 8px; }
.res-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(7, 15, 52, 0.85);
  backdrop-filter: blur(12px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn .25s ease; }
.modal-box {
  background: var(--ink-2); border: 1px solid var(--line); width: 100%; max-width: 580px;
  border-radius: 8px; padding: 36px; position: relative; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.modal-close { position: absolute; right: 20px; top: 20px; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.modal-close:hover { color: var(--text); }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.slot-btn {
  background: var(--surface); border: 1px solid var(--hair); color: var(--text);
  padding: 10px; font-family: var(--mono); font-size: .8rem; cursor: pointer; text-align: center; border-radius: 4px;
}
.slot-btn:hover { border-color: var(--signal); }
.slot-btn.selected { border-color: var(--red); background: var(--red-tint); }

/* Standard Forms */
.field { margin-bottom: 18px; }
label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
input, textarea, select { width: 100%; background: var(--ink); border: 1px solid var(--hair); color: var(--text); padding: 13px 14px; font-family: var(--sans); font-size: 1rem; border-radius: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--signal); outline: none; }
textarea { resize: vertical; min-height: 110px; }

/* Field Notes (Paper style) */
.paper-sec { background: var(--paper); color: var(--paper-ink); }
.paper-sec .kick { color: var(--paper-muted); }
.paper-sec .kick::after { background: var(--paper-line); }

/* Technology Partners Strip */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding: 22px 0; }
.partners-lab { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
.partner-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.partner-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--hair); border-radius: 100px; padding: 8px 18px; font-weight: 600; font-size: .92rem; color: var(--text); }
.partner-chip.ray { border-color: rgba(0, 102, 255, 0.5); background: rgba(0, 102, 255, 0.1); color: var(--signal); }

/* Footer */
footer.site { background: var(--surface-2); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; margin: 0 0 18px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
footer a { color: var(--muted); font-size: .92rem; } footer a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }

/* LIVE THREAT EXPOSURE RADAR COMPONENT STYLES */
.radar-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 10px var(--signal); display: inline-block;
  animation: liveDotPulse 1.5s infinite ease-in-out;
}
@keyframes liveDotPulse { 0%, 100% { opacity: 0.3; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.2); } }

.radar-container {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.radar-screen {
  width: 100%; height: 220px; position: relative; background: radial-gradient(circle, rgba(52,237,243,0.05) 0%, rgba(7,15,52,0.95) 75%);
  border: 1px solid rgba(52, 237, 243, 0.25); border-radius: 50%; overflow: hidden; margin: 0 auto 14px;
}
.radar-ring {
  position: absolute; inset: 50%; transform: translate(-50%, -50%);
  border: 1px dashed rgba(52, 237, 243, 0.2); border-radius: 50%; pointer-events: none;
}
.radar-ring.ring-1 { width: 35%; height: 35%; }
.radar-ring.ring-2 { width: 65%; height: 65%; }
.radar-ring.ring-3 { width: 92%; height: 92%; }

.radar-axis { position: absolute; background: rgba(52, 237, 243, 0.15); pointer-events: none; }
.radar-axis.axis-x { width: 100%; height: 1px; top: 50%; left: 0; }
.radar-axis.axis-y { height: 100%; width: 1px; left: 50%; top: 0; }

.radar-sweep {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, rgba(52, 237, 243, 0.4) 0deg, rgba(52, 237, 243, 0.08) 45deg, transparent 60deg);
  animation: radarScanSweep 5s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes radarScanSweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.radar-blip {
  position: absolute; width: 10px; height: 10px; transform: translate(-50%, -50%); cursor: pointer; z-index: 10;
}
.blip-core {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 12px var(--red); display: block;
}
.blip-ping {
  position: absolute; inset: -4px; border: 1px solid var(--red); border-radius: 50%;
  animation: blipPulse 1.8s infinite ease-out; opacity: 0;
}
.blip-2 .blip-core, .blip-2 .blip-ping { background: var(--red); border-color: var(--red); }
.blip-3 .blip-core { background: #FFB900; box-shadow: 0 0 10px #FFB900; } .blip-3 .blip-ping { border-color: #FFB900; }
.blip-4 .blip-core { background: var(--signal); box-shadow: 0 0 10px var(--signal); } .blip-4 .blip-ping { border-color: var(--signal); }

@keyframes blipPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

.radar-feed {
  background: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-family: var(--mono); font-size: 0.72rem;
}
.feed-header { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted-2); letter-spacing: 0.06em; }
.feed-log { max-height: 52px; overflow-y: hidden; display: flex; flex-direction: column; gap: 4px; }
.log-item { display: flex; gap: 8px; align-items: center; }
.log-item.critical { color: var(--red); }
.log-item.high { color: var(--signal); }
.log-time { color: var(--muted-2); font-size: 0.68rem; }
.log-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* GLOBAL MOBILE & OVERFLOW PROTECTIONS */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  touch-action: manipulation;
}
h1, h2, h3, h4, p, span, a, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* STREAMLINED MOBILE ENTERPRISE VIEW STYLESHEET (< 768px) */
@media (max-width: 768px) {
  /* Container & Body Padding */
  body { font-size: 15px; line-height: 1.55; }
  .wrap { padding: 0 18px !important; }
  .sec { padding: 36px 0 !important; }

  /* Header Navigation Drawer */
  .nav { height: 64px; }
  .navlinks {
    top: 64px;
    padding: 16px 20px 28px;
    background: rgba(7, 15, 52, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hair);
  }
  .navlinks a {
    font-size: 0.88rem;
    padding: 14px 0;
    color: var(--text);
  }
  .nav-cta {
    margin-top: 18px;
    padding: 14px;
    font-size: 0.85rem;
    border-radius: 4px;
  }

  /* Hero Section Streamlining */
  .hero-main { padding: 24px 0 28px 0 !important; border-bottom: none !important; }
  .hero h1 {
    font-size: 2.1rem !important;
    line-height: 1.15 !important;
    font-weight: 500;
    margin-bottom: 12px;
  }
  .hero .sub {
    font-size: 0.95rem !important;
    line-height: 1.5;
    margin: 12px 0 20px !important;
    color: var(--muted);
  }
  .hero-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions .btn {
    width: 100% !important;
    padding: 14px 18px;
    font-size: 0.8rem;
    border-radius: 4px;
    min-height: 48px;
  }

  /* Hero Dossier & Radar simplification on mobile */
  .hero-dossier {
    padding: 18px 14px !important;
    margin-top: 20px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(14, 21, 72, 0.6);
  }
  .idx { display: flex; flex-direction: column; gap: 4px; }
  .idx li { border: none !important; }
  .idx a { padding: 8px 0 !important; font-size: 0.85rem; border-bottom: 1px solid var(--line); }

  /* Radar Screen Sizing */
  .radar-screen { width: 150px !important; height: 150px !important; margin: 0 auto 12px; }
  .radar-feed { padding: 8px 10px; font-size: 0.68rem; }
  .feed-log { max-height: 44px; }

  /* Dateline Ticker Strip */
  .dateline .row { gap: 8px 14px !important; font-size: 0.65rem !important; padding: 10px 0 !important; justify-content: center; }

  /* CTEM & Section Headings */
  .kick { font-size: 0.66rem; margin-bottom: 16px; }
  h2 { font-size: 1.7rem !important; line-height: 1.18 !important; }
  .lede { font-size: 0.98rem !important; line-height: 1.5; }

  /* Ray Security Section Streamlining */
  .ray-partner-sec { padding: 36px 0 !important; }
  .ray-badge { font-size: 0.65rem; padding: 4px 10px; margin-bottom: 16px; }
  .ray-card { padding: 20px 16px !important; border-radius: 6px; }

  /* Service Index Mobile Cards */
  .svc-index { margin-top: 24px !important; }
  .svc-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 14px 12px !important;
    border-radius: 6px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    background: rgba(14, 21, 72, 0.3);
  }
  .svc-row .sn { font-size: 0.8rem; font-weight: 700; color: var(--red); }
  .svc-row .name { font-size: 1.1rem !important; font-weight: 500; }
  .svc-row .desc { font-size: 0.85rem !important; color: var(--muted); margin-top: 2px; }
  .svc-row .kw { display: none !important; } /* Hide heavy keywords on mobile for clean UI */

  /* Field Notes Mobile Cards */
  .art {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 16px 12px !important;
    border-radius: 6px;
    border: 1px solid var(--paper-line);
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.4);
  }
  .art .meta { font-size: 0.68rem; margin-bottom: 2px; }
  .art h3 { font-size: 1.15rem !important; line-height: 1.25; margin-bottom: 4px !important; }
  .art p { font-size: 0.85rem !important; }
  .art .read { font-size: 0.68rem; margin-top: 6px; font-weight: 700; }

  /* Diagnostic Calculator Widget */
  .calc-card { padding: 18px 14px !important; border-radius: 6px; }
  .q-title { font-size: 1.15rem !important; }
  .option-btn { padding: 12px 14px !important; margin-bottom: 8px; border-radius: 6px; min-height: 48px; }
  .option-title { font-size: 0.9rem !important; font-weight: 600; }
  .option-sub { font-size: 0.8rem !important; line-height: 1.4; }

  /* Booking Modal Popup */
  .modal-overlay { padding: 10px !important; align-items: flex-end; }
  .modal-box { padding: 20px 16px !important; max-height: 90vh; width: 100% !important; border-radius: 12px 12px 0 0; }
  .slot-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.55rem !important; }
}



