:root {
  color-scheme: dark;
  --bg: #030806;
  --panel: #0c1712;
  --panel-deep: #09120e;
  --line: rgba(148, 163, 184, .2);
  --line-green: rgba(49, 226, 116, .38);
  --text: #f5f7f6;
  --muted: #a3b1a9;
  --quiet: #78877d;
  --green: #31e274;
  --green-soft: #9cf9b7;
  --red: #ff8d88;
  --amber: #f2cc5d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(49, 226, 116, .042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 226, 116, .035) 1px, transparent 1px),
    radial-gradient(ellipse 70% 35% at 18% 4%, rgba(49, 226, 116, .105), transparent 72%),
    linear-gradient(180deg, #020605, #07110d 50%, #030806);
  background-size: 48px 48px, 48px 48px, auto, auto;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.site-header {
  background: rgba(2, 8, 6, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  font-family: "Major Mono Display", "JetBrains Mono", ui-monospace, monospace;
  color: #fff;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.brand span { color: var(--green); }
.header-divider { height: 23px; width: 1px; background: var(--line); }
.header-product { color: #e7f0e9; text-decoration: none; font-size: .87rem; font-weight: 800; white-space: nowrap; }
.header-links { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.header-links a { color: var(--muted); text-decoration: none; font-size: .83rem; font-weight: 700; white-space: nowrap; }
.header-links a:hover { color: var(--green-soft); }
.module-shell { width: min(1280px, calc(100% - 48px)); margin: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 68px 0 56px;
}
.hero-copy { min-width: 0; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line-green);
  border-radius: 100px;
  background: rgba(49, 226, 116, .085);
  color: #ddf9e3;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.live-dot { width: 7px; height: 7px; border-radius: 100%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.hero-label-divider { color: var(--quiet); }
h1 { margin: 20px 0 16px; max-width: 860px; font-size: clamp(2.9rem, 4.6vw, 5.1rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 900; }
h1 span { display: block; color: var(--green-soft); }
.hero-description { color: #c5d1c8; max-width: 660px; font-size: 1.12rem; line-height: 1.7; margin: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: 25px; color: #dae8dd; font-size: .8rem; font-weight: 750; }
.hero-points b { color: var(--green); padding-right: 4px; }
.scope-card {
  padding: 24px;
  border: 1px solid var(--line-green);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 37, 25, .93), rgba(9, 18, 14, .93));
  box-shadow: 0 22px 70px rgba(0,0,0,.23);
}
.scope-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 8px; }
.scope-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-green); border-radius: 8px; background: rgba(49,226,116,.1); color: var(--green); font-size: 1.6rem; }
.environment-pill { color: #b5ffc8; font-size: .62rem; font-weight: 900; letter-spacing: .11em; }
.scope-card strong { font-size: 1.1rem; }
.scope-card p { color: var(--muted); font-size: .84rem; line-height: 1.65; margin: 10px 0 0; }
.scope-card .preview-disclosure { border-top: 1px solid var(--line); color: #d4e8d9; margin-top: 19px; padding-top: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.tool-card { min-width: 0; padding: clamp(23px, 2.3vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(13,27,20,.98), rgba(7,15,11,.98)); box-shadow: 0 22px 80px rgba(0,0,0,.2); }
.results-card { position: sticky; top: 22px; }
.card-heading { display: flex; align-items: center; gap: 17px; }
.step-number { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line-green); border-radius: 9px; color: var(--green); background: rgba(49,226,116,.07); font: 800 1rem ui-monospace, monospace; }
.section-kicker { color: var(--green); font-size: .64rem; font-weight: 900; letter-spacing: .18em; margin: 0 0 2px; }
h2 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.25; letter-spacing: -.03em; margin: 0; }
.card-description { margin: 17px 0 28px; color: var(--muted); font-size: .9rem; }
.field-group { margin: 0 0 19px; min-width: 0; }
label { display: block; color: #e9f1eb; font-weight: 800; font-size: .84rem; margin-bottom: 8px; }
.label-meta { color: var(--quiet); font-weight: 650; margin-left: 5px; }
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #34483a;
  border-radius: 8px;
  background: #07110c;
  color: var(--text);
  outline: none;
}
select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg,transparent 50%,#98b3a0 50%),linear-gradient(135deg,#98b3a0 50%,transparent 50%); background-position: calc(100% - 21px) 50%,calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #708073; }
textarea { height: 212px; resize: vertical; font: .78rem/1.55 "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
input[type=file] { padding: 8px !important; font-size: .78rem; color: var(--muted) !important; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 11px; border: 1px solid var(--line-green); border-radius: 5px; color: #d9f8df; background: rgba(49,226,116,.1); font: inherit; font-weight: 800; cursor: pointer; }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: #5b8063; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49,226,116,.13); }
.field-help { color: var(--muted); font-size: .76rem; line-height: 1.6; margin: 7px 0 0; overflow-wrap: anywhere; }
.sample-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 13px 0; margin: 2px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sample-label { color: var(--quiet); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; min-height: 41px; padding: 9px 14px; font-size: .8rem; font-weight: 850; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-quiet { border: 1px solid var(--line); color: #d5e6d9; background: rgba(255,255,255,.035); }
.btn-quiet:hover { border-color: var(--line-green); background: rgba(49,226,116,.08); }
.btn-secondary { border: 1px solid var(--line-green); color: #d5f6de; background: rgba(49,226,116,.085); }
.btn-secondary:hover { background: rgba(49,226,116,.17); }
.btn-primary { width: 100%; min-height: 53px; justify-content: space-between; padding: 11px 18px; border: 1px solid var(--green); color: #04130a; background: linear-gradient(135deg,#2ccc67,#52ec85); font-size: .96rem; }
.btn-primary span { font-size: .75rem; font-weight: 900; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 7px 0 22px; color: #d1dfd4; font-weight: 600; }
.checkbox-row input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; }
.authorization-panel { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.authorization-heading { display: flex; align-items: center; gap: 9px; color: var(--green-soft); font-size: .75rem; font-weight: 900; letter-spacing: .04em; margin-bottom: 14px; }
.lock-symbol { font-size: 1rem; }
.authorization-panel label { margin-bottom: 6px; }
.authorization-panel .field-help { margin-bottom: 0; }
.action-area { margin-top: 18px; }
.action-note { color: var(--quiet); font-size: .71rem; line-height: 1.6; margin: 9px 0 0; }
.generation { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.generation summary, .xml-preview summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 17px 0; color: #e8f4eb; font-size: .82rem; font-weight: 850; }
.generation summary::after, .xml-preview summary::after { content: "+"; color: var(--green); margin-left: auto; font-size: 1.1rem; }
.generation[open] summary::after, .xml-preview[open] summary::after { content: "−"; }
.generation-tag { font-size: .6rem; font-weight: 900; letter-spacing: .1em; color: var(--quiet); }
.generation-body { padding-bottom: 20px; }
.generation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.generation-body .btn { width: 100%; }
.operation-note { color: var(--muted); font: .7rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.operation-note:empty { display: none; }
.retry-button { width: 100%; margin-top: 5px; }
.clear-button { background: transparent; border: 0; color: #a4b6a8; padding: 10px 0 0; margin-top: 11px; font-size: .72rem; font-weight: 750; }
.clear-button:hover { color: var(--text); text-decoration: underline; }
.status { padding: 16px 18px; border: 1px solid #34513b; border-radius: 8px; color: #d4e5d8; background: rgba(49,226,116,.06); font-size: .88rem; font-weight: 650; scroll-margin-top: 14px; }
.status::before { content: "◎"; color: var(--green); font-size: 1.1rem; margin-right: 11px; }
.status.pass { color: #d2f9dd; background: rgba(49,226,116,.105); border-color: var(--line-green); }
.status.pass::before { content: "✓"; }
.status.fail { color: #ffd0cc; background: rgba(255,109,101,.09); border-color: rgba(255,109,101,.3); }
.status.fail::before { content: "!"; color: var(--red); font-weight: 900; }
.billing-line { color: var(--muted); font-size: .78rem; margin: 11px 0 20px; min-height: 1.2em; }
.findings h3 { color: #e8f4eb; font-size: .9rem; margin: 20px 0 12px; }
.issue { padding: 14px 15px; margin: 10px 0; border: 1px solid rgba(255,109,101,.2); border-left: 3px solid var(--red); border-radius: 7px; background: rgba(255,109,101,.055); }
.issue.warning { border-color: rgba(242,204,93,.17); border-left-color: var(--amber); background: rgba(242,204,93,.045); }
.issue button { display: block; text-align: left; color: #fff1ed; font-weight: 750; padding: 0; border: 0; background: transparent; font-size: .82rem; }
.issue button:not(:disabled):hover { color: #ffb5ac; text-decoration: underline; }
.issue button:disabled { opacity: 1; cursor: default; }
.issue .field-help { font-size: .68rem; margin-top: 8px; white-space: pre-line; }
.coverage details { margin-top: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); }
.coverage summary { cursor: pointer; padding: 11px 0; color: #c4d4c8; font-size: .76rem; font-weight: 800; }
.coverage ul { color: var(--muted); font-size: .72rem; padding-left: 18px; overflow-wrap: anywhere; }
.coverage li { padding: 3px 0; }
.download-button { width: 100%; margin-top: 23px; }
button:disabled { opacity: .48; cursor: not-allowed; }
.xml-preview { margin-top: 13px; border-bottom: 1px solid var(--line); }
.xml-preview pre { padding: 15px; max-height: 390px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; color: #c6dfcb; background: #040b07; font: .69rem/1.6 "JetBrains Mono", ui-monospace, monospace; white-space: pre; tab-size: 2; }
.xml-preview mark { color: #201802; background: #f5d56b; border-radius: 2px; }
.privacy-note { display: flex; gap: 11px; margin-top: 24px; color: var(--quiet); font-size: .71rem; line-height: 1.6; }
.privacy-note > span { color: var(--green); font-size: 1.1rem; }
.privacy-note p { margin: 0; }
.module-footer { display: flex; gap: 20px; padding: 28px 0 46px; color: var(--quiet); font-size: .72rem; }
.module-footer strong { color: var(--green); white-space: nowrap; text-transform: uppercase; font-size: .67rem; letter-spacing: .1em; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (max-width: 930px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 49px 0 35px; }
  .scope-card { max-width: 680px; }
  .workspace { grid-template-columns: 1fr; }
  .results-card { position: static; }
}
@media (max-width: 650px) {
  .header-inner, .module-shell { width: min(100% - 32px, 1280px); }
  .header-inner { gap: 10px; min-height: 62px; }
  .header-product { font-size: .72rem; }
  .header-divider { height: 18px; }
  .header-links { gap: 8px; }
  .header-links a { display: none; }
  .header-links a:first-child { display: block; font-size: .7rem; }
  .hero { padding: 38px 0 28px; }
  h1 { font-size: clamp(2.4rem, 10.5vw, 3.5rem); }
  .hero-description { font-size: .96rem; }
  .hero-points { gap: 8px 14px; }
  .scope-card { padding: 18px; }
  .tool-card { padding: 20px 17px; }
  .sample-bar { align-items: flex-start; }
  .sample-actions { width: 100%; }
  .sample-actions .btn { flex: 1; min-height: 44px; }
  textarea { height: 185px; }
  .module-footer { display: block; }
  .module-footer strong { display: block; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
