:root {
  color-scheme: light;
  --background: #f4f7fb;
  --card: #ffffff;
  --text: #14213d;
  --muted: #607089;
  --primary: #2454ff;
  --primary-dark: #173ed0;
  --border: #dce4f2;
  --success: #0f8a4b;
  --danger: #c33131;
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(36, 84, 255, 0.16), transparent 32rem),
    linear-gradient(135deg, #f8fbff 0%, var(--background) 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 460px);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 112px);
}

.hero__content {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero__text {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.converter-card {
  padding: 24px;
  border: 1px solid rgba(220, 228, 242, 0.9);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #eef3ff;
}

.toggle__button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.toggle__button.is-active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(36, 84, 255, 0.12);
}

.form {
  margin-top: 22px;
}

.drop-area {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  border: 2px dashed var(--border);
  border-radius: 26px;
  background: #f9fbff;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.drop-area:hover,
.drop-area.is-dragging {
  border-color: var(--primary);
  background: #f2f6ff;
  transform: translateY(-1px);
}

.drop-area input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-area__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), #66a3ff);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.drop-area strong {
  font-size: 1.08rem;
}

.drop-area span:last-child {
  margin-top: 8px;
  color: var(--muted);
}

.file-info {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef8f2;
  color: var(--success);
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(36, 84, 255, 0.22);
  transition:
    background 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

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

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

.status-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--success);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.feature h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding: 28px 0;
  }

  .converter-card {
    padding: 14px;
    border-radius: 24px;
  }

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