﻿:root {
  --navy: #071a33;
  --blue: #123f7a;
  --gold: #d9a441;
  --light: #f5f7fb;
  --white: #ffffff;
  --ink: #111827;
  --muted: #687386;
  --border: #d8deea;
  --success: #1c7c54;
  --danger: #a33232;
  --shadow: 0 26px 90px rgba(0,0,0,0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217,164,65,0.28), transparent 32rem),
    linear-gradient(135deg, var(--navy), var(--blue));
  min-height: 100vh;
}

.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 46px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  margin-bottom: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
}

.legal-pill {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.86);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero {
  color: var(--white);
  max-width: 820px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  line-height: 1.62;
}

.converter {
  background: var(--white);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.converter-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
}

.main-panel {
  padding: 30px;
}

.side-panel {
  background: var(--light);
  border-left: 1px solid var(--border);
  padding: 30px;
}

.notice {
  background: rgba(217,164,65,0.13);
  border: 1px solid rgba(217,164,65,0.5);
  color: #3f2d09;
  border-radius: 18px;
  padding: 16px 18px;
  line-height: 1.55;
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.45;
}

.field {
  margin-bottom: 20px;
}

.hint {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.52;
}

.button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  padding: 16px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.progress-wrap {
  display: none;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--light);
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #e4e8f0;
  overflow: hidden;
  margin: 12px 0 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 0.25s ease;
}

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

.result,
.error {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  line-height: 1.55;
}

.result {
  color: var(--success);
  background: rgba(28,124,84,0.1);
  border: 1px solid rgba(28,124,84,0.28);
}

.error {
  color: var(--danger);
  background: rgba(163,50,50,0.1);
  border: 1px solid rgba(163,50,50,0.28);
}

.download-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--success);
  font-weight: 900;
  text-decoration: none;
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.feature-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.logs {
  display: none;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-height: 140px;
  overflow: auto;
}

footer {
  color: rgba(255,255,255,0.72);
  margin-top: 22px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
}

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

  .side-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
