@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

:root {
  --bg: #f4f1e8;
  --ink: #1f1f1f;
  --ink-soft: #4f4f4f;
  --panel: #fffaf0;
  --accent: #00695c;
  --accent-2: #f57c00;
  --stroke: #d6cdb7;
  --ok: #1b7f3b;
  --bad: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffe6b3 0%, transparent 35%),
    radial-gradient(circle at 90% 20%, #b2dfdb 0%, transparent 30%),
    linear-gradient(160deg, #f8f2e5 0%, #efe5d2 100%);
}

.app-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  gap: 1rem;
}

.hero {
  padding: 1rem 0.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0.4rem 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.subhead {
  margin: 0;
  color: var(--ink-soft);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.field-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

label {
  font-weight: 600;
}

input[type="password"],
input[type="file"] {
  width: 100%;
  border: 1px solid #cfc6b3;
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff;
  font: inherit;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

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

.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #00897b 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 105, 92, 0.32);
}

.ghost {
  background: #fff;
  color: var(--ink);
  border-color: #cfc6b3;
}

.status {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.status.ok {
  color: var(--ok);
}

.status.bad {
  color: var(--bad);
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.output-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.output {
  margin: 0.7rem 0 0;
  max-height: 52vh;
  overflow: auto;
  border: 1px solid #ddd2be;
  border-radius: 10px;
  padding: 0.85rem;
  background: #161616;
  color: #d9fdd3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .app-shell {
    padding-top: 1.2rem;
  }

  .panel {
    padding: 0.85rem;
  }
}
