:root {
  --bg: #071a33;
  --bg-2: #0b2343;
  --surface: #102b52;
  --surface-2: #1A3A6B;
  --surface-3: #214a82;
  --text: #f6f9ff;
  --muted: #b7c8e5;
  --line: rgba(255, 202, 26, 0.18);
  --line-soft: rgba(255, 255, 255, 0.10);
  --accent: #FFCA1A;
  --accent-dark: #d99f00;
  --accent-soft: rgba(255, 202, 26, 0.14);
  --danger: #ff6b6b;
  --warning: #FFCA1A;
  --ok: #69d39a;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 202, 26, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(26, 58, 107, 0.70), transparent 34rem),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--text);
  line-height: 1.65;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.hero {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(26, 58, 107, 0.96), rgba(7, 26, 51, 0.98)),
    var(--surface-2);
}
.topbar, .hero-content, .container, .footer { max-width: 1180px; margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #071a33;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 202, 26, 0.14);
}
.github-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 202, 26, 0.28);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.github-link:hover { border-color: var(--accent); color: var(--accent); }
.hero-content { padding-bottom: 82px; }
.hero-content h1 { max-width: 880px; margin: 0; font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.055em; }
.hero-content p { max-width: 760px; color: var(--muted); font-size: 1.07rem; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.hero-actions, .inline-actions, .button-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.primary, .secondary, .ghost, .button-grid button {
  border: 1px solid rgba(255, 202, 26, 0.24);
  border-radius: 13px;
  padding: 11px 16px;
  color: var(--text);
  background: rgba(26, 58, 107, 0.82);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.primary {
  color: #071a33;
  background: linear-gradient(180deg, #ffdc55, var(--accent));
  border-color: var(--accent);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(255, 202, 26, 0.20);
}
.secondary:hover, .ghost:hover, .button-grid button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(26, 58, 107, 1);
  transform: translateY(-1px);
}
.primary:hover {
  background: linear-gradient(180deg, #ffe27a, #ffc400);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 202, 26, 0.26);
}

.container { padding: 42px 24px 80px; }
.notice, .card, .tool, .panel {
  border: 1px solid var(--line);
  background: rgba(16, 43, 82, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notice {
  padding: 18px 20px;
  margin-bottom: 28px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.78), rgba(16, 43, 82, 0.62));
}
.small-notice { margin-top: -6px; margin-bottom: 18px; box-shadow: none; background: rgba(7, 26, 51, 0.50); }
.notice strong { color: var(--text); }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 28px; }
.card { padding: 22px; background: linear-gradient(180deg, rgba(26, 58, 107, 0.88), rgba(16, 43, 82, 0.68)); }
.card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.tool {
  padding: 28px;
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.82), rgba(12, 32, 61, 0.88));
}
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
.section-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel {
  padding: 22px;
  background: rgba(10, 31, 60, 0.68);
  box-shadow: none;
}
label { display: block; margin-bottom: 14px; color: var(--muted); font-weight: 700; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(255, 202, 26, 0.18);
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(4, 15, 30, 0.80);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(246, 249, 255, 0.48); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 202, 26, 0.14);
}
textarea { resize: vertical; }
.checklist label { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 600; }
.checklist input { width: auto; margin-top: 5px; accent-color: var(--accent); }
.result { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(4, 15, 30, 0.58); }
.result-list { display: grid; gap: 10px; }
.result-item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 0.78rem; font-weight: 900; }
.badge.ok { color: #082018; background: var(--ok); }
.badge.warn { color: #071a33; background: var(--warning); }
.badge.fail { color: #2b0505; background: var(--danger); }
.muted { color: var(--muted); }
.button-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.cvss-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.score-box {
  display: grid;
  grid-template-columns: 160px 160px 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 202, 26, 0.20);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(4, 15, 30, 0.58), rgba(4, 15, 30, 0.42));
}
.score-box span, .score-box strong { display: block; }
.score-box strong { font-size: 1.7rem; }
code { word-break: break-all; color: var(--accent); }
.form-grid { display: grid; gap: 4px; }
.footer { padding: 26px 24px 46px; color: var(--muted); text-align: center; }

.compact-text { margin: 4px 0 0; font-size: 0.94rem; }
.dork-result { margin-top: 14px; }
.dork-item { grid-template-columns: 1fr auto; align-items: center; }
.dork-query { word-break: break-word; }
.dork-open { white-space: nowrap; }

/* CVSS v4.0 tidy layout */
.cvss-layout {
  display: grid;
  gap: 18px;
}

.cvss-group {
  border: 1px solid rgba(255, 202, 26, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(6, 23, 45, 0.46);
}

.cvss-group h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.cvss-group h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 202, 26, 0.10);
}

.cvss-grid-v4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cvss-grid-v4.impact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cvss-field {
  display: flex;
  flex-direction: column;
  min-height: 104px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 202, 26, 0.16);
  border-radius: 16px;
  background: rgba(4, 15, 30, 0.52);
  color: var(--muted);
  font-weight: 500;
}

.cvss-field-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cvss-field-head strong {
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cvss-field-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: lowercase;
}

.cvss-field small { display: none; }

.cvss-field select {
  margin-top: auto;
  min-height: 48px;
  font-size: 0.88rem;
  line-height: 1.35;
  background: rgba(7, 26, 51, 0.94);
}

@media (max-width: 980px) {
  .cards, .two-column, .cvss-grid, .score-box { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 52px; }
  .cvss-grid-v4,
  .cvss-grid-v4.impact-grid {
    grid-template-columns: 1fr;
  }
  .cvss-field { min-height: auto; }
}


/* Final layout refinements */
.topbar {
  margin-bottom: 48px;
}
.hero-content {
  padding-bottom: 64px;
}
.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.hero-content p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 24px;
}
.container {
  padding-top: 34px;
}
.tool:first-child {
  margin-top: 0;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading .eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.section-heading p:not(.eyebrow) {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.panel h3 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (max-width: 980px) {
  .topbar {
    margin-bottom: 40px;
  }
  .hero-content {
    padding-bottom: 54px;
  }
}
