:root {
  --navy: #002550;
  --navy-dark: #001a3b;
  --teal: #009488;
  --teal-dark: #008379;
  --text: #182235;
  --muted: #5a6575;
  --line: #dce2ea;
  --surface: #ffffff;
  --page: #f3f5f8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-mark {
  width: 118px;
  height: 44px;
  display: block;
  overflow: hidden;
  position: relative;
}

.logo-mark img {
  width: 148px;
  height: 148px;
  max-width: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 148, 136, 0.15);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  padding: 42px 0;
}

.intro {
  grid-row: span 2;
  min-height: 520px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 20px;
  color: #80dfd7;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  max-width: 760px;
}

.lede {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.facts div,
.tool-panel,
.output-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.facts div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.facts span,
.output-header span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.facts span {
  color: rgba(255, 255, 255, 0.58);
}

.facts strong,
.output-header strong {
  display: block;
  font-size: 16px;
}

.tool-panel {
  padding: 24px;
}

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

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 148, 136, 0.14);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.output-panel {
  min-height: 320px;
  overflow: hidden;
}

.output-header {
  min-height: 70px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

#copyButton {
  min-height: 36px;
  padding: 0 12px;
  background: var(--navy);
}

pre {
  margin: 0;
  min-height: 248px;
  max-height: 560px;
  overflow: auto;
  padding: 18px;
  color: #eef6f8;
  background: #101824;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .intro,
  .tool-panel {
    padding: 22px;
  }
}
