:root {
  --ink: #102236;
  --muted: #607286;
  --line: #dbe5ee;
  --surface: #ffffff;
  --soft: #f3f8fb;
  --accent: #ff8f1d;
  --accent-dark: #fe6a14;
  --navy: #071b31;
  --green: #25b77a;
  --danger: #c43b3b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(94, 80, 71, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
  min-width: 168px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-title {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  font-weight: 700;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace {
  /*padding: clamp(58px, 8vw, 94px) clamp(20px, 5vw, 72px);*/
  min-height: calc(100vh - 78px);
  background: var(--soft);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: 24px;
}

.step-card {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 27, 49, 0.08);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-heading .eyebrow {
  margin-bottom: 8px;
}

.step-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.15;
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.step-form {
  display: grid;
  gap: 18px;
}

.step-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 24px;
  text-align: center;
  border: 2px dashed #b7ccd9;
  border-radius: 8px;
  background: #f8fcfe;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dropzone-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 36px;
  line-height: 1;
}

.dropzone strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 19px;
}

.dropzone span:last-child {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.field input:focus {
  outline: 3px solid rgba(0, 167, 181, 0.18);
  border-color: var(--accent);
}

.submit-button,
.secondary-button {
  width: fit-content;
  min-width: 190px;
}

.text-link {
  width: fit-content;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--navy);
}

.secondary-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover {
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.submit-button[disabled],
.secondary-button[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.token-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.error,
.token-message.error {
  color: var(--danger);
}

.form-message.success,
.token-message.success,
.eyebrow.success {
  color: var(--green);
}

.result-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.result-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.result-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  background: #f8fcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.result-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-title {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .brand {
    width: 148px;
    min-width: 148px;
  }

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

@media (max-width: 560px) {
  .submit-button,
  .secondary-button {
    width: 100%;
  }
}
