/*
 * NovusGFX Retro Design System - Neumorphism
 * Source: styles/37-neumorphism/index.html
 * Commit: 911d9b100467655b9f43be401678b89a1a12d61e
 * License: MIT; see THIRD_PARTY_NOTICES.md
 */

:root {
  --bg: #e0e5ec;
  --ink: #4a5568;
  --muted: #8a94a6;
  --accent: #6c8cff;
  --shadow-dark: #a3b1c6;
  --shadow-light: #ffffff;
  --font: "Inter", "SF Pro", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  padding: 40px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

.page {
  max-width: 820px;
  margin: 0 auto;
}

.card {
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

h1 {
  margin-bottom: 6px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
}

.sub {
  margin-bottom: 20px;
  color: var(--muted);
}

h2 {
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.btn {
  padding: 12px 26px;
  border: none;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:active {
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.btn-primary {
  color: var(--accent);
  font-weight: 700;
}

.input {
  width: 340px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
}

.input:focus {
  outline: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 10px 0;
}

.swatch {
  display: inline-block;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.toggle {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 30px;
  background: var(--bg);
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
  cursor: pointer;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
  content: "";
}

.toggle.on::after {
  left: 33px;
  background: var(--accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.icon-btn.active {
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  color: var(--accent);
}

.gauge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
}

.gauge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.gauge-val {
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
}

.gauge-lbl {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
