:root {
  --bg: #0B0B0C;
  --panel: #141416;
  --panel-2: #1B1B1F;
  --line: #2C2C32;
  --line-2: #3A3A40;
  --text: #F4F4F0;
  --text-secondary: #C9C9CC;
  --text-tertiary: #DADADC;
  --muted: #A3A3A8;
  --muted-2: #8E8E94;
  --signal-red: #FF3B30;
  --signal-red-hover: #FF7A70;
  --button-red: #D4141C;
  --button-red-dark: #7A0F13;
  --warning: #E5A93B;
  --success: #7FD69A;
  --link-blue: #8FB4FF;
  --font-head: 'Chakra Petch', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--signal-red); }
a:hover { color: var(--signal-red-hover); }
button { font: inherit; }

@keyframes migpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
}
.nav-link.is-active { color: #FFFFFF; border-bottom-color: var(--signal-red); }
.nav-cta {
  margin-left: 10px;
  color: #FFFFFF;
  background: var(--button-red);
  text-decoration: none;
  padding: 12px 18px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav-cta.is-active { box-shadow: inset 0 -3px 0 #FFFFFF; }

/* Main / footer shells */
.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1320px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 44px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.footer-dot { color: var(--signal-red); }

/* Shared type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 10px;
}
.eyebrow.is-muted { color: var(--muted); }
h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

/* Buttons */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  display: inline-block;
  min-height: 44px;
  padding: 14px 22px;
  font-size: 16px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-primary { color: #FFFFFF; background: var(--button-red); }
.btn-secondary { color: var(--text); background: var(--panel-2); }

/* Panels / cards (clip-cornered) */
.panel {
  background: var(--panel);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.panel-lg { clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }

/* ===== Home ===== */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; flex: 1; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-tag {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.hero-tag .dot { width: 9px; height: 9px; background: var(--signal-red); display: inline-block; animation: migpulse 1.6s infinite; }
.hero-copy h1 { font-size: clamp(42px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero-copy h1 span { color: var(--signal-red); }
.hero-copy p { font-size: 19px; color: var(--text-secondary); max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.demo-panel { flex: 1 1 420px; min-width: 0; padding: 24px; }
.demo-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.demo-head .status { color: var(--muted); }
.demo-head .status.is-live { color: var(--signal-red); }
.demo-lights { display: flex; gap: 10px; margin-bottom: 18px; }
.demo-light { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.demo-light .bulb { width: 100%; height: 14px; background: var(--line); transition: background .2s, box-shadow .2s; }
.demo-light.is-on .bulb { background: var(--signal-red); box-shadow: 0 0 12px rgba(255,59,48,0.65); }
.demo-light.is-on.is-last .bulb { box-shadow: 0 0 22px rgba(255,59,48,0.65); }
.demo-light .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); }
.demo-light.is-on .label { color: var(--text); }
.demo-log {
  background: var(--bg); min-height: 150px; padding: 14px 16px; font-family: var(--font-mono);
  font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 18px;
}
.demo-log .idle { color: var(--muted-2); }
.demo-log .line span { color: var(--signal-red); }
.demo-go {
  width: 100%; min-height: 60px; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 700;
  font-size: 26px; letter-spacing: 0.18em; color: #FFFFFF; background: var(--button-red);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.demo-go.is-running { background: var(--button-red-dark); cursor: default; }

.quick-links { display: flex; flex-wrap: wrap; gap: 14px; }
.quick-link {
  flex: 1 1 240px; min-width: 0; padding: 18px 20px; text-decoration: none; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.quick-link .num { font-family: var(--font-mono); font-size: 12px; color: var(--signal-red); display: block; }
.quick-link .title { font-family: var(--font-head); font-weight: 600; font-size: 19px; text-transform: uppercase; }
.quick-link .arrow { color: var(--signal-red); font-size: 22px; }

/* ===== Services ===== */
.services-layout { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.service-tabs { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.service-tab {
  flex: 1 1 auto; min-height: 76px; text-align: left; cursor: pointer; border: 0; padding: 14px 22px;
  color: var(--text-secondary); background: var(--panel);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.service-tab .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); display: block; }
.service-tab .title { font-family: var(--font-head); font-weight: 600; font-size: 21px; text-transform: uppercase; }
.service-tab[aria-selected="true"] { color: #FFFFFF; background: #1F1F24; box-shadow: inset 4px 0 0 var(--signal-red); }
.service-tab[aria-selected="true"] .num { color: var(--signal-red); }

.service-panel { flex: 999 1 560px; min-width: 0; padding: 34px 38px; display: flex; flex-direction: column; gap: 20px; }
.service-panel .num { font-family: var(--font-mono); font-size: 13px; color: var(--signal-red); margin-bottom: 6px; }
.service-panel h2 { font-size: 34px; line-height: 1.05; margin: 0 0 10px; }
.service-panel .pitch { margin: 0; color: var(--text-secondary); font-size: 18px; max-width: 640px; }
.service-items { display: flex; flex-direction: column; gap: 10px; }
.service-item { display: flex; gap: 14px; align-items: baseline; font-size: 16.5px; }
.service-item .bullet { width: 8px; height: 8px; background: var(--signal-red); flex: 0 0 auto; transform: translateY(-2px); }
.service-proof { border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; color: var(--muted); margin-top: auto; }
.service-proof .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text); }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.service-actions .btn { font-size: 16px; padding: 14px 22px; min-height: auto; }

/* ===== Readiness checks ===== */
.readiness-layout { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.readiness-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mode-tab {
  min-height: 46px; padding: 0 20px; cursor: pointer; border: 0; font-family: var(--font-head); font-weight: 600;
  font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--panel-2); color: var(--text-secondary);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.mode-tab[aria-selected="true"] { background: var(--button-red); color: #FFFFFF; }
.check-intro { color: var(--text-secondary); margin: 0 0 18px; font-size: 16px; }
.question-list { display: flex; flex-direction: column; gap: 8px; }
.question-row {
  background: var(--panel); padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.question-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); width: 26px; }
.question-row .q { flex: 1 1 280px; min-width: 0; font-size: 16px; }
.question-row .answers { display: flex; gap: 8px; }
.ans-btn {
  min-width: 64px; min-height: 44px; padding: 0 14px; cursor: pointer; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; background: transparent; color: var(--text-secondary); border: 1px solid var(--line-2);
}
.ans-btn.yes[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ans-btn.no[aria-pressed="true"] { background: var(--warning); color: var(--bg); border-color: var(--warning); }
.pager-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pager-label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.pager-buttons { display: flex; gap: 8px; }
.pg-btn {
  min-height: 44px; padding: 0 16px; cursor: pointer; font-family: var(--font-mono); font-size: 13px;
  background: transparent; color: var(--text-secondary); border: 1px solid var(--line-2);
}
.pg-btn[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.score-panel { flex: 1 1 340px; min-width: 0; padding: 28px; display: flex; flex-direction: column; }
.score-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.score-value { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; }
.score-value .num { font-family: var(--font-head); font-weight: 700; font-size: 72px; line-height: 1; }
.score-value .of { font-family: var(--font-mono); color: var(--muted); }
.score-bar-track { height: 10px; background: var(--line); margin-bottom: 12px; }
.score-bar-fill { height: 10px; width: 0; background: var(--signal-red); transition: width .3s; }
.answered-text { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.verdict { font-size: 16px; margin-bottom: 16px; }
.gaps-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warning); margin-bottom: 8px; }
.gap-item { background: var(--panel-2); padding: 10px 12px; margin-bottom: 6px; font-size: 14px; color: var(--text-tertiary); }
.gap-item span { color: var(--warning); font-family: var(--font-mono); }
.score-actions { margin-top: auto; padding-top: 12px; }
.score-actions .btn { display: block; width: 100%; text-align: center; min-height: auto; }
.reset-link { display: block; width: 100%; margin-top: 6px; min-height: 44px; background: transparent; border: 0; color: var(--muted); font-family: var(--font-mono); font-size: 13px; cursor: pointer; }

/* ===== Phish drill ===== */
.phish-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.phish-head p { color: var(--muted); margin: 0; font-size: 15px; max-width: 420px; }
.phish-layout { flex: 1 1 auto; display: flex; flex-wrap: wrap; background: var(--panel); }
.phish-inbox { flex: 1 1 340px; min-width: 0; border-right: 1px solid var(--line); }
.phish-inbox-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.mail-row {
  display: block; width: 100%; text-align: left; cursor: pointer; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 20px; font-family: var(--font-body); background: transparent;
}
.mail-row.is-selected { background: #1F1F24; box-shadow: inset 4px 0 0 var(--signal-red); }
.mail-row .row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.mail-row .badge { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--muted-2); }
.mail-row .badge.is-correct { color: var(--success); }
.mail-row .badge.is-missed { color: var(--warning); }
.mail-row .subject { font-size: 14.5px; color: var(--text-secondary); margin-top: 2px; }
.mail-row .time { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.phish-reset-row { padding: 14px 20px; }
.phish-detail { flex: 999 1 480px; min-width: 0; padding: 30px 36px; display: flex; flex-direction: column; }
.phish-detail .meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.phish-detail h2 { font-family: var(--font-body); font-weight: 600; font-size: 26px; line-height: 1.25; margin: 10px 0 18px; text-transform: none; }
.phish-detail .body { margin: 0 0 18px; color: var(--text-tertiary); font-size: 17.5px; max-width: 640px; }
.phish-link { align-self: flex-start; background: var(--panel-2); padding: 10px 14px; font-family: var(--font-mono); font-size: 13.5px; color: var(--link-blue); margin-bottom: 22px; }
.phish-actions { margin-top: auto; }
.phish-choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.verdict-box { background: var(--bg); padding: 18px 22px; }
.verdict-box .head { font-family: var(--font-head); font-weight: 700; font-size: 21px; text-transform: uppercase; margin-bottom: 6px; }
.verdict-box.is-correct .head { color: var(--success); }
.verdict-box.is-wrong .head { color: var(--warning); }
.verdict-box .tell { color: var(--text-tertiary); font-size: 16px; }
.phish-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.phish-cta span { font-size: 15px; color: var(--text-secondary); }
.phish-cta .btn { font-size: 15px; padding: 12px 18px; min-height: auto; }

/* ===== About ===== */
.about-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; flex: 1; justify-content: center; }
.founder-photo {
  flex: 0 1 300px; min-width: 0; aspect-ratio: 4 / 5; background: var(--panel-2); overflow: hidden;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-copy { flex: 1 1 480px; min-width: 0; }
.about-copy h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04; margin-bottom: 22px; }
.about-copy p { color: var(--text-secondary); margin: 0 0 14px; max-width: 680px; }
.about-copy .location { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.how-we-work-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.how-we-work-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.step-card { flex: 1 1 260px; min-width: 0; padding: 20px 22px; }
.step-card .step-num { font-family: var(--font-mono); font-size: 12px; color: var(--signal-red); }
.step-card .step-body { font-size: 16px; margin-top: 6px; color: var(--text-tertiary); }

/* ===== Contact ===== */
.contact-layout { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; }
.contact-copy { flex: 1 1 400px; min-width: 0; }
.contact-copy h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 0.98; margin-bottom: 18px; }
.contact-copy > p { color: var(--text-secondary); margin: 0 0 26px; max-width: 520px; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact-card { padding: 16px 20px; }
.contact-card .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.contact-card .value { font-family: var(--font-head); font-weight: 600; font-size: 26px; overflow-wrap: anywhere; }
.contact-mail { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); margin-top: 4px; }

.contact-form { flex: 1 1 440px; min-width: 0; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.field.full { flex: 1 1 100%; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); padding: 0 14px;
  font-family: var(--font-body); font-size: 16px; min-height: 46px;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: auto; }
.topics-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.topics-legend { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  min-height: 44px; padding: 0 16px; cursor: pointer; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  background: transparent; color: var(--text-secondary); border: 1px solid var(--line-2);
}
.topic-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.contact-submit {
  min-height: 58px; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 20px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; background: var(--button-red);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.contact-note { font-size: 14px; color: var(--muted); margin: 0; }
.contact-note.is-shown { color: var(--text-secondary); }
.contact-note.is-error { color: var(--warning); }
.contact-note.is-success { color: var(--success); }
.recaptcha-disclosure { font-size: 12px; color: var(--muted-2); margin: 0; }
.recaptcha-disclosure a { color: var(--muted-2); text-decoration: underline; }

/* Honeypot: off-screen for people, still present (and fillable by bots) in the DOM. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* We show our own reCAPTCHA disclosure text, so hide Google's floating badge. */
.grecaptcha-badge { visibility: hidden; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .header-inner { padding: 12px 20px; }
  .site-main { padding: 28px 20px 24px; gap: 24px; }
  .footer-inner { padding: 12px 20px; }
  .hero, .about-hero, .contact-layout { flex-direction: column; align-items: stretch; }
  .services-layout, .readiness-layout { flex-direction: column; }
  .phish-layout { flex-direction: column; }
  .phish-inbox { border-right: 0; border-bottom: 1px solid var(--line); }
}
