/*
Layout sketch followed from frontend-design skill:
┌──────────── ATI header / readable CTA ────────────┐
│ hero: title, national + Midwest positioning       │
├──────── controls ┬──────── responsive map ────────┤
│ metrics/search   │ markers + territory overlays   │
│ region buttons   ├──────── local CRM report ──────┤
│ rich side panel   │ form + metrics + activity log  │
├──────────── industry intelligence cards ──────────┤
*/
:root {
  --ati-black: #050505;
  --ati-charcoal: #101820;
  --ati-panel: #151d26;
  --ati-panel-2: #0b1117;
  --ati-ink: #172b36;
  --ati-yellow: #ffd44f;
  --ati-yellow-2: #facc15;
  --ati-amber: #f59e0b;
  --ati-white: #ffffff;
  --muted: rgba(255,255,255,.66);
  --line: rgba(255,212,79,.25);
  --soft-line: rgba(255,255,255,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  color: var(--ati-white);
  background: radial-gradient(circle at 8% -10%, rgba(255,212,79,.25), transparent 32rem), linear-gradient(180deg, var(--ati-black), #0b1117 52%, #111827);
}
a { color: inherit; }
button, input, select { font: inherit; }
.site-header {
  position: relative;
  overflow: hidden;
  padding: 20px clamp(16px, 4vw, 56px) 34px;
  background: linear-gradient(120deg, rgba(5,5,5,.98), rgba(17,24,39,.96)), repeating-linear-gradient(135deg, rgba(255,212,79,.10) 0 1px, transparent 1px 24px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.slant { position: absolute; background: var(--ati-yellow); transform: skewX(-22deg) rotate(-4deg); pointer-events: none; }
.slant-one { right: -160px; bottom: -130px; width: 480px; height: 260px; opacity: .52; border-radius: 34px; }
.slant-two { right: 24px; top: 82px; width: 90px; height: 18px; opacity: .85; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: min(100%, 270px); }
.mark-card { width: 130px; height: 60px; display: grid; place-items: center; border-radius: 14px; background: #050505; border: 1px solid rgba(255,212,79,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 34px rgba(0,0,0,.38); overflow: hidden; }
.mark-card img { width: 130px; height: 60px; object-fit: cover; }
.brand-copy strong { display: block; letter-spacing: .08em; text-transform: uppercase; font-size: 18px; line-height: 1; }
.brand-copy small { display: block; margin-top: 5px; color: rgba(255,255,255,.64); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.map-jump { position: relative; z-index: 4; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--ati-black); background: var(--ati-yellow); border: 1px solid rgba(0,0,0,.4); font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.hero { position: relative; z-index: 2; padding-top: 28px; max-width: 1120px; }
.eyebrow, .section-kicker { color: var(--ati-yellow); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 950; }
h1 { margin: 8px 0 12px; max-width: 980px; font-size: clamp(42px, 7vw, 88px); line-height: .9; letter-spacing: -.075em; font-weight: 950; }
.subtitle { max-width: 940px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.55vw, 19px); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-actions span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.86); font-size: 12px; font-weight: 850; }
.dashboard { display: grid; grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); align-items: stretch; }
.control-panel { z-index: 5; padding: 22px; background: linear-gradient(180deg, rgba(16,24,32,.98), rgba(9,14,20,.99)); border-right: 1px solid var(--line); overflow-y: auto; }
.card { border-radius: var(--radius); padding: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--soft-line); box-shadow: 0 14px 38px rgba(0,0,0,.22); margin-bottom: 15px; }
.scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.metric { border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(255,212,79,.16), rgba(255,212,79,.06)); border: 1px solid rgba(255,212,79,.25); }
.metric b { display: block; color: var(--ati-yellow); font-size: 30px; letter-spacing: -.045em; }
.metric span { display: block; color: rgba(255,255,255,.58); text-transform: uppercase; letter-spacing: .075em; font-size: 10.5px; font-weight: 950; }
.section-title { display: block; margin: 0 0 12px; color: var(--ati-yellow); text-transform: uppercase; letter-spacing: .10em; font-weight: 950; font-size: 12px; }
.callout { border-left: 5px solid var(--ati-yellow); background: linear-gradient(90deg, rgba(255,212,79,.15), rgba(255,212,79,.04)); }
.callout strong { color: var(--ati-yellow); }
.callout p, .muted { color: var(--muted); line-height: 1.52; margin-bottom: 0; }
.search, select, input { width: 100%; min-height: 44px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 12px 13px; color: white; background: rgba(255,255,255,.07); outline: none; }
.search::placeholder, input::placeholder { color: rgba(255,255,255,.43); }
.search:focus, select:focus, input:focus { border-color: var(--ati-yellow); box-shadow: 0 0 0 4px rgba(255,212,79,.16); }
.filters { display: grid; gap: 9px; }
.filter { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.045); color: white; cursor: pointer; font-weight: 950; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.filter:hover { transform: translateY(-1px); border-color: rgba(255,212,79,.44); }
.filter.active { color: var(--ati-ink); background: var(--ati-yellow); border-color: var(--ati-yellow); }
.filter .region-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 3px rgba(0,0,0,.12); vertical-align: -1px; }
.count { opacity: .72; font-variant-numeric: tabular-nums; }
.target-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.target-meta { color: var(--muted); margin: 0 0 12px; }
.detail-list { display: grid; gap: 9px; margin: 0; }
.detail-row { padding: 10px 11px; border-radius: 13px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.detail-row b { color: var(--ati-yellow); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.map-stack { min-width: 0; display: grid; grid-template-rows: minmax(520px, 65vh) auto; }
#map { width: 100%; height: 100%; min-height: 520px; background: #111827; }
.leaflet-control-attribution { background: rgba(255,255,255,.88) !important; }
.leaflet-popup-content-wrapper { border-radius: 16px; border: 1px solid rgba(255,212,79,.25); box-shadow: 0 18px 50px rgba(0,0,0,.42); }
.popup-title { font-weight: 950; color: var(--ati-ink); margin-bottom: 4px; font-size: 15px; }
.popup-meta { color: #526170; line-height: 1.4; }
.popup-grid { display: grid; gap: 6px; margin-top: 10px; }
.popup-grid span { display: block; color: #172b36; font-size: 12px; }
.badge { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 999px; color: #111827; background: var(--ati-yellow); font-size: 11px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.crm-panel { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; background: linear-gradient(180deg, rgba(21,29,38,.98), rgba(10,15,21,.99)); }
.crm-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crm-heading h2, .intel h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.045em; }
.ghost-button, .primary-button { min-height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); padding: 10px 15px; color: white; background: rgba(255,255,255,.06); cursor: pointer; font-weight: 950; }
.primary-button { color: #111827; background: var(--ati-yellow); border-color: var(--ati-yellow); }
.crm-form { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; }
.crm-form label { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.crm-form label > * { margin-top: 7px; text-transform: none; letter-spacing: 0; }
.crm-form .wide { grid-column: span 2; }
.report-grid { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.report-grid div { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.report-grid b { display: block; color: var(--ati-yellow); font-size: 24px; }
.report-grid span { color: rgba(255,255,255,.62); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 950; }
.activity-log { display: grid; gap: 8px; max-height: 220px; overflow: auto; margin-top: 14px; }
.activity-item { padding: 11px 12px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.76); line-height: 1.42; }
.activity-item strong { color: var(--ati-yellow); }
.intel { padding: clamp(28px, 5vw, 58px); background: #0b1117; border-top: 1px solid var(--line); }
.intel-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.intel article { min-height: 230px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.10); }
.intel article span { color: var(--ati-yellow); font-weight: 950; }
.intel h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.intel p { margin: 0; color: var(--muted); line-height: 1.55; }
.site-footer { padding: 18px clamp(16px, 4vw, 56px); color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.45; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 1180px) { .crm-form { grid-template-columns: repeat(2, minmax(0,1fr)); } .crm-form .wide { grid-column: span 2; } .report-grid, .intel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 920px) { .dashboard { grid-template-columns: 1fr; } .control-panel { border-right: 0; border-bottom: 1px solid var(--line); } .map-stack { grid-template-rows: minmax(430px, 60vh) auto; } #map { min-height: 430px; } .site-header { padding-bottom: 26px; } .slant-one { opacity: .22; } }
@media (max-width: 620px) { .brand { align-items: flex-start; flex-direction: column; gap: 10px; } .scoreboard, .report-grid, .intel-grid, .crm-form { grid-template-columns: 1fr; } .crm-form .wide { grid-column: auto; } .crm-heading { display: block; } .ghost-button { margin-bottom: 12px; } .hero-actions span { width: 100%; } h1 { font-size: 42px; } }
