:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #f4f7fb;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(circle at top, #eef4ff 0%, #f4f7fb 55%, #eef2ff 100%);
}

.container {
  width: min(980px, 100%);
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

.hero p {
  margin: 1rem auto 0;
  max-width: 48rem;
  color: #475569;
  line-height: 1.7;
}

.hero-subtext {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #64748b;
}

.converter-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.converter-card label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}

select,
input {
  width: 100%;
  border: 1px solid #d2d6dc;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  background: #f8fafc;
  color: #111827;
}

select:focus,
input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.row {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.field {
  display: grid;
}

.result-row {
  margin-top: 1.5rem;
}

.result-box {
  padding: 1.35rem;
  border-radius: 20px;
  background: #eef2ff;
}

.result-box .label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.result-box p {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
}

button {
  margin-top: 1.5rem;
  width: 100%;
  border: none;
  background: #6366f1;
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.note {
  margin-top: 1rem;
  color: #64748b;
  line-height: 1.6;
}

.examples-card {
  margin-top: 1.75rem;
  background: white;
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.examples-card h2 {
  margin: 0 0 1rem 0;
}

.examples-list {
  display: grid;
  gap: 0.75rem;
}

.example-item {
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.example-item strong {
  text-transform: capitalize;
}
