:root {
  --ink: #112d2b;
  --muted: #617572;
  --paper: #f5f7f2;
  --white: #fff;
  --line: #dbe3dc;
  --green: #0e665b;
  --mint: #a9e2c7;
  --orange: #e66c37;
  --amber: #c48525;
  --red: #b94a3b;
  --shadow: 0 22px 65px rgba(29, 57, 50, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, sans-serif; }
button, textarea, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.topbar { height: 76px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(17,45,43,.1); background: rgba(245,247,242,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -.5px; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 27px; height: 26px; padding: 5px; border-radius: 7px; background: var(--ink); }
.brand-mark i { display: block; width: 3px; border-radius: 3px; background: var(--mint); transform: rotate(32deg); }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 14px; }.brand-mark i:nth-child(3) { height: 10px; }
nav { display: flex; align-items: center; gap: 30px; }
.privacy-note { color: var(--muted); font-size: 12px; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #39a77b; box-shadow: 0 0 0 4px rgba(57,167,123,.12); }
.text-button { border: 0; border-bottom: 1px solid var(--ink); padding: 5px 0; background: none; font-size: 12px; font-weight: 700; cursor: pointer; }

main { min-height: calc(100vh - 76px); }
.hero { min-height: 860px; padding: 92px 24px 110px; text-align: center; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero::before { width: 480px; height: 480px; top: 130px; left: -330px; border: 1px solid rgba(14,102,91,.15); box-shadow: 0 0 0 90px rgba(14,102,91,.025), 0 0 0 180px rgba(14,102,91,.02); }
.hero::after { width: 380px; height: 380px; right: -220px; top: 300px; background: rgba(169,226,199,.13); }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--green); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 1.7px; }
.eyebrow span { width: 28px; height: 1px; background: var(--green); }
.hero h1, .report-heading h1 { margin: 22px 0; font-size: clamp(48px, 6.5vw, 84px); line-height: .99; letter-spacing: -4px; }
.hero h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 680px; margin: 0 auto 42px; color: #526a66; font-size: 18px; line-height: 1.7; }
.input-card { width: min(940px, 100%); margin: 0 auto; padding: 25px; text-align: left; background: var(--white); border: 1px solid rgba(17,45,43,.12); box-shadow: var(--shadow); position: relative; z-index: 2; }
.input-card-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; }
.input-card-head label { font-size: 15px; font-weight: 800; }
.input-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.input-card-head span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; }
.code-editor { display: grid; grid-template-columns: 48px minmax(0, 1fr); border: 1px solid #cfd9d2; border-radius: 3px; overflow: hidden; background: #fbfcfa; transition: border .2s, box-shadow .2s; }
.code-editor:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,102,91,.08); }
.line-numbers { height: 254px; margin: 0; padding: 18px 12px; overflow: hidden; border-right: 1px solid #e0e6e1; color: #98a7a2; background: #f0f3ef; font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.7; text-align: right; user-select: none; }
.editor-stage { min-width: 0; position: relative; background: #fbfcfa; }
.code-input, .highlight-layer { width: 100%; height: 254px; margin: 0; padding: 18px 20px; border: 0; border-radius: 0; font-family: "DM Mono", monospace; font-size: 12.5px; line-height: 1.7; tab-size: 2; white-space: pre; }
.highlight-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; color: #405552; background: transparent; pointer-events: none; }
.code-input { display: block; position: relative; z-index: 1; resize: vertical; overflow: auto; outline: none; color: transparent; caret-color: #123d38; background: transparent; -webkit-text-fill-color: transparent; }
.code-input::placeholder { color: #8d9a96; -webkit-text-fill-color: #8d9a96; }
.code-input::selection { background: rgba(56,130,113,.22); }
.syntax-field { color: #087367; font-weight: 500; }.syntax-colon { color: #78908a; }.syntax-parameter { color: #087367; font-weight: 500; }.syntax-ip { color: #b4562d; }.syntax-email { color: #704f9b; }.syntax-pass { color: #087153; font-weight: 500; background: rgba(25,142,102,.09); }.syntax-fail { color: #b23e36; font-weight: 500; background: rgba(190,65,53,.09); }.syntax-protocol { color: #306e9b; }.syntax-date { color: #8b5d16; }
.editor-legend { display: flex; align-items: center; gap: 17px; min-height: 31px; padding: 7px 4px 0; color: #72837e; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .2px; }
.editor-legend span { display: flex; align-items: center; gap: 5px; }.editor-legend i { width: 7px; height: 7px; border-radius: 2px; }.legend-field { background: #087367; }.legend-address { background: #704f9b; }.legend-pass { background: #15966d; }.legend-fail { background: #c35045; }.editor-legend .editor-mode { margin-left: auto; letter-spacing: .7px; }
.input-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.sample-button { border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.sample-button::before { content: "↳"; margin-right: 7px; }
.analyze-button { display: flex; align-items: center; gap: 40px; border: 0; padding: 15px 18px 15px 22px; color: white; background: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.analyze-button:hover { background: var(--green); transform: translateY(-1px); }
.analyze-button span { font-size: 18px; }
.input-error { min-height: 0; margin: 10px 0 0; color: var(--red); font-size: 12px; }
.trust-row { display: flex; justify-content: center; gap: 46px; margin-top: 36px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.trust-row b { margin-right: 8px; color: var(--green); font-family: "DM Mono", monospace; font-weight: 400; }

.report { max-width: 1440px; margin: 0 auto; padding: 64px clamp(20px, 5vw, 72px) 110px; }
.report-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 38px; }
.report-heading .eyebrow { justify-content: start; }
.report-heading h1 { margin: 13px 0 10px; font-size: clamp(38px, 5vw, 61px); }
.report-heading p { margin: 0; color: #526a66; font-size: 14px; }
.outline-button { padding: 12px 16px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.outline-button:hover { background: white; }
.summary-grid { display: grid; grid-template-columns: 2.2fr repeat(3, 1fr); background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(29,57,50,.06); }
.summary-grid article { min-height: 168px; padding: 24px; border-right: 1px solid var(--line); }
.summary-grid article:last-child { border: 0; }
.card-label, .section-kicker { color: #526a66; font-family: "DM Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 1.3px; }
.verdict-main { display: flex; gap: 16px; align-items: center; margin-top: 23px; }
.verdict-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--amber); font-weight: 800; }
.verdict-card.danger .verdict-icon { background: var(--red); }.verdict-card.safe .verdict-icon { background: var(--green); }
.verdict-main h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.5px; }
.verdict-main p, .metric-card p { margin: 0; color: #526a66; font-size: 12.5px; line-height: 1.55; }
.metric-card strong { display: block; margin: 19px 0 3px; font-size: 34px; letter-spacing: -1.5px; }
.panel { margin-top: 24px; padding: 30px; background: var(--white); border: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.8px; }
.section-heading > p { max-width: 420px; margin: 0; color: #526a66; font-size: 13px; line-height: 1.6; }
.auth-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 27px; border: 1px solid var(--line); }
.auth-item { min-height: 154px; padding: 21px; border-right: 1px solid var(--line); }
.auth-item:last-child { border: 0; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-name { font-family: "DM Mono", monospace; font-size: 13px; font-weight: 500; }
.pill { padding: 5px 9px; border-radius: 20px; font-family: "DM Mono", monospace; font-size: 9.5px; font-weight: 500; text-transform: uppercase; }
.pill.pass { color: #075a4d; background: #d9f3e6; }.pill.fail { color: #963c32; background: #fae2dd; }.pill.neutral { color: #66736d; background: #edf0ec; }
.auth-item h3 { margin: 22px 0 7px; font-size: 15px; }.auth-item p { margin: 0; color: #526a66; font-size: 12px; line-height: 1.6; }
.route-controls { display: flex; gap: 6px; }.route-controls button { width: 34px; height: 32px; border: 1px solid var(--line); background: transparent; cursor: pointer; }.route-controls button:hover { background: var(--paper); }
.route-tip { margin-top: 8px; color: #647a75; font-size: 11px; text-align: right; }
.route-scroll { margin-top: 12px; overflow-x: auto; scrollbar-width: thin; cursor: grab; user-select: none; }.route-scroll.dragging { cursor: grabbing; }
.route-track { display: flex; min-width: max-content; padding: 35px 35px 24px; }
.route-node { width: 190px; padding: 0; border: 0; color: inherit; background: transparent; position: relative; text-align: center; cursor: pointer; }
.route-node::before { content: ""; position: absolute; top: 20px; left: 0; width: 100%; height: 1px; background: #b9cac2; }.route-node:first-child::before { left: 50%; width: 50%; }.route-node:last-child::before { width: 50%; }
.node-dot { display: grid; place-items: center; width: 41px; height: 41px; margin: 0 auto 14px; border: 6px solid white; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 0 0 1px var(--green); position: relative; z-index: 1; font-family: "DM Mono", monospace; font-size: 10px; transition: transform .2s; }
.route-node:hover .node-dot, .route-node.active .node-dot { transform: scale(1.12); background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.route-node h3 { overflow: hidden; margin: 0 14px 5px; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }.route-node p { margin: 0; color: #526a66; font-family: "DM Mono", monospace; font-size: 10px; }.node-role { display: block; width: fit-content; margin: 10px auto 0; padding: 4px 7px; border-radius: 10px; color: #526a66; background: #edf2ed; font-family: "DM Mono", monospace; font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.route-detail { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-top: 15px; padding: 20px; background: #f3f7f2; border-left: 3px solid var(--orange); font-size: 12px; line-height: 1.5; }
.route-detail b { display: block; margin-bottom: 5px; color: #526a66; font-family: "DM Mono", monospace; font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; }.route-detail span { overflow-wrap: anywhere; }
.hop-dialog { width: min(760px, calc(100% - 32px)); max-height: min(850px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 0; border-radius: 4px; color: var(--ink); background: #fbfcf9; box-shadow: 0 30px 90px rgba(5,29,26,.34); }
.hop-dialog.fallback-open { display: block; position: fixed; inset: 50% auto auto 50%; z-index: 100; transform: translate(-50%, -50%); }
.hop-dialog::backdrop { background: rgba(7,31,28,.66); backdrop-filter: blur(5px); }
.hop-dialog-head { display: flex; align-items: start; justify-content: space-between; padding: 27px 30px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: rgba(251,252,249,.96); backdrop-filter: blur(10px); }
.hop-dialog-head h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.8px; overflow-wrap: anywhere; }
.dialog-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }.dialog-close:hover { color: white; background: var(--ink); }
.hop-overview { padding: 25px 30px; }
.hop-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }.hop-status { padding: 6px 9px; border-radius: 15px; color: #526a66; background: #e9eeea; font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }.hop-status.secure { color: #075a4d; background: #d9f3e6; }.hop-status.warning { color: #963c32; background: #fae2dd; }
.hop-explanation { margin: 0 0 24px; color: #405a55; font-size: 14px; line-height: 1.7; }
.hop-journey { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; padding: 20px; border: 1px solid var(--line); background: white; }.hop-arrow { color: var(--orange); font-size: 22px; text-align: center; }.hop-endpoint small, .hop-fact small { display: block; margin-bottom: 6px; color: #637772; font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }.hop-endpoint strong { display: block; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }.hop-endpoint span { display: block; margin-top: 5px; color: #60736f; font-family: "DM Mono", monospace; font-size: 10px; overflow-wrap: anywhere; }
.hop-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 18px; border: 1px solid var(--line); }.hop-fact { min-height: 92px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.hop-fact:nth-child(2n) { border-right: 0; }.hop-fact:nth-last-child(-n+2) { border-bottom: 0; }.hop-fact strong { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hop-evidence { margin-top: 25px; }.hop-evidence h3 { margin: 0 0 5px; font-size: 14px; }.hop-evidence > p { margin: 0 0 12px; color: #60736f; font-size: 11px; }.hop-evidence .raw-value { max-height: 190px; overflow: auto; }
.hop-dialog-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 17px 30px; border-top: 1px solid var(--line); background: #f0f3ef; }.hop-dialog-nav button { border: 0; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }.hop-dialog-nav button:last-child { text-align: right; }.hop-dialog-nav button:disabled { opacity: .35; cursor: default; }.hop-dialog-nav span { color: #637772; font-family: "DM Mono", monospace; font-size: 10px; }
.details-section { margin-top: 65px; }
.search-box { display: flex; align-items: center; width: min(360px, 100%); padding: 10px 13px; border-bottom: 1px solid #aab9b1; gap: 8px; }
.search-box input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; margin: 25px 0; padding-bottom: 4px; }
.filter-button { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: #526a66; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-button.active { border-color: var(--ink); color: white; background: var(--ink); }
.details-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.category-summary { height: fit-content; padding: 20px; background: #e9eee8; position: sticky; top: 100px; }
.category-summary h3 { margin: 0 0 14px; font-size: 14px; }.category-summary p { margin: 0 0 17px; color: #526a66; font-size: 12px; line-height: 1.6; }.category-summary strong { font-family: "DM Mono", monospace; font-size: 28px; }.category-summary small { display: block; margin-top: 3px; color: #526a66; font-size: 9.5px; text-transform: uppercase; }
.field-list { border-top: 1px solid var(--line); }
.field-item { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.field-button { display: grid; grid-template-columns: 220px 1fr 30px; align-items: center; gap: 20px; width: 100%; padding: 18px 20px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.field-button:hover { background: white; }
.field-title code { display: block; margin-bottom: 5px; color: var(--green); font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }.field-title strong { font-size: 14px; }
.field-preview { overflow: hidden; color: #526a66; font-family: "DM Mono", monospace; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.chevron { color: var(--muted); transition: transform .2s; }.field-item.open .chevron { transform: rotate(180deg); }
.field-body { display: none; padding: 0 20px 20px 260px; }.field-item.open .field-body { display: block; }
.explanation { margin: 0 0 14px; color: #344f4a; font-size: 13px; line-height: 1.7; }.raw-value { margin: 0; padding: 15px; overflow-wrap: anywhere; color: #294944; background: #e9efea; font-family: "DM Mono", monospace; font-size: 11px; line-height: 1.7; user-select: text; }
.field-meta { margin-top: 11px; color: #687d77; font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; }
.empty-state { padding: 40px; color: var(--muted); text-align: center; }

footer { display: flex; align-items: center; gap: 24px; padding: 28px clamp(22px, 5vw, 76px); color: rgba(255,255,255,.78); background: var(--ink); font-size: 12px; }
footer span { color: white; font-size: 15px; font-weight: 800; } footer p { margin: 0; } footer small { margin-left: auto; }

@media (max-width: 900px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }.summary-grid article:nth-child(2) { border-right: 0; }.summary-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .auth-grid { grid-template-columns: 1fr 1fr; }.auth-item:nth-child(2) { border-right: 0; }.auth-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .details-layout { grid-template-columns: 1fr; }.category-summary { display: none; }
  .field-button { grid-template-columns: 180px 1fr 20px; }.field-body { padding-left: 220px; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }.privacy-note { display: none; }
  .hero { padding: 64px 15px 75px; min-height: auto; }.hero h1 { letter-spacing: -2.8px; }.hero-copy { font-size: 16px; }.input-card { padding: 17px; }.input-card-head p { display: none; }.line-numbers, .code-input, .highlight-layer { height: 245px; }.code-editor { grid-template-columns: 40px minmax(0, 1fr); }.line-numbers { padding-inline: 8px; }.code-input, .highlight-layer { padding-inline: 14px; font-size: 12px; }.editor-legend { gap: 10px; }.editor-mode { display: none !important; }.input-actions { align-items: stretch; gap: 12px; flex-direction: column-reverse; }.analyze-button { justify-content: space-between; }.sample-button { padding: 10px; }
  .trust-row { display: none; }.report { padding: 43px 14px 70px; }.report-heading { align-items: start; gap: 20px; }.report-heading h1 { letter-spacing: -2px; }.outline-button { flex: 0 0 auto; font-size: 0; }.outline-button::after { content: "Copy"; font-size: 10px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }.summary-grid article { min-height: 132px; padding: 17px; }.verdict-card { grid-column: span 2; }.summary-grid article:nth-child(1) { border-right: 0; }.summary-grid article:nth-child(2) { border-right: 1px solid var(--line); }.metric-card:last-child { grid-column: span 2; }.metric-card strong { font-size: 28px; }
  .panel { padding: 20px 16px; }.section-heading { align-items: start; }.section-heading > p { display: none; }.auth-grid { grid-template-columns: 1fr; }.auth-item { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }.auth-item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .route-node { width: 155px; }.route-tip { text-align: left; }.route-detail { grid-template-columns: 1fr; gap: 12px; }
  .hop-dialog-head, .hop-overview { padding-left: 20px; padding-right: 20px; }.hop-dialog-head h2 { font-size: 21px; }.hop-journey { grid-template-columns: 1fr; gap: 13px; }.hop-arrow { transform: rotate(90deg); }.hop-facts { grid-template-columns: 1fr; }.hop-fact { min-height: auto; border-right: 0; }.hop-fact:nth-last-child(2) { border-bottom: 1px solid var(--line); }.hop-dialog-nav { padding-inline: 20px; }.hop-dialog-nav span { display: none; }
  .details-heading { flex-direction: column; }.search-box { width: 100%; }.details-section { margin-top: 45px; }.field-button { grid-template-columns: 1fr 20px; gap: 10px; }.field-preview { grid-column: 1; grid-row: 2; }.chevron { grid-column: 2; grid-row: 1 / span 2; }.field-body { padding: 0 20px 18px; }
  footer { align-items: start; flex-direction: column; gap: 8px; } footer small { margin: 8px 0 0; }
}
