﻿:root {
  --bg: #0b1424;
  --bg-2: #101c30;
  --surface: #152338;
  --surface-2: #1c2e48;
  --line: rgba(170, 210, 255, 0.14);
  --text: #f7fafc;
  --muted: #a8b8cc;
  --teal: #2ee6c7;
  --teal-deep: #14c4a8;
  --amber: #ffb020;
  --coral: #ff6b5c;
  --sky: #4dabff;
  --ok: #3dd68c;
  --shadow: 0 20px 48px rgba(4, 12, 28, 0.45);
  --radius: 18px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 45% at 85% -5%, rgba(46, 230, 199, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 20%, rgba(255, 176, 32, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 60% 100%, rgba(77, 171, 255, 0.1), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.prose p { margin: 0 0 0.9rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: #e4edf8; font-style: italic; }
.prose-tight { font-size: 0.98rem; max-width: none; }
.prose-tight p { margin-bottom: 0.65rem; }
.section-lead {
  margin: -4px 0 22px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 171, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 171, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 48vw;
  height: 48vw;
  top: -16vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(46, 230, 199, 0.2), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.top, .shell, .foot { position: relative; z-index: 1; }

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #04141f;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }

.top-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid rgba(46, 230, 199, 0.35);
  background: rgba(46, 230, 199, 0.14);
  color: #c9fff5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.chip-soft {
  border-color: rgba(77, 171, 255, 0.25);
  background: rgba(77, 171, 255, 0.1);
  color: #c8e2ff;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}

.hero {
  padding: 18px 0 8px;
  animation: rise 0.55s ease both;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero h1 {
  margin: 0 0 28px;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero .prose {
  margin-top: 0;
}
.lead {
  margin: 16px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.lead strong { color: var(--text); }

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  background: linear-gradient(180deg, rgba(28, 46, 72, 0.95), rgba(21, 35, 56, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(8px);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 0.9rem; }
.stat.danger strong { color: var(--coral); }
.stat.ok strong { color: var(--ok); }
.stat.accent strong { color: var(--amber); }

.tabs {
  margin: 28px 0 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 16px;
  background: rgba(16, 28, 48, 0.85);
  border: 1px solid var(--line);
  position: sticky;
  top: 10px;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab.is-active {
  color: #04141f;
  background: linear-gradient(135deg, #2ee6c7, #7af0ff);
  box-shadow: 0 10px 28px rgba(46, 230, 199, 0.28);
}
.tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.panel {
  display: none;
  animation: rise 0.35s ease both;
}
.panel.is-active { display: block; }
.panel[hidden] { display: none !important; }

.panel-head {
  margin: 8px 0 36px;
}
.panel-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}
.panel-head .prose { margin-top: 4px; }
.panel-head p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

.block-title {
  margin: 48px 0 20px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 20px;
  align-items: start;
  margin: 52px 0 28px;
  padding: 8px 0 4px;
}
.section-head .block-title,
.section-head .block-title-lg {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.45rem);
  line-height: 1.2;
  max-width: 18ch;
}
.section-aside {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: none;
  width: 100%;
  justify-self: stretch;
  padding-top: 2px;
}

.callout {
  margin: 28px 0;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1rem; }
.callout p { margin: 0; color: var(--muted); }
.callout-danger { border-color: rgba(255, 107, 90, 0.35); background: rgba(255, 107, 90, 0.08); }
.callout-danger h3 { color: #ffb0a6; }
.callout-info { border-color: rgba(94, 179, 240, 0.35); background: rgba(94, 179, 240, 0.08); }
.callout-info h3 { color: #9fd0ff; }
.callout-warn { border-color: rgba(240, 180, 41, 0.35); background: rgba(240, 180, 41, 0.08); }
.callout-warn h3 { color: #ffd778; }

.score-grid,
.persona-grid,
.table-wrap,
.two-col,
.funnel,
.lanes,
.ai-layers,
.sla-grid,
.dash-grid,
.roadmap,
.owners {
  margin-top: 8px;
}
.table-wrap { margin-top: 12px; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.score-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 168px;
}
.score-card span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}
.score-card b { display: block; margin: 8px 0 6px; }
.score-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.score-card.bad span { color: var(--coral); }
.score-card.mid span { color: var(--amber); }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.persona {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: linear-gradient(145deg, rgba(28, 46, 72, 0.95), rgba(21, 35, 56, 0.98));
  padding: 16px 18px;
}
.persona-wide { grid-column: 1 / -1; }
.persona header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.persona h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}
.persona header span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}
.persona p { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.persona p:last-child { margin-bottom: 0; }
.persona b { color: var(--text); }

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0,0,0,0.18);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(46, 230, 199, 0.05); }

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tag-red { background: rgba(255,107,90,0.15); color: #ffb0a6; }
.tag-amber { background: rgba(240,180,41,0.15); color: #ffd778; }
.tag-blue { background: rgba(94,179,240,0.15); color: #9fd0ff; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}
.card-accent {
  border-color: rgba(46, 230, 199, 0.35);
  background: linear-gradient(160deg, rgba(46, 230, 199, 0.14), var(--surface));
}
.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.card ul, .ai-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.card li, .ai-card li { margin: 0 0 6px; }

.funnel { display: grid; gap: 10px; }
.funnel-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.funnel-step-end {
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.08);
}
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(46, 230, 199, 0.15);
  color: var(--teal);
}
.funnel-step h4 { margin: 0 0 4px; font-family: var(--font-display); }
.funnel-step p { margin: 0; color: var(--muted); }
.step-ai {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
}

.lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lane {
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.lane h4 { margin: 0 0 6px; font-family: var(--font-display); }
.lane p { margin: 0 0 10px; color: var(--muted); }
.lane strong { font-size: 0.95rem; }
.lane-sales { border-top: 3px solid var(--teal); }
.lane-cits { border-top: 3px solid var(--sky); }
.lane-it { border-top: 3px solid var(--muted); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-row span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(46, 230, 199, 0.12);
  border: 1px solid rgba(46, 230, 199, 0.25);
  font-weight: 600;
  font-size: 0.9rem;
}

.owners {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.owners div {
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.owners b { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.owners span { color: var(--muted); font-size: 0.9rem; }

.ai-layers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ai-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 18px 14px 18px;
  overflow: hidden;
}
.ai-card-wide { grid-column: 1 / -1; }
.ai-letter {
  position: absolute;
  top: 8px; right: 14px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(46, 230, 199, 0.14);
}
.ai-card h3 { margin: 0 0 10px; font-family: var(--font-display); }
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding-left: 0 !important;
}
.inline-list li::before {
  content: "▸ ";
  color: var(--teal);
  font-weight: 700;
}

.sla-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sla-grid article {
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sla-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--teal);
}
.sla-grid span { color: var(--muted); font-size: 0.92rem; }
.sla-grid .hot {
  border-color: rgba(255, 107, 90, 0.4);
  background: rgba(255, 107, 90, 0.1);
}
.sla-grid .hot b { color: var(--coral); }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dash-grid article {
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.dash-grid h4 { margin: 0 0 6px; font-family: var(--font-display); }
.dash-grid p { margin: 0; color: var(--muted); }
.dash-hot {
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.1);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.roadmap article {
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.rm-phase {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.roadmap h4 { margin: 0 0 6px; font-family: var(--font-display); }
.roadmap p { margin: 0; color: var(--muted); }

.finale {
  margin-top: 22px;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(46, 230, 199, 0.32);
  background:
    radial-gradient(circle at top right, rgba(46, 230, 199, 0.16), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 176, 32, 0.1), transparent 45%),
    var(--surface);
}
.finale h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.25rem; }
.finale p { margin: 0; color: var(--muted); max-width: 70ch; }
.finale-owners {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.finale-owners span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot code {
  color: var(--teal);
  background: rgba(46, 230, 199, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-stats,
  .score-grid,
  .sla-grid,
  .roadmap,
  .owners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid,
  .lanes { grid-template-columns: 1fr 1fr; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .section-head .block-title,
  .section-head .block-title-lg { max-width: none; }
  .section-aside { justify-self: start; max-width: none; }
}

@media (max-width: 720px) {
  .hero-stats,
  .score-grid,
  .persona-grid,
  .two-col,
  .ai-layers,
  .lanes,
  .dash-grid,
  .sla-grid,
  .roadmap,
  .owners { grid-template-columns: 1fr; }
  .persona-wide,
  .ai-card-wide { grid-column: auto; }
  .hero h1 { max-width: none; }
  .tabs { position: static; }
  .tab { flex: 1 1 auto; text-align: center; }
  .block-title { margin: 36px 0 16px; }
  .section-head { margin: 36px 0 20px; }
}
