:root {
  color-scheme: dark;
  --ink: #07101d;
  --ink-2: #0b1727;
  --glass: rgba(247, 252, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(255, 255, 255, 0.45);
  --text: #102033;
  --muted: #65798a;
  --cyan: #24d8c4;
  --blue: #7cb8ff;
  --danger: #ff4f73;
  --warn: #ffb02e;
  --ok: #17b890;
  --radius-xl: 34px;
  --radius-lg: 24px;
  font-family: ui-rounded, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #f7fbff;
  background:
    radial-gradient(circle at 20% 20%, rgba(52, 239, 214, 0.28), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(125, 179, 255, 0.28), transparent 28rem),
    #07101d url("./assets/liquid_energy_background.png") center / cover fixed no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(2, 8, 20, 0.72), rgba(6, 21, 33, 0.26) 45%, rgba(1, 8, 18, 0.68)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 90px);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 42rem;
  height: 42rem;
  right: -14rem;
  top: 6rem;
  border: 1px solid rgba(109, 245, 226, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(109, 245, 226, 0.08);
  animation: drift 11s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100vw - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 132px;
}

.brand-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(1.5);
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: #a9eaff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: #cfe1f0;
  font-size: 16px;
  line-height: 1.7;
}

.status-pill {
  align-self: start;
  margin-top: 10px;
  padding: 12px 18px;
  color: #dffcff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px);
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.2fr);
  gap: 24px;
  margin-top: 28px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: 28px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--glass-strong), rgba(235, 249, 255, 0.64));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(34px) saturate(1.45);
  animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.result-card {
  animation-delay: 0.08s;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  height: 42%;
  border-radius: calc(var(--radius-xl) - 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.card-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 800;
}

.card-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.drop-zone {
  position: relative;
  z-index: 1;
  height: 214px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(29, 108, 129, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 30%, rgba(36, 216, 196, 0.14), transparent 8rem),
    rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.drop-zone strong {
  font-size: 19px;
}

.drop-zone em {
  color: var(--muted);
  font-style: normal;
}

.drop-zone.is-dragging {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(36, 216, 196, 0.9);
  background: rgba(255, 255, 255, 0.74);
}

.drop-orb {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(36, 216, 196, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(36, 216, 196, 0.14));
  box-shadow: 0 0 0 12px rgba(36, 216, 196, 0.07), 0 16px 38px rgba(13, 98, 116, 0.18);
}

.file-readout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 14px 14px 14px 18px;
  border-radius: 20px;
  color: #254051;
  background: rgba(255, 255, 255, 0.62);
}

.icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #375465;
  background: rgba(14, 30, 50, 0.08);
}

.field-grid {
  display: grid;
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(20, 80, 110, 0.12);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

input[type="text"]:focus {
  border-color: rgba(36, 216, 196, 0.75);
  box-shadow: 0 0 0 5px rgba(36, 216, 196, 0.12);
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: white;
  background: linear-gradient(135deg, #10243a, #0c5d68);
  box-shadow: 0 22px 50px rgba(10, 62, 79, 0.28);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(10, 62, 79, 0.36);
}

.button-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.ghost-button {
  padding: 10px 15px;
  color: #193246;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 18px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.metric small {
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.metric.error strong {
  color: var(--danger);
}

.metric.warn strong {
  color: #9b6500;
}

.metric.pass strong {
  color: var(--ok);
}

.result-panel {
  position: relative;
  z-index: 1;
  height: 394px;
  overflow: auto;
  padding: 18px;
  color: #14263a;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.finding {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.finding.error {
  border-left: 4px solid var(--danger);
}

.finding.warn {
  border-left: 4px solid var(--warn);
}

.finding b {
  color: #102033;
}

.muted {
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 34px, 0) scale(1.06);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: auto 1fr;
  }

  .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .glass-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 20px;
  }

  .hero {
    gap: 14px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .summary {
    font-size: 14px;
  }

  .glass-card {
    padding: 20px;
    border-radius: 26px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .result-panel {
    height: 360px;
  }
}
