:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #616b7c;
  --accent: #7f5af0;
  --accent-soft: #e5deff;
  --border: #d7dbe7;
  --success: #2cb67d;
  --shadow: 0 20px 60px rgba(15, 29, 67, 0.12);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img,
canvas {
  max-width: 100%;
  height: auto;
}

header.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
  background: linear-gradient(135deg, #f7f2ff, #f5fbff);
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero__content p {
  max-width: 40ch;
  color: var(--muted);
}

.hero__visual {
  justify-self: center;
  padding: 1rem;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 0;
  color: var(--accent);
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 15px 30px rgba(127, 90, 240, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

main {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.inputs form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.category {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.category p {
  color: var(--muted);
  margin-top: 0;
}

.category .grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.slider {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(127, 90, 240, 0.04);
}

.slider span {
  font-size: 0.95rem;
}

.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  outline: none;
}

.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
  cursor: pointer;
}

.slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
  cursor: pointer;
}

.slider output {
  align-self: flex-end;
  font-size: 1.2rem;
  color: var(--accent);
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 28px;
  background: radial-gradient(circle at top, rgba(127, 90, 240, 0.1), transparent 65%), var(--surface);
  box-shadow: var(--shadow);
}

.summary__text h2 {
  margin-top: 0;
}

.summary__text p {
  font-size: 1.1rem;
}

.summary__text ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary__text li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  padding-bottom: 0.35rem;
  font-weight: 600;
}

.summary__text li span {
  color: var(--muted);
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1221;
    --surface: #15182a;
    --text: #f0f1f5;
    --muted: #9aa3bb;
    --border: #2b304a;
    --accent-soft: rgba(127, 90, 240, 0.4);
    --shadow: 0 25px 60px rgba(4, 6, 14, 0.55);
  }

  header.hero {
    background: linear-gradient(135deg, #1e1635, #0f172a);
  }

  .slider {
    background: rgba(127, 90, 240, 0.12);
  }
}

@media (max-width: 600px) {
  .category {
    padding: 1.25rem;
  }

  .slider {
    padding: 0.75rem;
  }
}
