:root {
  color-scheme: dark;
  --bg: #090b13;
  --bg-soft: rgba(19, 24, 43, 0.72);
  --panel: rgba(15, 20, 37, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #97a0bf;
  --accent: #7c8cff;
  --accent-2: #39d0ff;
  --accent-3: #ff8ee7;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1240px;
  --wheel-size: min(72vw, 360px);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7ff;
  --bg-soft: rgba(255, 255, 255, 0.84);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(25, 44, 87, 0.12);
  --text: #131a31;
  --muted: #5c6786;
  --accent: #4b6bff;
  --accent-2: #1fbde0;
  --accent-3: #ff5fb2;
  --shadow: 0 28px 70px rgba(70, 89, 144, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73, 111, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 196, 0.16), transparent 22%),
    radial-gradient(circle at 30% 80%, rgba(32, 229, 197, 0.12), transparent 24%),
    linear-gradient(180deg, #090b13 0%, #090d19 50%, #07090f 100%);
  color: var(--text);
  overflow-x: hidden;
  transition: background 240ms ease, color 240ms ease;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top left, rgba(73, 111, 255, 0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 196, 0.12), transparent 22%),
    radial-gradient(circle at 30% 80%, rgba(32, 229, 197, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3ff 50%, #fdfdff 100%);
}

img,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-glow {
  filter: blur(80px);
  opacity: 0.55;
  z-index: -2;
}

.page-glow-a {
  background: radial-gradient(circle at 20% 20%, rgba(67, 115, 255, 0.35), transparent 25%);
  animation: drift 18s ease-in-out infinite alternate;
}

.page-glow-b {
  background: radial-gradient(circle at 78% 30%, rgba(255, 104, 186, 0.28), transparent 26%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.page-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.2;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
}

body[data-theme="light"] .page-noise {
  opacity: 0.08;
}

.topbar,
.hero,
.studio,
.guide,
.faq,
.tag-cloud-section,
.footer {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.topbar-wrap {
  padding-top: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
}

.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b90, #ffd64a, #4fd9ff);
  box-shadow: 0 0 22px rgba(92, 198, 255, 0.45);
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.topbar__link {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

body[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(25, 44, 87, 0.1);
}

body[data-theme="light"] .topbar__link:hover,
body[data-theme="light"] .topbar__link:focus-visible {
  background: rgba(82, 110, 214, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 48px 0 28px;
  align-items: center;
}

.hero__content {
  padding: 28px 0;
}

.eyebrow,
.panel__eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a2abcc;
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.panel h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
}

.hero__lead,
.section-heading p,
.panel p,
.feature-card p,
.faq-item p,
.footer p,
.footer__tagline,
.footer__privacy-text,
.empty-state,
.code-box,
.insight-card,
.recommendation-list {
  color: var(--muted);
}

.hero__lead {
  max-width: 60ch;
  margin: 18px 0 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card,
.metric-card {
  min-width: 128px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.stat-card__value,
.metric-card__value {
  display: block;
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
}

.stat-card__label,
.metric-card__label {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero__actions,
.export-grid,
.input-row,
.control-grid,
.contrast-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.3rem;
  color: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.scheme-button:focus-visible,
input:focus-visible,
select:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid rgba(93, 198, 255, 0.9);
  outline-offset: 3px;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5be6ff 100%);
  box-shadow: 0 18px 34px rgba(66, 113, 255, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .button--ghost {
  background: rgba(82, 110, 214, 0.06);
  border-color: rgba(62, 93, 185, 0.12);
  color: var(--text);
}

.button--small {
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
}

.theme-toggle {
  min-width: 160px;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-orbit--outer {
  width: min(78vw, 400px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 40%),
    conic-gradient(from 0deg, #ff5d84, #ffcf68, #5bf5ff, #7393ff, #ff5d84);
  animation: spin 22s linear infinite;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.06);
  mask: radial-gradient(circle at center, transparent 36%, black 37%);
}

.hero-orbit--inner {
  width: min(42vw, 220px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.38), transparent 26%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  animation: pulse 6s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  bottom: 50px;
  right: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  font-size: 0.9rem;
  color: #dbe2ff;
  animation: float 5s ease-in-out infinite;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p {
  margin-top: 14px;
  line-height: 1.7;
}

.studio {
  padding: 36px 0 26px;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 25%, transparent 70%, rgba(113, 163, 255, 0.12));
  pointer-events: none;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel__head h3 {
  font-size: 1.28rem;
}

.panel--wheel {
  grid-column: span 5;
}

.panel--controls {
  grid-column: span 3;
}

.panel--palette {
  grid-column: span 4;
}

.panel--contrast {
  grid-column: span 6;
}

.live-chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.live-chip__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px currentColor;
}

.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  min-height: calc(var(--wheel-size) + 18px);
  touch-action: none;
}

#colorWheel {
  width: var(--wheel-size);
  height: var(--wheel-size);
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  filter: saturate(1.2) brightness(1.12) contrast(1.08);
  box-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(255, 214, 64, 0.12);
}

.wheel-stage__ring {
  position: absolute;
  width: calc(var(--wheel-size) + 24px);
  height: calc(var(--wheel-size) + 24px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.wheel-stage__guide {
  position: absolute;
  width: calc(var(--wheel-size) * 0.68);
  height: calc(var(--wheel-size) * 0.68);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.wheel-stage__guide.is-visible {
  opacity: 1;
}

.wheel-stage__selector {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1;
  transition: left 120ms ease, top 120ms ease, opacity 180ms ease, transform 180ms ease;
}

.wheel-stage__selector.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.wheel-stage__selector--secondary {
  border-style: dashed;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.wheel-stage__selector--tertiary {
  width: 18px;
  height: 18px;
  border-style: dotted;
}

.wheel-stage__selector--quaternary {
  width: 18px;
  height: 18px;
  border-style: double;
}

.slider-group {
  margin-top: 14px;
}

.slider-group label,
.text-field span,
.select-field span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #d9dfff;
  font-size: 0.92rem;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
}

.input-row {
  margin-top: 18px;
}

.text-field,
.select-field {
  flex: 1 1 180px;
}

.text-field input,
.select-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 40, 0.9);
  color: #fff;
  color-scheme: dark;
}

.select-field select option {
  background: #131a31;
  color: #f5f7ff;
}

.control-block {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.control-block legend {
  margin-bottom: 12px;
  color: #d9dfff;
  font-weight: 700;
}

.scheme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scheme-button {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #eef1ff;
  text-align: left;
  padding: 0.9rem 1rem;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.scheme-button.is-active {
  background: rgba(94, 125, 255, 0.18);
  border-color: rgba(97, 175, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(97, 175, 255, 0.12);
}

body[data-theme="light"] .scheme-button,
body[data-theme="light"] .text-field input,
body[data-theme="light"] .select-field select,
body[data-theme="light"] .palette-card,
body[data-theme="light"] .insight-card,
body[data-theme="light"] .code-box,
body[data-theme="light"] .contrast-preview,
body[data-theme="light"] .feature-card,
body[data-theme="light"] .faq-item,
body[data-theme="light"] .recommendation-item,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .metric-card,
body[data-theme="light"] .live-chip {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(25, 44, 87, 0.1);
  color: var(--text);
}

body[data-theme="light"] .feature-card.palette-tint-card:not(.palette-tint-card--spectral) {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--card-tint) 18%, #ffffff),
    rgba(255, 255, 255, 0.88)
  );
  border-color: color-mix(in srgb, var(--card-tint) 28%, rgba(25, 44, 87, 0.12));
}

body[data-theme="light"] .feature-card.palette-tint-card--spectral {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, #5b7fff 16%, #ffffff),
    color-mix(in srgb, #ff7a00 10%, #ffffff) 45%,
    color-mix(in srgb, #00c2a8 12%, #ffffff) 72%,
    #ffffff
  );
  border-color: color-mix(in srgb, #5b7fff 26%, rgba(25, 44, 87, 0.12));
}

body[data-theme="light"] .select-field select {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  color-scheme: light;
}

body[data-theme="light"] .select-field select option {
  background: #ffffff;
  color: #131a31;
}

body[data-theme="light"] .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.64)),
    var(--panel);
}

body[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(25, 44, 87, 0.1);
  color: var(--text);
}

body[data-theme="light"] .eyebrow,
body[data-theme="light"] .panel__eyebrow,
body[data-theme="light"] .hero__lead,
body[data-theme="light"] .section-heading p,
body[data-theme="light"] .panel p,
body[data-theme="light"] .feature-card p,
body[data-theme="light"] .faq-item p,
body[data-theme="light"] .footer p,
body[data-theme="light"] .footer__tagline,
body[data-theme="light"] .footer__privacy-text,
body[data-theme="light"] .empty-state,
body[data-theme="light"] .code-box,
body[data-theme="light"] .recommendation-list,
body[data-theme="light"] .palette-card__meta,
body[data-theme="light"] .stat-card__label,
body[data-theme="light"] .metric-card__label {
  color: var(--muted);
}

body[data-theme="light"] .stat-card__value,
body[data-theme="light"] .metric-card__value,
body[data-theme="light"] .insight-card__title,
body[data-theme="light"] .panel__head h3 {
  color: var(--text);
}

.insight-card,
.code-box,
.contrast-preview {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.insight-card {
  padding: 16px 18px;
  margin: 20px 0;
  line-height: 1.65;
}

.insight-card__title {
  margin: 0 0 6px;
  color: #ffffff;
  font-weight: 700;
}

.gradient-preview {
  height: 112px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #5b7fff, #0ed1ff, #ff8fba);
  background-size: 200% 200%;
  animation: gradientFlow 9s ease infinite;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gradient-preview:hover,
.gradient-preview:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.gradient-preview:focus-visible {
  outline: 2px solid rgba(122, 162, 255, 0.9);
  outline-offset: 2px;
}

.code-box {
  margin: 14px 0 0;
  padding: 14px 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  font-size: 0.92rem;
}

.io-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.io-card__head {
  margin-bottom: 14px;
}

.io-card__head p {
  margin: 0;
}

.io-card__head p + p {
  margin-top: 8px;
}

.palette-grid {
  display: grid;
  gap: 12px;
}

.palette-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  min-height: 98px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  width: 100%;
  color: inherit;
  text-align: left;
  transform: translateY(14px);
  opacity: 0;
  animation: revealUp 420ms ease forwards;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.palette-card:hover,
.palette-card:focus-within {
  transform: translateY(0) scale(1.01);
  border-color: rgba(97, 175, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.palette-card--pair,
.palette-card--set {
  grid-template-columns: 140px 1fr;
}

.palette-card__pair-swatches,
.palette-card__set-swatches {
  display: grid;
  gap: 8px;
}

.palette-card__pair-swatches {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.palette-card__set-swatches {
  align-items: stretch;
}

.palette-card__swatch {
  border-radius: 18px;
  min-height: 70px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.palette-card__swatch-button {
  border: 0;
  width: 100%;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.palette-card__swatch-button:hover,
.palette-card__swatch-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.2);
}

.palette-card__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.palette-card__hint {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.palette-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.palette-card__meta--pair {
  display: grid;
  gap: 8px;
}

.palette-card__hex {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.palette-card__hex:hover,
.palette-card__hex:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(97, 175, 255, 0.42);
  transform: translateY(-1px);
}

.export-grid {
  margin-top: 18px;
}

.contrast-preview {
  padding: 24px;
  margin-bottom: 18px;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.contrast-preview__tag {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.contrast-preview h4 {
  margin: 0 0 10px;
  font-size: 1.32rem;
}

.recommendation-list {
  display: grid;
  gap: 10px;
}

.recommendation-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide,
.faq {
  padding: 48px 0 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.feature-card.palette-tint-card:not(.palette-tint-card--spectral) {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--card-tint) 26%, transparent),
    color-mix(in srgb, var(--card-tint) 8%, rgba(255, 255, 255, 0.04))
  );
  border-color: color-mix(in srgb, var(--card-tint) 38%, rgba(255, 255, 255, 0.08));
}

.feature-card.palette-tint-card--spectral {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, #5b7fff 22%, transparent),
    color-mix(in srgb, #ff7a00 14%, transparent) 42%,
    color-mix(in srgb, #00c2a8 16%, transparent) 68%,
    color-mix(in srgb, #d946ef 12%, transparent),
    rgba(255, 255, 255, 0.04)
  );
  border-color: color-mix(in srgb, #5b7fff 32%, rgba(255, 255, 255, 0.08));
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
}

.feature-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-card h3 a:hover,
.feature-card h3 a:focus-visible {
  opacity: 0.88;
}

.feature-card__family-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.feature-card__family-title span {
  color: var(--muted);
}

.palette-family-link {
  color: var(--family-color, var(--text));
  font-weight: 800;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.palette-family-link:hover,
.palette-family-link:focus-visible {
  opacity: 0.9;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.palette-family-link--gradient {
  background: linear-gradient(135deg, #5B7FFF, #FF7A00, #00C2A8, #D946EF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 18px;
}

.faq-item summary {
  list-style: none;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 18px;
  line-height: 1.7;
}

.footer {
  padding: 28px 0 52px;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.footer__tagline {
  margin: 0;
  max-width: 72ch;
}

.footer__privacy {
  width: 100%;
  max-width: 72ch;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.footer__privacy-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__privacy-title a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__privacy-title a:hover,
.footer__privacy-title a:focus-visible {
  opacity: 0.88;
}

.footer__privacy-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

body[data-theme="light"] .footer__privacy {
  border-top-color: rgba(25, 44, 87, 0.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(11, 16, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

body[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(25, 44, 87, 0.1);
  color: var(--text);
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.noscript-banner {
  position: fixed;
  inset: auto 16px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #201734;
  color: #fff;
}

.library-page,
.library-faq {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.library-hero {
  width: min(calc(100% - 32px), var(--container));
  margin: 20px auto 0;
  padding: 36px 0 18px;
}

.library-hero__box {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.library-hero__actions,
.section-chip-grid,
.library-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-bar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar__label {
  color: var(--muted);
  font-size: 0.95rem;
}

.filter-bar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #5be6ff 100%);
  border-color: rgba(97, 175, 255, 0.35);
  box-shadow: 0 12px 24px rgba(66, 113, 255, 0.24);
}

.section-chip-grid {
  margin-top: 22px;
}

.library-chip-title {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.section-chip:hover,
.section-chip:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.library-page {
  padding: 20px 0 10px;
}

.color-family {
  margin-bottom: 28px;
}

.color-family__head {
  margin-bottom: 16px;
}

.color-family__head h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.color-family__head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.library-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.library-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.library-card__title {
  margin: 0;
  font-weight: 800;
}

.library-card__subtext {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.library-card__swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.library-swatch {
  min-width: 0;
}

.library-swatch__button {
  width: 100%;
  min-height: 84px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.library-swatch__button:hover,
.library-swatch__button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 12px 18px rgba(0, 0, 0, 0.18);
}

.library-swatch__meta {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.library-swatch__name {
  font-size: 0.82rem;
  color: var(--muted);
}

.library-swatch__hex {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.library-swatch__hex:hover,
.library-swatch__hex:focus-visible {
  color: var(--accent-2);
}

body[data-theme="light"] .section-chip,
body[data-theme="light"] .library-card,
body[data-theme="light"] .library-hero__box,
body[data-theme="light"] .filter-pill {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(25, 44, 87, 0.1);
}

body[data-theme="light"] .library-card__subtext,
body[data-theme="light"] .library-swatch__name,
body[data-theme="light"] .color-family__head p,
body[data-theme="light"] .filter-bar__label,
body[data-theme="light"] .library-chip-title {
  color: var(--muted);
}

body[data-theme="light"] .filter-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #5be6ff 100%);
}

.gradient-family {
  margin-bottom: 28px;
}

.gradient-family__sentinel {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin-top: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.gradient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gradient-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.gradient-card__preview {
  min-height: 160px;
}

.gradient-card__body {
  padding: 18px;
}

.gradient-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.gradient-card__title {
  margin: 0;
  font-weight: 800;
}

.gradient-card__subtext {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gradient-card__stops {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.gradient-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.gradient-stop:hover,
.gradient-stop:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(97, 175, 255, 0.42);
}

.gradient-stop__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.gradient-card__code {
  margin-top: 0;
}

body[data-theme="light"] .gradient-card,
body[data-theme="light"] .gradient-stop {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(25, 44, 87, 0.1);
}

body[data-theme="light"] .gradient-card__subtext {
  color: var(--muted);
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .studio-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .panel--wheel,
  .panel--controls,
  .panel--palette,
  .panel--contrast {
    grid-column: span 6;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .topbar,
  .hero,
  .studio,
  .guide,
  .faq,
  .tag-cloud-section,
  .footer,
  .library-page,
  .library-faq,
  .library-hero {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero {
    padding-top: 28px;
  }

  .panel {
    padding: 18px;
  }

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

  .panel--wheel,
  .panel--controls,
  .panel--palette,
  .panel--contrast {
    grid-column: span 1;
  }

  .scheme-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .palette-card {
    grid-template-columns: 1fr;
  }

  .palette-card__swatch {
    min-height: 88px;
  }

  .hero__stats,
  .hero__actions,
  .export-grid,
  .input-row,
  .control-grid,
  .contrast-metrics,
  .library-hero__actions,
  .section-chip-grid,
  .library-card__actions {
    flex-direction: column;
  }

  .filter-bar,
  .filter-bar__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__visual {
    min-height: 300px;
  }

  .library-card__swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradient-card__head {
    flex-direction: column;
  }
}

.newton-tool-section {
  width: min(calc(100% - 20px), var(--container));
  margin-inline: auto;
}

.newton-hint {
  color: var(--muted);
  max-width: 62ch;
}

.newton-tool-layout {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin-top: 8px;
}

.newton-canvas-wrap {
  width: min(100%, 420px);
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newton-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.newton-selection {
  margin: 0;
  min-height: 1.5em;
  font-weight: 700;
  color: var(--text);
}

body[data-theme="light"] .newton-canvas-wrap {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.newton-guide-section .section-heading {
  margin-bottom: 8px;
}

.newton-guide {
  width: 100%;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  padding: 8px 0 28px;
}

.newton-guide__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newton-guide__main-title {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}

.newton-guide__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.newton-guide__block {
  margin-bottom: 2.25rem;
}

.newton-guide__h3 {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.newton-guide__block p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.newton-guide__block p:last-child {
  margin-bottom: 0;
}

.newton-spectrum-figure {
  margin: 1.5rem 0 0;
  padding: 1.35rem 1.1rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.newton-spectrum-bar {
  display: flex;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.newton-spectrum-bar span {
  flex: 1;
  min-width: 0;
}

.newton-spectrum-swatches {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-top: 1.15rem;
}

.newton-spectrum-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.newton-spectrum-dot {
  width: clamp(36px, 7vw, 48px);
  height: clamp(36px, 7vw, 48px);
  border-radius: 50%;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.newton-spectrum-label {
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--text);
  word-break: break-word;
}

.newton-guide__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0.75rem;
}

.newton-guide__compare-card {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.newton-guide__compare-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.newton-guide__compare-card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.newton-guide__compare-card p:last-child {
  margin-bottom: 0;
}

.newton-guide__compare-link {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.newton-guide__compare-link a {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newton-guide__list-num {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.newton-guide__list-num li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.newton-guide__list-num-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.35), rgba(255, 122, 160, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.newton-guide__list-num li span:last-child {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.newton-guide__cta {
  margin: 2rem 0 0;
  text-align: center;
}

body[data-theme="light"] .newton-guide__header {
  border-bottom-color: rgba(25, 44, 87, 0.1);
}

body[data-theme="light"] .newton-spectrum-figure {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(25, 44, 87, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .newton-guide__compare-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(25, 44, 87, 0.1);
}

body[data-theme="light"] .newton-guide__list-num li {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(25, 44, 87, 0.08);
}

@media (max-width: 720px) {
  .newton-spectrum-swatches {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.85rem;
  }

  .newton-spectrum-item {
    flex: 0 0 calc(25% - 6px);
    max-width: calc(25% - 6px);
  }

  .newton-guide__compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .newton-spectrum-item {
    flex: 0 0 calc(33.33% - 6px);
    max-width: calc(33.33% - 6px);
  }
}

.itten-guide-section .section-heading {
  margin-bottom: 8px;
}

.itten-guide {
  width: 100%;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  padding: 8px 0 28px;
}

.itten-guide__header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.itten-guide__main-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.itten-guide__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.itten-guide__block {
  margin-bottom: 2.5rem;
}

.itten-guide__block:last-of-type {
  margin-bottom: 0;
}

.itten-guide__h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

.itten-guide__block p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.itten-guide__block p:last-child {
  margin-bottom: 0;
}

.itten-guide__intro {
  margin-bottom: 1.25rem !important;
}

.itten-guide__levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.35rem;
}

.itten-guide__level {
  position: relative;
  padding: 1.25rem 1.1rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.itten-guide__level:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 162, 255, 0.35);
}

.itten-guide__level-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  font-family: "Unbounded", system-ui, sans-serif;
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.35), rgba(255, 122, 160, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.itten-guide__level-title {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.itten-guide__level p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.itten-guide__schemes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.25rem;
}

.itten-guide__scheme {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.itten-guide__scheme:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.itten-guide__scheme-icon {
  flex-shrink: 0;
  font-size: 1.45rem;
  line-height: 1;
  padding-top: 0.1rem;
}

.itten-guide__scheme-body {
  flex: 1;
  min-width: 0;
}

.itten-guide__scheme-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.itten-guide__scheme-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.itten-guide__audience {
  margin: 0.75rem 0 0;
  padding: 1.1rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  list-style: none;
  display: grid;
  gap: 0.35rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.itten-guide__audience li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.itten-guide__audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7aa2ff, #ff6b9d);
  opacity: 0.85;
}

.itten-guide__footer {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(122, 162, 255, 0.22);
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.08), rgba(255, 107, 157, 0.06));
}

.itten-guide__footer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 500;
  color: var(--text);
}

body[data-theme="light"] .itten-guide__header {
  border-bottom-color: rgba(25, 44, 87, 0.1);
}

body[data-theme="light"] .itten-guide__level {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(25, 44, 87, 0.1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .itten-guide__scheme {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(25, 44, 87, 0.08);
}

body[data-theme="light"] .itten-guide__audience {
  border-color: rgba(25, 44, 87, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .itten-guide__footer {
  border-color: rgba(80, 120, 220, 0.22);
  background: linear-gradient(135deg, rgba(80, 120, 220, 0.08), rgba(255, 120, 160, 0.05));
}

@media (max-width: 900px) {
  .itten-guide__levels {
    grid-template-columns: 1fr;
  }

  .itten-guide__schemes {
    grid-template-columns: 1fr;
  }

  .itten-guide__audience {
    grid-template-columns: 1fr;
  }
}

.tag-cloud-section {
  position: relative;
  padding: 40px 18px 12px;
  margin-top: 8px;
  overflow: hidden;
}

.tag-cloud-section__glow {
  position: absolute;
  width: min(280px, 55vw);
  height: min(280px, 55vw);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.tag-cloud-section__glow--a {
  top: -80px;
  left: -40px;
  background: radial-gradient(circle at 30% 30%, #6b8cff, transparent 70%);
}

.tag-cloud-section__glow--b {
  bottom: -100px;
  right: -30px;
  background: radial-gradient(circle at 70% 70%, #ff7a90, transparent 72%);
}

.tag-cloud-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.tag-cloud-section__title {
  margin: 0 0 22px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
}

.tag-cloud__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  animation: tagCloudFloat 5.2s ease-in-out infinite;
  will-change: transform;
}

.tag-cloud__link:nth-child(1) {
  animation-delay: 0s;
}
.tag-cloud__link:nth-child(2) {
  animation-delay: 0.45s;
}
.tag-cloud__link:nth-child(3) {
  animation-delay: 0.9s;
}
.tag-cloud__link:nth-child(4) {
  animation-delay: 1.35s;
}
.tag-cloud__link:nth-child(5) {
  animation-delay: 1.8s;
}
.tag-cloud__link:nth-child(6) {
  animation-delay: 2.25s;
}
.tag-cloud__link:nth-child(7) {
  animation-delay: 2.7s;
}
.tag-cloud__link:nth-child(8) {
  animation-delay: 3.15s;
}

@keyframes tagCloudFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.01);
  }
}

.tag-cloud__link:hover,
.tag-cloud__link:focus-visible {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.04);
  border-color: rgba(122, 162, 255, 0.55);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(122, 162, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: none;
}

body[data-theme="light"] .tag-cloud__link {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 248, 255, 0.88) 100%
  );
  border-color: rgba(25, 44, 87, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .tag-cloud__link:hover,
body[data-theme="light"] .tag-cloud__link:focus-visible {
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(80, 120, 220, 0.22);
}

body[data-theme="light"] .tag-cloud-section__glow {
  opacity: 0.22;
}

@media (prefers-reduced-motion: reduce) {
  .tag-cloud__link {
    animation: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
}
