/* ---------------------------------------------------
   PhishLoop — marketing site
   Cool corporate / SOC system: white & slate ground,
   navy ink, one blue accent, sans-only, square panels,
   status dots. No gradients, no glow, no left-border cards.
--------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-raised: #eef1f6;
  --ink: #12203a;
  --ink-soft: #48546c;
  --ink-faint: #8791a4;
  --line: #e1e5ec;
  --line-strong: #c4cbd8;
  --blue: #2f6fed;
  --blue-dark: #1d54c4;
  --blue-soft: #2f6fed12;
  --green: #1a9d6c;
  --green-soft: #1a9d6c14;
  --red: #d13b2e;
  --red-soft: #d13b2e14;
  --amber: #b3720b;

  --sans: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --max: 1140px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font-family: var(--mono);
  background: var(--bg-raised);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 0.9em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.icon { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* status dot */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status.live { color: var(--green); }
.status.live::before { background: var(--green); }
.status.research { color: var(--amber); }
.status.research::before { background: var(--amber); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 38px;
  height: 34px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  margin: 3.5px auto;
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  background: transparent;
  color: var(--blue);
}
.btn:hover { background: var(--blue-soft); }
.btn-fill {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-fill:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.text-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
}
.text-link:hover { color: var(--blue); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 68px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.14;
  margin: 18px 0 24px;
  max-width: 14.5ch;
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* risk panel */
.panel {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(18,32,58,0.04);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 6px 6px 0 0;
}
.panel-head .kicker { font-size: 10.5px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
}
.tag-red { background: var(--red-soft); color: var(--red); }
.panel-body {
  padding: 18px;
}
.panel-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.panel-row:last-child { border-bottom: none; }
.panel-row .k { font-family: var(--mono); color: var(--ink-faint); min-width: 118px; flex-shrink: 0; font-size: 12px; padding-top: 1px; }
.panel-row .v { color: var(--ink); font-family: var(--mono); font-size: 12.5px; word-break: break-word; }
.panel-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.panel-foot .label { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); flex-shrink: 0; }
.risk-track { flex: 1; height: 6px; background: var(--bg-raised); border-radius: 3px; overflow: hidden; }
.risk-fill { height: 100%; width: 97%; background: var(--red); }
.panel-foot .score { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--red); flex-shrink: 0; }

/* ---------- stat tiles ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat-tile {
  background: var(--bg-alt);
  padding: 26px 26px;
}
.stat-num {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}
.stat-num span { color: var(--blue); font-size: 17px; }
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 6px;
  max-width: 22ch;
  line-height: 1.5;
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.section-num {
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
  background: var(--ink);
  padding: 3px 8px;
  border-radius: 2px;
}
.section-head h2 { font-size: 28px; }
.section-intro {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.68;
  margin: 16px 0 44px;
}

/* stage rows */
.stage-list { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stage-row {
  display: grid;
  grid-template-columns: 48px 1fr 100px;
  gap: 24px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  background: var(--bg);
}
.stage-row:last-child { border-bottom: none; }
.stage-row.fusion { background: var(--bg-alt); }
.stage-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-main h3 { font-size: 18.5px; margin-bottom: 9px; font-weight: 700; }
.stage-main p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 62ch;
  margin-bottom: 11px;
}
.stage-tech {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.stage-lat {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-align: right;
  padding-top: 5px;
}

/* glossary */
.glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.gloss-item {
  padding: 26px 24px;
  background: var(--bg);
}
.gloss-item .icon { margin-bottom: 14px; }
.gloss-item h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.gloss-item p {
  font-size: 13.8px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* training */
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.skill-row { display: flex; gap: 6px; margin: 22px 0 8px; }
.skill-tick { flex: 1; height: 4px; background: var(--line-strong); border-radius: 2px; }
.skill-tick.on { background: var(--blue); }
.skill-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.trust-line {
  padding: 16px 18px;
  background: var(--green-soft);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.62;
}
.trust-line strong { color: var(--green); font-weight: 700; }

.reward-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.reward-table td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.reward-table tr:last-child td { border-bottom: none; }
.reward-table .r-label { color: var(--ink); font-weight: 500; }
.reward-table .r-sub { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.reward-table .r-val { font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; }
.r-pos { color: var(--green); }
.r-neg { color: var(--red); }

/* learning loop */
.loop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.loop-col { padding: 28px 26px; background: var(--bg); }
.loop-col h3 { font-size: 17px; margin: 12px 0 10px; }
.loop-col p { font-size: 14px; color: var(--ink-soft); line-height: 1.62; }
.loop-steps { margin: 16px 0 0; padding: 0; list-style: none; }
.loop-steps li {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.loop-steps li:first-child { border-top: none; }
.loop-steps li .li-num { font-family: var(--mono); color: var(--blue); flex-shrink: 0; }

/* performance table */
.perf-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 6px 6px 0 0; overflow: hidden; }
.perf-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 14px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.perf-table td {
  padding: 18px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.perf-table tr:last-child td { border-bottom: none; }
.perf-table td.comp { font-weight: 700; }
.perf-table td.num { font-family: var(--mono); color: var(--blue-dark); }

.lat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.lat-cell {
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lat-cell .name { font-size: 13px; color: var(--ink-soft); }
.lat-cell .val { font-family: var(--mono); font-weight: 700; color: var(--ink); }

/* closing cta */
.closing {
  padding: 84px 0 92px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.closing-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.closing h2 { font-size: 32px; max-width: 18ch; line-height: 1.2; color: #fff; }
.closing p {
  font-size: 15px;
  color: #b7c0d4;
  line-height: 1.62;
  margin: 16px 0 0;
  max-width: 48ch;
}
.closing-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.closing .btn-fill { background: #fff; color: var(--ink); border-color: #fff; }
.closing .btn-fill:hover { background: var(--blue-soft); color: var(--ink); }
.closing-email { font-family: var(--mono); font-size: 12.5px; color: #8494b3; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--ink); }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer .mark { color: #fff; }
.foot-meta { font-family: var(--mono); font-size: 12px; color: #8494b3; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; max-width: none; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stage-row { grid-template-columns: 1fr; gap: 10px; }
  .stage-lat { text-align: left; }
  .glossary { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; gap: 36px; }
  .loop-grid { grid-template-columns: 1fr; }
  .lat-strip { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; align-items: start; }
  .closing h2 { max-width: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
}

/* ---------- mobile nav panel ---------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
