:root {
  --bg: #eef4f7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --line: rgba(13, 73, 98, 0.12);
  --text: #173145;
  --muted: #5c7181;
  --brand-deep: #0d4962;
  --brand: #15708d;
  --brand-soft: #d7eef3;
  --accent: #53c0cc;
  --success: #0f8b6a;
  --danger: #b84b5d;
  --warning: #b07618;
  --shadow: 0 28px 70px rgba(12, 44, 64, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(83, 192, 204, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(21, 112, 141, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fcfd 0%, var(--bg) 100%);
  color: var(--text);
}

body {
  padding: 28px;
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
}

.brand-logo {
  display: block;
  width: min(240px, 52vw);
  height: auto;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  max-width: 10ch;
}

.hero-copy {
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(13, 73, 98, 0.96), rgba(21, 112, 141, 0.92)),
    var(--surface);
  color: white;
}

.hero-label {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-list,
.clean-list,
.result-list {
  margin: 0;
  padding-left: 18px;
}

.hero-list li,
.clean-list li,
.result-list li {
  margin-bottom: 10px;
  line-height: 1.55;
}

.hero-card .hero-list {
  padding-left: 20px;
}

.hero-card .hero-list li {
  margin-bottom: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.hero-card a {
  color: rgba(255, 255, 255, 0.92);
}

.layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.section + .section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.section-head p,
.result-summary,
.info-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 600;
}

label span {
  display: block;
}

input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(13, 73, 98, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(83, 192, 204, 0.28);
  border-color: var(--brand);
}

.check,
.pill-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.check input,
.pill-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin: 0;
  flex: 0 0 auto;
}

.alert-check {
  background: rgba(184, 75, 93, 0.09);
  border-color: rgba(184, 75, 93, 0.22);
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: white;
  box-shadow: 0 16px 28px rgba(13, 73, 98, 0.22);
}

.secondary,
.ghost {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-deep);
  border: 1px solid rgba(13, 73, 98, 0.12);
}

.result-panel {
  position: sticky;
  top: 28px;
  align-self: start;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.result-badge.pending {
  background: rgba(176, 118, 24, 0.12);
  color: var(--warning);
}

.result-badge.success {
  background: rgba(15, 139, 106, 0.12);
  color: var(--success);
}

.result-badge.danger {
  background: rgba(184, 75, 93, 0.12);
  color: var(--danger);
}

.result-badge.caution {
  background: rgba(13, 73, 98, 0.12);
  color: var(--brand-deep);
}

.result-block + .result-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.result-list.muted li {
  color: var(--muted);
}

.export-box {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
}

.info-panel {
  margin-top: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

a {
  color: var(--brand-deep);
}

@media (max-width: 1080px) {
  .hero,
  .layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .panel,
  .hero-card {
    padding: 18px;
    border-radius: 22px;
  }

  .grid.two,
  .pill-grid,
  .actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }
}
