:root {
  --bg: #030607;
  --ink: #f4faf9;
  --muted: #a9b9bc;
  --line: rgba(151, 184, 190, 0.22);
  --panel: rgba(12, 18, 21, 0.9);
  --panel-solid: #0e171b;
  --paper: #f4efe4;
  --paper-ink: #172022;
  --paper-muted: #607078;
  --green: #44e0b8;
  --blue: #6ca8ff;
  --yellow: #f5c862;
  --red: #ff637d;
  --purple: #b79cff;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(108, 168, 255, 0.18), transparent 30%),
    radial-gradient(circle at 14% 34%, rgba(68, 224, 184, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(8, 17, 20, 0.98), rgba(3, 6, 7, 0.99)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 11, 0.86);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: 0; }
.brand img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
nav a, .button, button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255,255,255,0.045);
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
}
nav a:hover, .button:hover, button:hover { border-color: rgba(68,224,184,0.55); background: rgba(68,224,184,0.1); }
main { position: relative; z-index: 1; }
.hero {
  min-height: min(880px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(16px, 5vw, 72px) 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -14vw;
  bottom: -24vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(68,224,184,0.22);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 20deg, rgba(68,224,184,0.11) 0 7deg, transparent 7deg 18deg),
    radial-gradient(circle, transparent 48%, rgba(108,168,255,0.1) 49%, transparent 51%);
  opacity: 0.55;
}
.hero-copy { max-width: 860px; }
.eyebrow { color: var(--green); font-weight: 800; margin: 0 0 12px; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 5.7rem); line-height: 0.94; letter-spacing: 0; margin-bottom: 22px; }
h2 { font-size: clamp(1.55rem, 3vw, 3rem); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: 1.05rem; letter-spacing: 0; }
.lede { color: #c6d4d4; font-size: clamp(1.02rem, 1.7vw, 1.28rem); line-height: 1.65; max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button.primary { background: linear-gradient(135deg, var(--green), #8df0d6); color: #06100e; border-color: transparent; font-weight: 900; }
.button.secondary { color: #d8e7e6; }
.hero-panel {
  min-height: 580px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(20, 35, 42, 0.96), rgba(3, 6, 7, 0.98) 62%),
    url("/assets/zcureit-company-banner.svg") center 18px / 82% auto no-repeat;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  position: relative;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.1), transparent 22%),
    radial-gradient(circle at 72% 25%, rgba(255,99,125,0.16), transparent 22%);
  pointer-events: none;
}
.panel-label {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #d9e9e8;
}
.panel-label span { color: var(--muted); text-transform: uppercase; font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.panel-label strong { color: var(--green); }
.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.signal-strip span {
  border: 1px solid rgba(68,224,184,0.32);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(68,224,184,0.09);
  color: #d8fff4;
  font-weight: 800;
  font-size: .82rem;
}
.hero-panel canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: #071116;
}
.hero-dossier {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-dossier a {
  min-height: 94px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(3,6,7,0.7);
}
.hero-dossier span { display: block; color: var(--yellow); font-size: .76rem; font-weight: 800; margin-bottom: 7px; }
.hero-dossier strong { display: block; color: #f4faf9; line-height: 1.18; }
.radar {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(68,224,184,0.26);
  border-radius: 50%;
  max-width: 260px;
  margin: 0 auto 28px;
  background:
    radial-gradient(circle, rgba(68,224,184,0.18), transparent 9%),
    repeating-radial-gradient(circle, transparent 0 37px, rgba(68,224,184,0.13) 38px 39px),
    conic-gradient(from 35deg, rgba(68,224,184,0.34), transparent 34%, rgba(108,168,255,0.22), transparent 72%);
  animation: pulse 5s linear infinite;
}
@keyframes pulse { to { transform: rotate(360deg); } }
.metrics, .grid, .cards, .tool-grid, .breach-grid, .article-grid, .source-grid {
  display: grid;
  gap: 14px;
}
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.metric, .card, .tool, .breach-card, .article-card, .source-card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  padding: 18px;
}
.feature-panel { padding: clamp(20px, 3vw, 34px); }
.feed-row {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.feed-row span { color: var(--muted); }
.metric span, .muted { color: var(--muted); }
.metric strong { display: block; font-size: 2rem; margin-top: 10px; }
.section { padding: 34px clamp(16px, 5vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.console-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.console-tabs button[aria-selected="true"] { background: rgba(68,224,184,0.16); border-color: rgba(68,224,184,0.55); }
.tabpanel { margin-top: 14px; }
.dashboard { grid-template-columns: 1.25fr 0.75fr; }
.breach-feature {
  background:
    linear-gradient(150deg, rgba(68,224,184,0.11), transparent 42%),
    var(--panel);
}
.brief-stack {
  background:
    linear-gradient(180deg, rgba(245,200,98,0.12), rgba(12,18,21,0.92)),
    var(--panel);
}
.threat-map {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071116;
  box-shadow: var(--shadow);
}
.threat-map canvas { display: block; width: 100%; height: auto; min-height: 520px; }
.map-layout { display: grid; grid-template-columns: 0.36fr 0.64fr; gap: 18px; align-items: stretch; }
.map-copy { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.legend { display: grid; gap: 8px; margin-top: 20px; }
.legend span { border-left: 3px solid var(--green); padding: 8px 10px; background: rgba(255,255,255,0.045); color: #d7e4e4; }
.track {
  position: absolute;
  width: 44%;
  height: 2px;
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--green), var(--red));
  animation: trace 3.4s ease-in-out infinite;
}
.t1 { left: 9%; top: 23%; transform: rotate(18deg); }
.t2 { left: 18%; top: 61%; transform: rotate(-16deg); animation-delay: .7s; }
.t3 { left: 47%; top: 38%; transform: rotate(142deg); animation-delay: 1.2s; }
@keyframes trace { 0%, 100% { opacity: .25; } 50% { opacity: 1; box-shadow: 0 0 22px var(--green); } }
.feed-list { display: grid; gap: 10px; }
.feed-item { display: grid; gap: 6px; padding: 13px; border-radius: var(--radius); background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08); }
.tag { display: inline-flex; width: fit-content; border-radius: 999px; padding: 4px 8px; background: rgba(108,168,255,0.14); color: #cfe0ff; font-weight: 800; font-size: .72rem; }
.tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool p, .article-card p, .breach-card p, .source-card p { color: #bac9ca; line-height: 1.55; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(4,7,8,0.72);
  color: var(--ink);
  font: inherit;
}
form { display: grid; gap: 10px; }
.breach-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.breach-card h2 { font-size: 1.25rem; }
.severity-high { color: var(--red); }
.severity-medium { color: var(--yellow); }
.severity-low { color: var(--blue); }
.content-shell { padding: 42px clamp(16px, 5vw, 72px); }
.article-grid, .breach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-book {
  padding: clamp(42px, 6vw, 84px) clamp(16px, 5vw, 72px);
}
.book-cover {
  max-width: 1180px;
  margin: 0 auto 26px;
  border: 1px solid rgba(244,239,228,0.24);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 62px);
  background:
    linear-gradient(135deg, rgba(244,239,228,0.96), rgba(226,218,203,0.98)),
    var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 26px 80px rgba(0,0,0,0.42);
  position: relative;
  overflow: hidden;
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(23,32,34,0.14);
  pointer-events: none;
}
.book-cover .eyebrow { color: #00735d; }
.book-cover h1 {
  max-width: 1000px;
  color: var(--paper-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .9;
}
.book-cover .lede { color: #314044; }
.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.book-meta span {
  border: 1px solid rgba(23,32,34,0.16);
  border-radius: 999px;
  padding: 8px 11px;
  color: #35484d;
  font-weight: 800;
  font-size: .8rem;
}
.book-pages {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.flip-reader {
  max-width: 1040px;
  margin: 0 auto;
}
.flip-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.flip-toolbar span {
  color: #d7e4e4;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.045);
  font-weight: 800;
}
.book-stage {
  min-height: 560px;
  perspective: 1800px;
  position: relative;
  display: grid;
  place-items: center;
}
.book-stage::before {
  content: "";
  position: absolute;
  width: min(92%, 820px);
  height: 34px;
  bottom: 2px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.48), transparent 68%);
  filter: blur(8px);
}
.book-page {
  min-height: 420px;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  color: var(--paper-ink);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.08), transparent 12%, transparent 88%, rgba(0,0,0,0.05)),
    linear-gradient(180deg, #fffaf0, #eee5d4);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.32),
    0 1px 0 rgba(255,255,255,0.8) inset;
  position: relative;
}
.book-stage .book-page {
  width: min(92vw, 760px);
  min-height: 500px;
  grid-area: 1 / 1;
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform .72s cubic-bezier(.2,.8,.2,1), opacity .45s ease, filter .45s ease;
  cursor: pointer;
}
.book-stage .book-page.is-active {
  opacity: 1;
  transform: rotateY(0deg) translateX(0) scale(1);
  z-index: 3;
  filter: none;
}
.book-stage .book-page.is-before {
  opacity: .42;
  transform: rotateY(-72deg) translateX(-30%) scale(.92);
  z-index: 1;
  filter: saturate(.65) blur(.2px);
}
.book-stage .book-page.is-after {
  opacity: .28;
  transform: rotateY(18deg) translateX(18%) scale(.94);
  z-index: 2;
  filter: saturate(.7);
}
.page-corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 0 var(--radius) 0 76px;
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(0,0,0,0.08));
  box-shadow: -7px 7px 18px rgba(0,0,0,0.12);
  padding: 0;
}
.page-corner::after {
  content: "Turn";
  position: absolute;
  right: 10px;
  top: 12px;
  color: #7d6850;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: rotate(34deg);
}
.book-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
}
.book-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,0.15);
}
.book-dots button[aria-current="page"] {
  background: var(--green);
  box-shadow: 0 0 18px rgba(68,224,184,0.6);
}
.book-page::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--green), var(--blue));
}
.page-number {
  color: #7d6850;
  font: 800 .78rem Inter, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-left: 16px;
}
.book-page h2 {
  color: var(--paper-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  margin-left: 16px;
}
.book-page p {
  margin-left: 16px;
  color: #263337;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.07rem;
  line-height: 1.72;
}
.book-page .lead-line::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: .82;
  padding: 8px 8px 0 0;
  color: #00735d;
}
.book-related {
  max-width: 1180px;
  margin: 24px auto 0;
}
.book-related a { background: rgba(244,239,228,0.08); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.related a, .locked-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}
.locked-panel { text-align: center; padding: 40px; }
.check-item { padding: 12px 0 12px 16px; border-left: 3px solid var(--blue); color: #d2dddd; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.error { color: var(--red); }
@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero, .dashboard, .article-grid, .breach-grid, .map-layout, .book-pages { grid-template-columns: 1fr; }
  .metrics, .tool-grid, .source-grid, .breach-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { min-height: 520px; transform: none; }
  .hero-dossier { grid-template-columns: 1fr; }
  .book-stage { min-height: 620px; }
  .book-stage .book-page { width: 100%; min-height: 570px; }
  .book-stage .book-page.is-before { transform: rotateY(-62deg) translateX(-18%) scale(.92); }
  .book-stage .book-page.is-after { transform: rotateY(12deg) translateX(8%) scale(.94); }
}
@media (max-width: 560px) {
  .metrics, .tool-grid, .source-grid, .breach-filters { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  .hero-panel, .hero-panel canvas, .threat-map, .threat-map canvas { min-height: 300px; }
  .section-head, footer { flex-direction: column; align-items: flex-start; }
  .flip-toolbar { flex-wrap: wrap; }
  .book-stage { min-height: 690px; }
  .page-corner { width: 58px; height: 58px; }
  .page-corner::after { font-size: .56rem; }
}
