:root {
  --navy: #0f2a47;
  --teal: #168f83;
  --red: #b8322a;
  --amber: #d98e2b;
  --ink: #172632;
  --muted: #5d6c79;
  --paper: #f4f7f8;
  --white: #fff;
  --line: #d6e0e4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hero {
  min-height: 320px;
  padding: 64px max(6vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: white;
  background: linear-gradient(125deg, var(--navy), #164d68);
  border-bottom: 8px solid var(--teal);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; margin: 8px 0 20px; max-width: 900px; }
.hero p { font-size: 1.25rem; max-width: 760px; }
.hero-actions { display: grid; gap: 10px; min-width: 190px; }
.hero-actions button { width: 100%; }
.mode-button { background: var(--amber); }
.mode-button.online { background: var(--teal); }
.hero-status { min-height: 42px; max-width: 260px; color: #d9e7ed; font-size: .9rem; }
.hero-status.success { color: #7df0df; }
.hero-status.failure { color: #ffc3bd; }
.eyebrow, .section-heading span { color: #5ce0d2; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
nav { position: sticky; top: 0; z-index: 3; display: flex; gap: 28px; padding: 16px 6vw; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
nav a, a { color: var(--teal); font-weight: 700; text-decoration: none; }
main { max-width: 1200px; margin: auto; }
section { margin: 42px 20px; padding: 42px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(15,42,71,.07); }
.section-heading h2 { margin: 5px 0; font-size: 2rem; }
.section-heading span { color: var(--teal); }
.warning { margin: 24px 0; padding: 14px; border-left: 5px solid var(--amber); background: #fff8ea; }
.controls, .presets { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
input { width: 100%; padding: 12px; border: 1px solid #aebdc4; border-radius: 7px; font: inherit; }
.controls input { flex: 1; min-width: 280px; }
button, .button-link {
  border: 0; border-radius: 7px; padding: 12px 18px; color: white; background: var(--teal);
  font: inherit; font-weight: 750; cursor: pointer; display: inline-block;
}
button.secondary, .presets button { color: var(--navy); background: #e8eff2; }
button.danger, .button-link.danger { background: var(--red); color: white; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.result-grid > div { padding: 22px; background: #edf3f5; border-radius: 10px; }
.result-grid strong { display: block; color: var(--navy); font-size: 1.55rem; }
.result-grid span { color: var(--muted); }
.result-grid .bad { border-left: 6px solid var(--red); }
.result-grid .good { border-left: 6px solid var(--teal); }
.empty { color: var(--muted); padding: 28px; text-align: center; }
.panel { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.metric { font-size: 1.25rem; margin-bottom: 15px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.bad-text { color: var(--red); font-weight: 800; }
.good-text { color: var(--teal); font-weight: 800; }
pre { padding: 14px; background: #10283d; color: #e6f4f3; border-radius: 7px; overflow: auto; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.comparison article { padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
.comparison label { display: block; margin: 12px 0; color: var(--muted); font-weight: 700; }
.comparison button { margin: 5px 6px 5px 0; }
.status { min-height: 48px; margin: 16px 0; padding: 12px; background: #eef3f5; border-radius: 7px; }
.status.success { border-left: 5px solid var(--teal); }
.status.failure { border-left: 5px solid var(--red); }
.phish-callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 22px; background: #fff4f2; border: 1px solid #edc2bd; border-radius: 10px; }
footer { padding: 36px; color: var(--muted); text-align: center; }
code { padding: 2px 5px; background: #e8eff2; border-radius: 4px; }
.phish-banner { padding: 14px; color: white; background: var(--red); text-align: center; font-weight: 900; letter-spacing: .08em; }
.phish-main { max-width: 950px; }
.phish-page h1 { font-size: 2.7rem; margin-bottom: 5px; }
.phish-page .eyebrow { color: var(--red); }
@media (max-width: 760px) {
  .hero { display: block; padding: 40px 24px; }
  .hero-actions { margin-top: 24px; max-width: 260px; }
  section { padding: 24px; }
  .result-grid, .comparison { grid-template-columns: 1fr; }
  .phish-callout { align-items: flex-start; flex-direction: column; }
}
