:root {
  color-scheme: dark;
  --bg: #09101d;
  --panel: rgba(18, 29, 49, 0.88);
  --panel-2: #121e32;
  --line: rgba(145, 167, 204, 0.18);
  --muted: #93a3bd;
  --text: #f5f7fb;
  --accent: #7c8cff;
  --accent-2: #5eead4;
  --danger: #fb7185;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 50% -10%, #172949 0, transparent 46%), var(--bg);
  color: var(--text);
}

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

.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 30px; }
.hero { padding: 24px 4px 42px; max-width: 730px; }
.eyebrow, .overline { color: var(--accent-2); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 7px rgba(94, 234, 212, .12); }
h1 { margin: 18px 0 14px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 630px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.privacy-note { display: inline-flex; gap: 9px; align-items: center; margin-top: 19px; padding: 10px 13px; border: 1px solid rgba(94, 234, 212, .22); border-radius: 10px; color: #bdeee6; background: rgba(94, 234, 212, .06); font-size: .84rem; }

.workflow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel, .score-section { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(22, 35, 58, .95), rgba(13, 22, 38, .92)); box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.panel { padding: 25px; }
.panel-heading, .score-heading { display: flex; align-items: center; gap: 13px; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(124, 140, 255, .14); color: #b3bcff; font-size: .77rem; font-weight: 900; }
.overline { margin: 0 0 4px; font-size: .65rem; }
h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.panel-intro { color: var(--muted); line-height: 1.55; font-size: .87rem; margin: 18px 0 22px; }
label { display: block; color: #c5d0e3; font-size: .78rem; font-weight: 700; margin-top: 15px; }
input, textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: rgba(5, 12, 24, .62); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { border-color: rgba(124, 140, 255, .8); box-shadow: 0 0 0 3px rgba(124, 140, 255, .12); }
input::placeholder, textarea::placeholder { color: #66758f; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 142px; margin-top: 5px; border: 1px dashed rgba(124, 140, 255, .65); border-radius: 14px; color: #dae0ff; background: rgba(124, 140, 255, .07); text-align: center; cursor: pointer; transition: background .2s, transform .2s; }
.dropzone:hover, .dropzone.dragging { background: rgba(124, 140, 255, .14); transform: translateY(-1px); }
.dropzone input { display: none; }
.upload-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: #0b1220; font-size: 1.4rem; font-weight: 800; }
.dropzone small { margin-top: 6px; color: var(--muted); font-weight: 500; }
.button { border: 0; border-radius: 11px; padding: 12px 17px; color: #f8fbff; font-weight: 800; transition: transform .2s, filter .2s, opacity .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-secondary { width: 100%; margin-top: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.button-primary { background: linear-gradient(120deg, #6d7df8, #8b5cf6); box-shadow: 0 10px 28px rgba(109, 125, 248, .25); }
.button-primary span { margin-left: 7px; font-size: 1.1rem; }
.status { min-height: 23px; margin-top: 11px; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.status.success { color: #8de9d8; }
.status.error { color: #fda4af; }
.subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); color: #e7ebf6; font-size: .83rem; font-weight: 800; }
.subheading small { color: var(--muted); font-size: .72rem; font-weight: 500; }

.score-section { margin-top: 20px; padding: 25px; }
.score-heading { justify-content: space-between; }
.result { margin-top: 23px; padding: 22px; border: 1px solid rgba(124, 140, 255, .3); border-radius: 15px; background: rgba(124, 140, 255, .08); }
.result-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.result h3 { margin: 0 0 8px; font-size: 1.35rem; }
.result p { color: var(--muted); line-height: 1.55; margin: 6px 0; font-size: .88rem; }
.score-number { color: #b8c0ff; font-size: 2.1rem; font-weight: 900; white-space: nowrap; }
.score-bar { height: 7px; margin: 18px 0 12px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.result-note { color: #aebbd0 !important; font-size: .77rem !important; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 24px 4px 0; color: #65758f; font-size: .74rem; }
footer a { color: #9ca9ff; text-decoration: none; }

@media (max-width: 800px) {
  .shell { width: min(100% - 24px, 620px); padding-top: 28px; }
  .workflow { grid-template-columns: 1fr; }
  .hero { padding-bottom: 27px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
}
@media (max-width: 500px) {
  .panel, .score-section { padding: 18px; border-radius: 15px; }
  .two-col, .score-heading, .result-top, footer { grid-template-columns: 1fr; display: grid; }
  .score-heading { gap: 17px; }
  .button-primary { width: 100%; }
}
