:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --line: #e6ebf2;
  --paper: #ffffff;
  --page: #f6f8fc;
  --soft-page: #eff6ff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --green: #15803d;
  --orange: #c2410c;
  --rose: #e11d48;
  --violet: #7047d9;
  --shadow: 0 22px 60px rgba(16, 24, 40, 0.11);
  --pill-radius: 999px;
  --site-header-height: 72px;
  --body-bg:
    linear-gradient(135deg, rgba(37, 99, 235, 0.09) 0%, rgba(21, 128, 61, 0) 36%),
    linear-gradient(180deg, #fbfdff 0%, var(--page) 48%, #ffffff 100%);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --glass: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --card-bg: linear-gradient(145deg, #ffffff 0%, #f9fbff 100%);
  --panel-bg: rgba(255, 255, 255, 0.84);
  --input-bg: #ffffff;
  --footer-bg: #101828;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #a9b4c6;
  --line: rgba(148, 163, 184, 0.24);
  --paper: #111827;
  --page: #0b1020;
  --soft-page: rgba(96, 165, 250, 0.13);
  --primary: #7dd3fc;
  --primary-dark: #38bdf8;
  --primary-soft: rgba(125, 211, 252, 0.16);
  --green: #34d399;
  --orange: #fb923c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --body-bg:
    radial-gradient(circle at 14% 8%, rgba(125, 211, 252, 0.14), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(52, 211, 153, 0.12), transparent 26%),
    linear-gradient(180deg, #070b14 0%, #0b1020 48%, #090d18 100%);
  --surface: #111827;
  --surface-soft: #172033;
  --glass: rgba(13, 18, 32, 0.82);
  --glass-strong: rgba(17, 24, 39, 0.96);
  --card-bg: linear-gradient(145deg, rgba(20, 28, 46, 0.96) 0%, rgba(12, 18, 32, 0.98) 100%);
  --panel-bg: rgba(17, 24, 39, 0.82);
  --input-bg: #111827;
  --footer-bg: #050814;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height, 72px) + 16px);
}

body {
  margin: 0;
  padding-top: var(--site-header-height, 72px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--body-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background 220ms ease, color 220ms ease;
}

main {
  flex: 1 0 auto;
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--pill-radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, border-color 220ms ease;
}

.header-inner,
.footer-grid,
.footer-bottom,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 72px;
  justify-content: flex-start;
}

.header-main {
  display: flex;
  align-items: center;
  margin-left: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer nav a {
  padding: 9px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--pill-radius);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--ink);
  background: var(--soft-page);
  outline: none;
}

.theme-picker {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 12px 28px rgba(16, 24, 40, 0.08);
  outline: none;
}

.nav-toggle-mark,
.nav-toggle-mark::before,
.nav-toggle-mark::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: var(--pill-radius);
  transition: background 160ms ease, transform 180ms ease;
}

.nav-toggle-mark {
  position: relative;
}

.nav-toggle-mark::before,
.nav-toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-mark::before {
  transform: translateY(-6px);
}

.nav-toggle-mark::after {
  transform: translateY(6px);
}

.site-header.nav-open .nav-toggle-mark {
  background: transparent;
}

.site-header.nav-open .nav-toggle-mark::before {
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-mark::after {
  transform: rotate(-45deg);
}

.header-search {
  position: relative;
  flex: 1 1 260px;
  width: min(34vw, 420px);
  max-width: 420px;
  margin-left: auto;
}

.header-search + .theme-picker {
  margin-left: 0;
}

.header-search-form {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 12px 28px rgba(16, 24, 40, 0.08);
}

.header-search-input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-weight: 800;
}

.header-search-input::placeholder {
  color: var(--muted);
}

.search-trigger {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.search-trigger:hover,
.search-trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 12px 28px rgba(16, 24, 40, 0.08);
  outline: none;
}

.search-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.82;
}

.search-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: var(--pill-radius);
  transform: rotate(45deg);
}

.header-search .search-clear {
  min-height: 30px;
  padding: 0 10px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 0;
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 900;
}

.header-search .search-clear:hover,
.header-search .search-clear:focus-visible {
  color: var(--ink);
  outline: none;
}

.header-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  padding: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.header-search-panel .search-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.header-search-panel .suggestion-list {
  display: grid;
  gap: 6px;
}

.header-search-panel .suggestion-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 20px;
  text-decoration: none;
}

.header-search-panel .suggestion-item:hover,
.header-search-panel .suggestion-item:focus-visible {
  background: var(--surface);
  border-color: rgba(37, 99, 235, 0.28);
  outline: none;
}

.header-search-panel .suggestion-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 950;
}

html[data-theme="dark"] .header-search-panel .suggestion-icon {
  color: #07111f;
}

.ui-icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon .ui-icon,
.collection-icon .ui-icon,
.tool-icon .ui-icon {
  width: 28px;
  height: 28px;
}

.board-grid span .ui-icon,
.panel-list span .ui-icon,
.suggestion-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.featured-icon img,
.card-icon img,
.collection-icon img,
.tool-icon img,
.panel-list span img,
.gradient-panel-swatch img,
.suggestion-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.featured-icon:has(img),
.card-icon:has(img),
.collection-icon:has(img),
.tool-icon:has(img),
.panel-list span:has(img),
.gradient-panel-swatch:has(img),
.suggestion-icon:has(img) {
  color: inherit;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.header-search-panel .suggestion-copy {
  min-width: 0;
}

.header-search-panel .suggestion-copy strong,
.header-search-panel .suggestion-copy span {
  display: block;
}

.header-search-panel .suggestion-copy strong {
  line-height: 1.2;
}

.header-search-panel .suggestion-copy span,
.header-search-panel .suggestion-action {
  color: var(--muted);
  font-size: 0.84rem;
}

.header-search-panel .suggestion-action {
  font-weight: 900;
}

.header-search-panel .suggestion-empty {
  margin: 0;
  padding: 12px 9px;
  color: var(--muted);
}

.theme-trigger {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.theme-trigger:hover,
.theme-trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 12px 28px rgba(16, 24, 40, 0.08);
  outline: none;
}

.theme-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72);
  transform: rotate(var(--theme-turn, 0deg)) scale(1);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-core {
  position: relative;
  width: 12px;
  height: 12px;
  display: block;
  background: #101828;
  border-radius: 50%;
  transform: scale(1);
  transition:
    width 220ms ease,
    height 220ms ease,
    background 220ms ease,
    border-radius 220ms ease,
    transform 220ms ease;
}

.theme-core::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: #101828;
  border-radius: 50%;
  opacity: 0;
  transform: translateX(2px) scale(0.72);
  transition: opacity 180ms ease, transform 220ms ease, border-radius 220ms ease;
}

.theme-trigger.theme-system .theme-icon {
  background: linear-gradient(90deg, #ffffff 0 50%, #101828 50% 100%);
}

.theme-trigger.theme-system .theme-core {
  width: 4px;
  height: 18px;
  background: rgba(37, 99, 235, 0.92);
  border-radius: var(--pill-radius);
}

.theme-trigger.theme-system .theme-core::after,
.theme-trigger.theme-light .theme-core::after {
  opacity: 0;
}

.theme-trigger.theme-light .theme-icon {
  background: #fef9c3;
  border-color: #fde68a;
}

.theme-trigger.theme-light .theme-core {
  background: #f59e0b;
  box-shadow:
    0 -8px 0 -5px #f59e0b,
    0 8px 0 -5px #f59e0b,
    8px 0 0 -5px #f59e0b,
    -8px 0 0 -5px #f59e0b,
    6px 6px 0 -5px #f59e0b,
    -6px -6px 0 -5px #f59e0b,
    6px -6px 0 -5px #f59e0b,
    -6px 6px 0 -5px #f59e0b;
}

.theme-trigger.theme-dark .theme-icon {
  background: #101828;
  border-color: #344054;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.theme-trigger.theme-dark .theme-core {
  width: 16px;
  height: 16px;
  background: #e0f2fe;
  box-shadow: none;
  overflow: hidden;
  transform: translateX(-1px) scale(1);
}

.theme-trigger.theme-dark .theme-core::after {
  opacity: 1;
  border-radius: 50%;
  transform: translateX(0) scale(1);
}

.theme-trigger.theme-changing .theme-icon {
  transform: rotate(var(--theme-turn, 0deg)) scale(0.88);
}

html[data-theme-choice="system"] .theme-trigger .theme-icon {
  background: linear-gradient(90deg, #ffffff 0 50%, #101828 50% 100%);
}

html[data-theme-choice="system"] .theme-trigger .theme-core {
  width: 4px;
  height: 18px;
  background: rgba(37, 99, 235, 0.92);
  border-radius: var(--pill-radius);
  box-shadow: none;
  overflow: visible;
  transform: scale(1);
}

html[data-theme-choice="system"] .theme-trigger .theme-core::after,
html[data-theme-choice="light"] .theme-trigger .theme-core::after {
  opacity: 0;
}

html[data-theme-choice="light"] .theme-trigger .theme-icon {
  background: #fef9c3;
  border-color: #fde68a;
}

html[data-theme-choice="light"] .theme-trigger .theme-core {
  width: 12px;
  height: 12px;
  background: #f59e0b;
  border-radius: 50%;
  overflow: visible;
  transform: scale(1);
  box-shadow:
    0 -8px 0 -5px #f59e0b,
    0 8px 0 -5px #f59e0b,
    8px 0 0 -5px #f59e0b,
    -8px 0 0 -5px #f59e0b,
    6px 6px 0 -5px #f59e0b,
    -6px -6px 0 -5px #f59e0b,
    6px -6px 0 -5px #f59e0b,
    -6px 6px 0 -5px #f59e0b;
}

html[data-theme-choice="dark"] .theme-trigger .theme-icon {
  background: #101828;
  border-color: #344054;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

html[data-theme-choice="dark"] .theme-trigger .theme-core {
  width: 16px;
  height: 16px;
  background: #e0f2fe;
  border-radius: 50%;
  box-shadow: none;
  overflow: hidden;
  transform: translateX(-1px) scale(1);
}

html[data-theme-choice="dark"] .theme-trigger .theme-core::after {
  opacity: 1;
  border-radius: 50%;
  transform: translateX(0) scale(1);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 8px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.16);
  backdrop-filter: blur(16px);
}

.theme-option {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.theme-option::after {
  content: "";
  width: 8px;
  height: 8px;
  background: transparent;
  border-radius: 50%;
}

.theme-option:hover,
.theme-option:focus-visible {
  color: var(--ink);
  background: var(--soft-page);
  outline: none;
}

.theme-option.is-active {
  color: #07111f;
  background: var(--primary);
}

.theme-option.is-active::after {
  background: currentColor;
}

@media (max-width: 920px) {
  :root {
    --site-header-height: 72px;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .header-main {
    margin-left: 0;
  }

  .site-header.nav-ready .header-main {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 20;
    display: block;
    width: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .site-header.nav-ready.nav-open .header-main {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .site-header.nav-ready .site-nav {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 8px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-header.nav-ready .site-nav a {
    padding: 12px 14px;
    color: var(--ink);
  }

  .site-header.nav-ready .site-nav a:hover,
  .site-header.nav-ready .site-nav a:focus-visible {
    background: var(--soft-page);
  }

  .header-search {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }

  .search-trigger,
  .nav-toggle {
    display: inline-flex;
  }

  .header-search-form {
    position: fixed;
    top: calc(var(--site-header-height, 72px) + 8px);
    left: 16px;
    right: 16px;
    z-index: 42;
    display: none;
  }

  .header-search.is-open .header-search-form {
    display: flex;
  }

  .header-search-panel {
    position: fixed;
    top: calc(var(--site-header-height, 72px) + 62px);
    left: 16px;
    right: 16px;
    z-index: 42;
    max-height: min(64svh, 520px);
    overflow: auto;
  }

  .theme-picker {
    width: auto;
    margin-left: 0;
  }

  .theme-menu {
    left: auto;
    right: 0;
    width: min(78vw, 240px);
  }
}

.hero-section {
  padding: 72px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 4.05rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.14rem;
}

.hero-copy h1 {
  color: transparent;
  background: linear-gradient(90deg, #101828 0%, #1d4ed8 62%, #166534 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .page-hero h1 {
  background: linear-gradient(90deg, #f8fafc 0%, #7dd3fc 58%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy h1,
.page-hero h1,
.not-found-copy h1 {
  line-height: 1.14;
  padding-bottom: 0.08em;
}

.hero-text,
.section-heading p,
.tool-intro,
.page-content p,
.page-content li,
.helper-text {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  font-size: 1.12rem;
}

.hero-panel {
  display: grid;
  gap: 13px;
  padding: 8px 0;
  color: var(--ink);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 2px 34px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.panel-top strong {
  color: var(--ink);
  font-size: 0.86rem;
}

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

.panel-list a {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.11);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.panel-list a:nth-child(odd) {
  transform: translateX(22px);
}

.panel-list a:nth-child(even) {
  transform: translateX(-4px);
}

.panel-list a:hover,
.panel-list a:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 22px 56px rgba(37, 99, 235, 0.16);
  outline: none;
}

.panel-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--green), var(--orange));
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.14);
}

.gradient-panel-swatch {
  background: linear-gradient(135deg, #2563eb, #14b8a6, #f97316);
}

.hero-panel p {
  width: min(100%, 340px);
  margin: 0 0 0 34px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
  font-size: 0.9rem;
}

.quick-band {
  background: transparent;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 18px;
  background: linear-gradient(135deg, #101828, #17345d);
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(16, 24, 40, 0.16);
}

.quick-grid div {
  position: relative;
  padding: 8px 20px;
}

.quick-grid div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  color: #fff;
  margin-bottom: 3px;
}

.quick-grid span {
  color: #cbd5e1;
  font-size: 0.94rem;
}

.section {
  padding: 64px 0;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}

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

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: start;
  align-content: start;
  grid-column: span 6;
  gap: 18px 16px;
  min-height: 254px;
  padding: 24px;
  color: var(--ink);
  background: var(--card-bg);
  border-radius: 34px;
  text-decoration: none;
  box-shadow: 0 20px 58px rgba(16, 24, 40, 0.08);
  overflow: hidden;
  overflow-wrap: anywhere;
  transition: background 220ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.tool-card:nth-child(1),
.tool-card:nth-child(4) {
  grid-column: span 7;
}

.tool-card:nth-child(2),
.tool-card:nth-child(3) {
  grid-column: span 5;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 52%);
  pointer-events: none;
}

.tool-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--green), var(--orange));
  border-radius: var(--pill-radius) var(--pill-radius) 0 0;
}

.tool-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.11), rgba(16, 24, 40, 0) 54%);
}

.tool-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.13), rgba(21, 128, 61, 0) 54%);
}

.tool-card:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(225, 29, 72, 0) 54%);
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.13);
  outline: none;
}

.tool-icon {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0 35%, var(--green) 35% 68%, var(--orange) 68% 100%);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.13);
  font-weight: 900;
}

.tool-card:nth-child(2) .tool-icon {
  background: var(--ink);
}

.tool-card:nth-child(3) .tool-icon {
  background: var(--green);
}

.tool-card:nth-child(4) .tool-icon {
  background: linear-gradient(135deg, var(--primary), var(--rose));
}

.tool-card.request-tool-card::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(112, 71, 217, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(21, 128, 61, 0.08) 58%, rgba(194, 65, 12, 0.08));
}

.tool-card.request-tool-card .tool-icon {
  color: #07111f;
  background: linear-gradient(135deg, #7dd3fc, #34d399);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.13);
}

html[data-theme="dark"] .tool-card.request-tool-card .tool-icon {
  color: #050814;
}

.tool-card h3 {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}

.tool-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 24px;
  margin: 0;
  color: var(--muted);
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: 0 20px 58px rgba(16, 24, 40, 0.08);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 0;
  margin: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.92rem;
}

.mini-list li {
  position: relative;
  padding: 6px 10px 6px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  transform: translate(10px, -50%);
}

.page-hero {
  padding: 62px 0 34px;
}

.page-hero h1 {
  max-width: 780px;
  color: transparent;
  background: linear-gradient(90deg, #101828 0%, #1d4ed8 72%, #166534 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 3rem;
}

.content-panel {
  position: relative;
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: 0 20px 58px rgba(16, 24, 40, 0.08);
  overflow: hidden;
  padding: 22px;
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 48%);
  pointer-events: none;
}

.content-panel > * {
  position: relative;
  z-index: 1;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .tool-icon {
  color: #07111f;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--primary-dark);
}

.gradient-tool-section {
  padding: 26px 0 76px;
}

.gradient-tool-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gradient-controls {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: visible;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.06);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gradient-preview-panel {
  position: static;
  display: grid;
  gap: 12px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.preview-toolbar,
.export-panel,
.action-row,
.size-row,
.download-controls,
.advanced-grid {
  display: grid;
  gap: 12px;
}

.preview-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding-inline: 2px;
}

.tool-heading {
  margin-bottom: 22px;
}

.tool-heading h1 {
  font-size: 1.42rem;
  line-height: 1.15;
}

.preview-label,
.size-row span,
.advanced-grid span,
.css-output-label,
.field-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.preview-toolbar strong {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
}

#preview-format-label {
  padding: 6px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.canvas-frame {
  --preview-ratio: 16 / 9;
  width: auto;
  max-width: 100%;
  height: min(42vh, 390px);
  aspect-ratio: var(--preview-ratio);
  justify-self: center;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08), 0 18px 46px rgba(16, 24, 40, 0.1);
}

.canvas-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.export-panel {
  gap: 12px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: background 220ms ease, border-color 220ms ease;
}

.export-panel .control-group,
.export-panel .download-controls {
  margin: 0;
}

.action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-row .button {
  width: 100%;
}

.control-group {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.control-group.is-hidden,
.position-control.is-hidden,
.slider-control.is-hidden {
  display: none;
}

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

.download-controls {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.download-controls.quality-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.download-controls .control-group {
  margin-bottom: 0;
}

.control-input,
.css-output {
  width: 100%;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  outline: none;
}

.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.control-input {
  min-height: 42px;
  padding: 0 11px;
}

.css-output {
  min-height: 112px;
  padding: 12px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  resize: vertical;
}

.control-input:focus,
.css-output:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.custom-select {
  position: relative;
}

.select-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 15px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.select-button:hover,
.select-button:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border-radius: 50%;
}

.select-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
}

.select-option {
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.select-option:hover,
.select-option:focus-visible,
.select-option.is-selected {
  background: var(--soft-page);
  outline: none;
}

.size-row,
.advanced-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.size-row.is-hidden {
  display: none;
}

.color-stop-list {
  display: flex;
  gap: 10px;
  padding: 2px 0 8px;
  margin-inline: -2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.color-stop-list.scroll-locked {
  overflow: hidden;
}

.color-stop-card {
  flex: 0 0 164px;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.add-stop-card {
  min-height: 144px;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  border-style: dashed;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.add-stop-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--soft-page);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}

.add-stop-card:hover,
.add-stop-card:focus-visible {
  color: var(--ink);
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.add-stop-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.stop-top-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.color-swatch-button {
  width: 42px;
  height: 42px;
  display: block;
  padding: 0;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(16, 24, 40, 0.14);
  cursor: pointer;
}

.color-swatch-button:hover,
.color-swatch-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 8px 18px rgba(16, 24, 40, 0.14);
  outline: none;
}

.stop-top-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-stop-button {
  grid-column: 1 / -1;
  min-height: 30px;
  color: #8a1f3d;
  background: #fff1f3;
  border: 1px solid #ffd4dc;
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.remove-stop-button:disabled {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--line);
  cursor: not-allowed;
}

.stop-position-control {
  gap: 7px;
}

.palette-grid {
  display: grid;
  grid-auto-columns: minmax(112px, 1fr);
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-template-rows: repeat(2, 42px);
  gap: 8px;
  margin-inline: -2px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.palette-grid button {
  position: relative;
  min-height: 40px;
  padding: 8px 10px 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 900;
  overflow: hidden;
  text-align: left;
}

.palette-grid button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--palette-gradient, linear-gradient(90deg, #2563eb, #14b8a6, #f97316));
}

.palette-grid button:hover,
.palette-grid button:focus-visible {
  border-color: #93c5fd;
  outline: none;
}

.quality-control input,
.advanced-grid input[type="range"] {
  width: 100%;
}

.quality-control.is-hidden {
  display: none;
}

.quality-control {
  align-self: end;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.file-name-control {
  margin-top: 18px;
  margin-bottom: 0;
}

.slider-control {
  display: grid;
  gap: 10px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slider-head output {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.modern-slider {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.modern-slider:focus-visible {
  outline: none;
}

.modern-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #f97316);
  border-radius: 999px;
}

.modern-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  appearance: none;
  background: var(--surface);
  border: 2px solid #2563eb;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.2);
}

.modern-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16), 0 6px 16px rgba(16, 24, 40, 0.2);
}

.modern-slider::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #f97316);
  border-radius: 999px;
}

.modern-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--surface);
  border: 2px solid #2563eb;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.2);
}

.advanced-panel {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.advanced-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.advanced-grid {
  margin: 14px 0;
}

#copy-css-button {
  width: 116px;
}

.color-picker-popover {
  position: fixed;
  z-index: 50;
  width: 292px;
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 62px rgba(16, 24, 40, 0.2);
}

.picker-preview {
  height: 82px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.picker-field,
.picker-hex {
  display: grid;
  gap: 7px;
}

.picker-field span,
.picker-hex span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.hue-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.hue-slider::-moz-range-track {
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wide-control,
.css-output-label {
  grid-column: 1 / -1;
}

.not-found-page {
  min-height: calc(100vh - var(--site-header-height, 72px));
}

.not-found-hero {
  min-height: calc(100vh - var(--site-header-height, 72px));
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.not-found-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.not-found-copy h1 {
  max-width: 760px;
  color: transparent;
  background: linear-gradient(90deg, #101828 0%, #1d4ed8 62%, #166534 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .not-found-copy h1 {
  background: linear-gradient(90deg, #f8fafc 0%, #7dd3fc 58%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.not-found-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.not-found-card {
  position: relative;
  padding: 26px;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.not-found-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(21, 128, 61, 0.08), transparent 62%);
  pointer-events: none;
}

.not-found-card > * {
  position: relative;
  z-index: 1;
}

.not-found-code {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #07111f;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: var(--pill-radius);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 950;
  line-height: 0.95;
}

.not-found-card h2 {
  font-size: 1.4rem;
}

.not-found-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.not-found-links a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.not-found-links a:hover,
.not-found-links a:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.not-found-links span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.not-found-links .gradient-panel-swatch {
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.14);
}

.page-content {
  padding: 54px 0 72px;
}

.content-panel {
  max-width: 840px;
}

.content-panel h2 {
  margin-top: 28px;
  font-size: 1.4rem;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 34px 0 24px;
  color: #fff;
  background: var(--footer-bg);
}

.site-footer p {
  margin: 12px 0 0;
  color: #c7ccd1;
}

.footer-brand {
  color: #fff;
}

.site-footer nav a {
  color: #c7ccd1;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  color: #aeb6bd;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.footer-bottom a[href^="https://utiloza.top"] {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #07111f;
  background: linear-gradient(135deg, #7dd3fc, #34d399);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pill-radius);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.footer-bottom a[href^="https://utiloza.top"]:hover,
.footer-bottom a[href^="https://utiloza.top"]:focus-visible {
  color: #07111f;
  background: linear-gradient(135deg, #7dd3fc, #34d399);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  outline: none;
  transform: translateY(-1px);
}

@media (min-width: 921px) {
  .gradient-controls {
    position: sticky;
    top: calc(var(--site-header-height, 72px) + 16px);
    max-height: calc(100vh - var(--site-header-height, 72px) - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .gradient-controls::-webkit-scrollbar {
    width: 10px;
  }

  .gradient-controls::-webkit-scrollbar-track {
    background: transparent;
  }

  .gradient-controls::-webkit-scrollbar-thumb {
    background: var(--line);
    border: 3px solid var(--surface-soft);
    border-radius: 999px;
  }
}

@media (min-width: 921px) and (max-height: 760px) {
  .gradient-preview-panel {
    gap: 10px;
  }

  .canvas-frame {
    height: min(34vh, 330px);
  }

  .export-panel {
    padding: 14px;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .gradient-tool-shell {
    grid-template-columns: 1fr;
  }

  .gradient-controls {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .gradient-preview-panel {
    position: static;
  }

  .hero-panel {
    max-width: 640px;
  }

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

  .quick-grid div:nth-child(odd) {
    border-left: 0;
  }

  .quick-grid div:nth-child(n + 3) {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

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

  .tool-card,
  .tool-card:nth-child(1),
  .tool-card:nth-child(2),
  .tool-card:nth-child(3),
  .tool-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .not-found-shell {
    grid-template-columns: 1fr;
  }

  .not-found-card {
    max-width: 640px;
  }
}

@media (max-width: 680px) {
  :root {
    --site-header-height: 72px;
  }

  .section-heading,
  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .header-main {
    margin-left: 0;
  }

  .site-header.nav-ready .header-main {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 20;
    display: block;
    width: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .site-header.nav-ready.nav-open .header-main {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .site-header.nav-ready .site-nav {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 8px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-header.nav-ready .site-nav a {
    padding: 12px 14px;
    color: var(--ink);
  }

  .site-header.nav-ready .site-nav a:hover,
  .site-header.nav-ready .site-nav a:focus-visible {
    background: var(--soft-page);
  }

  .theme-picker {
    width: auto;
    margin-left: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-menu {
    left: auto;
    right: 0;
    width: min(78vw, 240px);
  }

  .hero-section {
    padding: 36px 0 30px;
  }

  .gradient-tool-section {
    padding-top: 18px;
  }

  .gradient-preview-panel {
    order: -1;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .panel-top {
    padding-inline: 0;
  }

  .panel-list a:nth-child(odd),
  .panel-list a:nth-child(even) {
    transform: none;
  }

  .hero-panel p {
    width: 100%;
    margin-left: 0;
  }

  .quick-grid,
  .preview-toolbar,
  .action-row,
  .download-controls,
  .position-control,
  .size-row,
  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .color-picker-popover {
    width: min(292px, calc(100vw - 24px));
  }

  .quick-grid div {
    padding-inline: 4px;
  }

  .quick-grid div + div {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .tool-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 52px;
    border-radius: 28px;
  }

  .panel-list a {
    border-radius: 28px;
  }

  .tool-icon {
    width: 52px;
    height: 52px;
  }

  .section {
    padding-block: 48px;
  }

  .not-found-hero {
    align-items: start;
    padding: 38px 0 54px;
  }

  .not-found-copy h1 {
    font-size: 2.7rem;
  }

  .not-found-card {
    border-radius: 26px;
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .site-nav a {
    font-size: 0.93rem;
  }

  .panel-list a {
    grid-template-columns: 38px 1fr;
  }

  .panel-list span {
    width: 32px;
    height: 32px;
  }
}

.converter-main {
  background: var(--body-bg);
}

.converter-section {
  padding: 26px 0 76px;
}

.converter-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.converter-title-bar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.converter-title-bar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 750;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.stable-action {
  min-width: 132px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.converter-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  align-items: start;
  gap: 22px;
}

.converter-controls,
.converter-preview-panel {
  min-width: 0;
}

.converter-controls {
  display: grid;
  gap: 12px;
}

.upload-zone,
.converter-card,
.converter-preview-panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 58px rgba(16, 24, 40, 0.08);
}

.upload-zone {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 34px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.upload-zone.is-dragging,
.upload-zone:focus-visible {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.upload-mark {
  width: 64px;
  height: 64px;
}

.upload-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-zone h2,
.converter-card h2,
.converter-preview-panel h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.upload-zone p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.upload-zone .button {
  grid-column: 1 / -1;
  width: 100%;
}

.converter-card {
  padding: 18px;
  border-radius: 28px;
}

.control-label-row,
.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.control-label-row span,
.control-label-row strong {
  color: var(--muted);
  font-weight: 950;
}

.format-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  padding: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
}

.format-switch button,
.background-options button {
  min-height: 48px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--pill-radius);
  cursor: pointer;
  font-weight: 950;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.format-switch button.is-active {
  color: #07111f;
  background: linear-gradient(135deg, #7dd3fc, #34d399);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.12);
}

.range-slider {
  width: 100%;
  height: 12px;
  margin-top: 18px;
  appearance: none;
  background: linear-gradient(90deg, var(--primary), var(--green), var(--orange));
  border-radius: var(--pill-radius);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  appearance: none;
  background: #ffffff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
  cursor: pointer;
}

.background-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.background-options button,
.hex-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
}

.background-options button.is-active {
  color: var(--ink);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.1);
}

.background-options button > span,
.hex-swatch-button span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--swatch);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hex-field {
  position: relative;
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.background-options .hex-swatch-button {
  min-height: 18px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
}

.background-options .hex-swatch-button > span {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--swatch);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.background-options .hex-swatch-button:hover,
.background-options .hex-swatch-button:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.color-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.color-field {
  position: relative;
  height: 156px;
  background:
    linear-gradient(to top, #000000, transparent),
    linear-gradient(to right, #ffffff, var(--picker-hue, #ff0000));
  border-radius: 18px;
  cursor: crosshair;
  touch-action: none;
}

.color-field-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--swatch, #ffffff);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hue-slider {
  width: 100%;
  height: 12px;
  appearance: none;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  border-radius: var(--pill-radius);
  outline: none;
}

.hue-slider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  appearance: none;
  background: #ffffff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
  cursor: pointer;
}

.hue-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
  cursor: pointer;
}

.hex-field input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-weight: 900;
  text-transform: uppercase;
}

.hex-field:focus-within {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-list-card {
  max-height: 282px;
  overflow: auto;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.file-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(112px, 0.45fr) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: pointer;
}

.file-row.is-active,
.file-row:focus-within {
  border-color: rgba(37, 99, 235, 0.35);
  outline: none;
}

.file-select,
.file-remove {
  border: 0;
  cursor: pointer;
}

.file-select {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border-radius: 16px;
  text-align: left;
}

.file-select:hover,
.file-select:focus-visible {
  background: var(--surface);
  outline: none;
}

.file-select span,
.file-select small {
  display: block;
}

.file-select span {
  font-weight: 950;
}

.file-select small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-field {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: text;
}

.file-name-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: 900;
  outline: none;
}

.file-name-field:focus-within {
  background: var(--surface);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.file-extension {
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}

.file-remove {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: 50%;
}

.file-remove:hover,
.file-remove:focus-visible {
  color: var(--ink);
  background: rgba(225, 29, 72, 0.12);
  outline: none;
}

.file-remove .ui-icon {
  width: 18px;
  height: 18px;
}

.small-empty {
  padding: 14px;
  border-radius: 22px;
}

.converter-preview-panel {
  position: sticky;
  top: calc(var(--site-header-height, 72px) + 18px);
  padding: 22px;
  border-radius: 34px;
}

.status-pill {
  min-width: 104px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  font-weight: 950;
}

.status-pill[data-tone="busy"] {
  color: #1e40af;
  background: rgba(125, 211, 252, 0.2);
}

.status-pill[data-tone="done"] {
  color: #065f46;
  background: rgba(52, 211, 153, 0.18);
}

.status-pill[data-tone="warn"],
.status-pill[data-tone="error"] {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.18);
}

html[data-theme="dark"] .status-pill[data-tone="busy"],
html[data-theme="dark"] .status-pill[data-tone="done"],
html[data-theme="dark"] .status-pill[data-tone="warn"],
html[data-theme="dark"] .status-pill[data-tone="error"] {
  color: var(--ink);
}

.image-preview-box {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.16) 25%, transparent 25% 75%, rgba(148, 163, 184, 0.16) 75%),
    linear-gradient(45deg, rgba(148, 163, 184, 0.16) 25%, transparent 25% 75%, rgba(148, 163, 184, 0.16) 75%);
  background-color: var(--surface-soft);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.image-preview-box img[data-preview-image] {
  max-width: 100%;
  max-height: 430px;
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(16, 24, 40, 0.2);
  object-fit: contain;
}

.preview-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.preview-empty span {
  width: 74px;
  height: 74px;
}

.preview-empty img {
  width: 100%;
  height: 100%;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.preview-stats div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.preview-stats span,
.preview-stats strong {
  display: block;
}

.preview-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.preview-stats strong {
  overflow: hidden;
  margin-top: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 920px) {
  .converter-title-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .title-actions {
    justify-content: stretch;
  }

  .title-actions .button {
    flex: 1 1 0;
  }

  .converter-shell {
    grid-template-columns: 1fr;
  }

  .converter-preview-panel {
    position: static;
    order: -1;
  }

  .image-preview-box {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .converter-section {
    padding-top: 18px;
  }

  .converter-title-bar h1 {
    font-size: 2rem;
  }

  .upload-zone {
    grid-template-columns: 54px minmax(0, 1fr);
    border-radius: 28px;
  }

  .upload-mark {
    width: 52px;
    height: 52px;
  }

  .preview-topline,
  .control-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .file-select {
    grid-column: 1 / -1;
  }

  .preview-actions {
    flex-direction: column;
  }

  .stable-action {
    min-width: 0;
  }
}


/* Crawlable tool guidance */
.tool-info-section {
  padding: 14px 0 72px;
}

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

.tool-info-card {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.tool-info-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.tool-info-card p,
.tool-info-card li {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.65;
}

.tool-info-card p,
.tool-info-card ol {
  margin: 0;
}

.tool-info-card p + p,
.tool-info-card ol + p {
  margin-top: 12px;
}

.tool-info-card ol {
  padding-left: 22px;
}

.tool-info-wide {
  grid-column: span 1;
}

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

.tool-faq-list details {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.tool-faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 950;
}

.tool-faq-list details p {
  padding: 0 16px 16px;
}

@media (max-width: 760px) {
  .tool-info-section {
    padding: 8px 0 54px;
  }

  .tool-info-grid {
    grid-template-columns: 1fr;
  }

  .tool-info-card {
    border-radius: 26px;
    padding: 20px;
  }
}
