/* ══════════════════════════════════════════
   COLORPICKEE — Global Stylesheet
   Syne + DM Mono · Light/Dark · Modern UI
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Tokens ── */
:root {
  --accent:       #6366f1;
  --accent2:      #f43f5e;
  --accent3:      #10b981;
  --accent-glow:  rgba(99,102,241,.08);

  --bg:           #f8fafc;
  --bg2:          #ffffff;
  --bg3:          #f1f5f9;
  --border:       #e2e8f0;
  --shadow:       0 4px 24px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.10);

  --text:         #0f172a;
  --text-muted:   #475569;
  --text-dim:     #94a3b8;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;

  --font-sans:    'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --header-h:     60px;
  --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:           #0b0f1a;
  --bg2:          #131929;
  --bg3:          #1c2438;
  --border:       #1e2d45;
  --shadow:       0 4px 24px rgba(0,0,0,.3);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.4);
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #475569;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.site-header .logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .45rem;
  letter-spacing: -.02em;
}
.site-header .logo .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: .5rem;
  flex: 1;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  padding: .4rem .75rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  letter-spacing: .04em;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg3);
}
.nav-link.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--border); color: var(--text); }

/* ══════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  opacity: .4;
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Orbs ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(99,102,241,.12), transparent 70%); top: -60px; left: -60px; }
.orb-2 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(244,63,94,.08), transparent 70%); top: 20px; right: -40px; }

/* ══════════════════════════════════
   UPLOAD ZONE
══════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity var(--transition);
}
.upload-zone:hover { border-color: var(--accent); }
.upload-zone:hover::before { opacity: 1; }
.upload-zone input[type=file] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon { font-size: 2rem; margin-bottom: .75rem; }
.upload-label {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .35rem;
}
.upload-sub {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .06em;
}

/* ══════════════════════════════════
   TOOL GRID (homepage)
══════════════════════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-color, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--card-color, var(--accent)); box-shadow: var(--shadow-lg); }
.tool-card:hover::before { transform: scaleX(1); }

.tool-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: var(--card-color, var(--accent));
  opacity: .9;
}
.tool-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.tool-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.tool-card-arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════
   FEATURE STRIP
══════════════════════════════════ */
.feature-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 1rem 2.5rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .06em;
}
.feature-item .fi-dot { color: var(--accent3); }

/* ══════════════════════════════════
   SECTION LABEL
══════════════════════════════════ */
.section-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 2.5rem 0 .85rem;
}

/* ══════════════════════════════════
   HOMEPAGE INLINE CONVERTER
══════════════════════════════════ */
.homepage-tool-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.homepage-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.homepage-tool-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.homepage-tool-link {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .04em;
  transition: opacity var(--transition);
}
.homepage-tool-link:hover { opacity: .75; text-decoration: underline; }

/* Compact converter grid */
.hp-converter-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 640px) { .hp-converter-grid { grid-template-columns: 1fr; } }

/* Drop zone */
.hp-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  min-height: 90px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  transition: border-color var(--transition), background var(--transition);
}
.hp-dropzone:hover, .hp-dropzone.dragover { border-color: var(--accent); background: var(--accent-glow); }
.hp-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hp-dropzone-icon { font-size: 1.4rem; }
.hp-dropzone-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.hp-dropzone-sub { font-family: var(--font-mono); font-size: .66rem; color: var(--text-dim); letter-spacing: .06em; }

/* Preview strip */
.hp-preview { display: none; gap: .75rem; align-items: center; margin-top: .75rem; }
.hp-preview.visible { display: flex; }
.hp-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.hp-preview-arrow { font-size: 1.1rem; color: var(--text-dim); flex-shrink: 0; }
.hp-preview-info { font-size: .75rem; color: var(--text-muted); line-height: 1.5; }
.hp-preview-info strong { color: var(--text); display: block; font-size: .8rem; }

/* Controls */
.hp-controls { display: flex; flex-direction: column; gap: .6rem; min-width: 200px; }
.hp-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .3rem;
}
.hp-field select {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: .5rem .85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.hp-field select:focus { border-color: var(--accent); }

.hp-btn-row { display: flex; gap: .5rem; margin-top: .25rem; }
.hp-btn {
  flex: 1;
  padding: .5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity var(--transition), transform .1s;
  border: none;
}
.hp-btn:active { transform: scale(.97); }
.hp-btn:disabled { opacity: .35; cursor: not-allowed; }
.hp-btn-primary { background: var(--accent); color: #fff; }
.hp-btn-primary:not(:disabled):hover { opacity: .85; }
.hp-btn-dl { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.hp-btn-dl:not(:disabled):hover { background: var(--border); }

.hp-status { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); min-height: 1em; display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.hp-status.ok  { color: var(--accent3); }
.hp-status.err { color: var(--accent2); }

/* ══════════════════════════════════
   CONVERTER PAGE LAYOUT
══════════════════════════════════ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.page-header p { font-size: .95rem; color: var(--text-muted); }

/* ── Converter main layout ── */
.converter-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .converter-layout { grid-template-columns: 1fr; } }

/* ── Upload zone full ── */
.upload-zone-full {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg2);
  position: relative;
}
.upload-zone-full:hover { border-color: var(--accent); background: var(--accent-glow); }
.upload-zone-full input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone-full .upload-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.upload-zone-full .upload-label { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: .5rem; }
.upload-zone-full .upload-sub { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); letter-spacing: .06em; }

/* ── Preview area ── */
.preview-area { display: none; }
.preview-area.visible { display: block; }

.preview-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 600px) { .preview-comparison { grid-template-columns: 1fr; } }

.preview-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.preview-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.preview-label .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.preview-img-wrap { display: flex; align-items: center; justify-content: center; background: var(--bg3); min-height: 180px; }
.preview-img-wrap img { max-width: 100%; max-height: 260px; object-fit: contain; }
.preview-meta { padding: .6rem .85rem; font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); border-top: 1px solid var(--border); }

/* ── Status / progress ── */
.status {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  margin: .5rem 0;
}
.status.ok  { color: var(--accent3); }
.status.err { color: var(--accent2); }

.progress-wrap { display: none; margin: .5rem 0; }
.progress-wrap.visible { display: block; }
.progress-bar { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width .3s ease; }
.progress-label { font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); margin-top: .3rem; }

/* ── Sidebar / Panel ── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.divider { height: 1px; background: var(--border); margin: .75rem 0; }

/* ── Info box ── */
.info-box {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}
.info-box strong { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .55rem 1rem;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform .1s, background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:not(:disabled):hover { opacity: .85; }

.btn-secondary { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); width: 100%; }
.btn-secondary:not(:disabled):hover { background: var(--border); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); border-color: var(--text-dim); }

/* ── Field ── */
.field { margin-bottom: .75rem; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .35rem;
}
.field select {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: .55rem .85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.field select:focus { border-color: var(--accent); }

/* ══════════════════════════════════
   COLOR PICKER PAGE SPECIFICS
══════════════════════════════════ */
.picker-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .picker-layout { grid-template-columns: 1fr; } }

.canvas-container {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  cursor: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 200px;
}
#imageCanvas { display: block; max-width: 100%; height: auto; border-radius: calc(var(--radius) - 1px); }

/* Inspector card */
.inspector-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px;
  gap: 3px;
  margin-bottom: 1rem;
}
.mode-btn {
  padding: .45rem .5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: .04em;
}
.mode-btn.active { background: var(--bg2); color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 4px;
  margin-bottom: .85rem;
}
.status-idle { background: var(--bg3); color: var(--text-dim); }
.status-locked { background: var(--accent); color: #fff; }

.color-box {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: background .15s;
}

.value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: .55rem .75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .78rem;
  margin-bottom: .5rem;
  white-space: nowrap;
  gap: .5rem;
}
.value-row span { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.value-row span strong { color: var(--text); }
.copy-btn {
  flex-shrink: 0;
  padding: .3rem .65rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  transition: opacity var(--transition);
}
.copy-btn:hover { opacity: .8; }

.details-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  margin-top: .25rem;
  transition: opacity var(--transition);
}
.details-link:hover { opacity: .75; text-decoration: underline; }

.palette-label {
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 1rem 0 .5rem;
  display: block;
}
.auto-palette { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.swatch:hover { transform: scale(1.15); box-shadow: 0 4px 10px rgba(0,0,0,.18); }

/* Zoom controls */
.zoom-controls {
  position: absolute;
  bottom: 10px; right: 10px;
  display: flex; gap: 4px; align-items: center;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,.1);
  z-index: 100;
  opacity: .45;
  transition: opacity var(--transition);
}
.zoom-controls:hover { opacity: 1; }
.zoom-btn {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition);
}
.zoom-btn:hover { opacity: .85; }
.zoom-level {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: #fff;
  min-width: 34px;
  text-align: center;
  font-weight: 500;
}

/* Lens / grid */
#zoomWindow {
  position: absolute;
  width: 150px; height: 150px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  pointer-events: none;
  display: none;
  z-index: 200;
  overflow: hidden;
  transition: width .2s, height .2s, border-color .2s;
}
#zoomWindow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--accent2);
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  z-index: 202;
}
#lensCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#pickerCursor {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  display: none;
  z-index: 201;
}
#pickerCursor::before, #pickerCursor::after {
  content: '';
  position: absolute;
  background: var(--accent2);
}
#pickerCursor::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
#pickerCursor::after  { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }

#zoomWindow.grid-active { width: 250px; height: 250px; }
#zoomWindow.grid-active::after { width: 22px; height: 22px; border: 2px solid var(--accent2); background: transparent; border-radius: 3px; }
#gridCanvas { width: 100%; height: 100%; border-radius: 50%; display: none; }

/* ══════════════════════════════════
   SEO SECTIONS
══════════════════════════════════ */
.seo-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.seo-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.seo-card h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--text);
}
.seo-card p, .seo-card li {
  font-size: .87rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.seo-card ul, .seo-card ol { padding-left: 1.1rem; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.seo-card strong { color: var(--text); }

.seo-faq h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  overflow: hidden;
  background: var(--bg2);
}
.faq-item summary {
  padding: .85rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.1rem; opacity: .4; transition: transform .2s; flex-shrink: 0; margin-left: .75rem; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.1rem 1rem; font-size: .87rem; line-height: 1.7; color: var(--text-muted); margin: 0; }

/* ══════════════════════════════════
   FEATURE CARDS (picker page)
══════════════════════════════════ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border-left: 3px solid var(--fc-color, var(--accent));
}
.feature-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.feature-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .06em;
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .55s cubic-bezier(.4,0,.2,1) forwards;
}
.fade-up-1 { animation-delay: .08s; }
.fade-up-2 { animation-delay: .16s; }
.fade-up-3 { animation-delay: .24s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 640px) {
  .page-wrap { padding: 1.5rem 1rem 4rem; }
  .hero { padding: 2rem .5rem 1.5rem; }
  .site-header { padding: 0 1rem; }
  .header-nav { display: none; }
}

/* ── Hidden utility ── */
.hidden { display: none !important; }
