:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-light: rgba(14,165,233,.08);
  --accent2: #a855f7;
  --accent2-hover: #9333ea;
  --accent2-light: rgba(168,85,247,.08);
  --success: #10b981;
  --success-light: rgba(16,185,129,.1);
  --warning: #f59e0b;
  --danger: #ef4444;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --toast-bg: #0f172a;
  --toast-text: #f8fafc;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 400ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #131c31;
  --bg-elevated: #1a2540;
  --card: #162032;
  --card-hover: #1e2d4a;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --border: #1e3050;
  --border-hover: #2a4060;
  --accent-light: rgba(14,165,233,.12);
  --accent2-light: rgba(168,85,247,.12);
  --code-bg: #0d1525;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow: 0 4px 6px rgba(0,0,0,.3);
  --shadow-md: 0 10px 15px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 25px rgba(0,0,0,.35);
  --shadow-xl: 0 25px 50px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { line-height: 1.25; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,250,252,.72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); transition: background var(--transition); }
[data-theme="dark"] .site-header { background: rgba(11,17,32,.72); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.logo span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 600; font-size: .875rem; padding: .5rem .875rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-light); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.theme-toggle { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; transition: all var(--transition); color: var(--text); }
.theme-toggle:hover { background: var(--border); border-color: var(--border-hover); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; color: var(--text); font-size: 1.5rem; }

@media (max-width: 768px) {
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: .75rem; box-shadow: var(--shadow-md); gap: .25rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .875rem 1rem; border-radius: var(--radius-sm); width: 100%; }
}

/* ===== HERO ===== */
.hero { position: relative; padding: 5rem 0 4rem; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,165,233,.05) 0%, rgba(168,85,247,.05) 50%, rgba(236,72,153,.03) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; top: -40%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,.06), transparent 70%); pointer-events: none; }
[data-theme="dark"] .hero::before { background: linear-gradient(135deg, rgba(14,165,233,.08) 0%, rgba(168,85,247,.06) 50%, rgba(236,72,153,.04) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem 1rem; background: var(--accent-light); border: 1px solid rgba(14,165,233,.15); border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--accent); margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.25rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-desc { font-size: 1.1875rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-secondary); line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-preview { margin-top: 3.5rem; position: relative; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-gradient-bar { height: 80px; border-radius: var(--radius); background: linear-gradient(135deg, #0ea5e9, #a855f7, #ec4899); box-shadow: var(--shadow-lg); animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero-colors { display: flex; gap: .75rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.hero-color-chip { width: 48px; height: 48px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 3px solid var(--bg-elevated); cursor: pointer; transition: transform var(--transition); }
.hero-color-chip:hover { transform: scale(1.15); }

/* ===== STATS ===== */
.stats-bar { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item strong { display: block; font-size: 1.75rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item span { font-size: .8125rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8125rem 1.75rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .9375rem; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1.2; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #0284c7); color: #fff; box-shadow: 0 2px 8px rgba(14,165,233,.3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,.35); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--border-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-accent2 { background: linear-gradient(135deg, var(--accent2), #7c3aed); color: #fff; box-shadow: 0 2px 8px rgba(168,85,247,.3); }
.btn-accent2:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168,85,247,.35); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: none; padding: .625rem 1rem; }
.btn-ghost:hover { color: var(--accent); background: var(--accent-light); }
.btn-sm { padding: .5rem 1.125rem; font-size: .8125rem; }
.btn-xs { padding: .375rem .75rem; font-size: .75rem; border-radius: var(--radius-xs); }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }
.section-label { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .75rem; }
.section-alt { background: var(--bg-alt); }

/* ===== CARDS ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all var(--transition); position: relative; }
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.card-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid-3 { grid-template-columns: 1fr; } .card-grid { grid-template-columns: 1fr; } }

/* Feature card */
.feature-card { padding: 2rem; text-align: center; }
.feature-card:hover { border-color: var(--accent); }
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.25rem; }
.feature-card h3 { margin-bottom: .5rem; font-size: 1.125rem; }
.feature-card p { font-size: .9375rem; margin: 0; }

/* Gradient card */
.gradient-card { padding: 0; overflow: hidden; }
.gradient-card .gradient-preview { height: 140px; transition: transform var(--transition-slow); }
.gradient-card:hover .gradient-preview { transform: scale(1.03); }
.gradient-card .card-body { padding: 1.25rem; }
.gradient-card .card-body h3 { font-size: .9375rem; font-weight: 700; }
.gradient-card .card-body p { font-size: .8125rem; margin: .25rem 0 0; }

/* Brand card */
.brand-card { padding: 0; overflow: hidden; }
.brand-card .brand-preview { height: 8px; display: flex; }
.brand-card .brand-preview span { flex: 1; }
.brand-card .card-body { padding: 1.25rem 1.5rem; }
.brand-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.brand-card p { font-size: .8125rem; margin: 0; }
.brand-card .brand-arrow { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.25rem; transition: all var(--transition); }
.brand-card:hover .brand-arrow { color: var(--accent); transform: translateY(-50%) translateX(3px); }

/* Guide card */
.guide-card { display: flex; flex-direction: column; gap: .5rem; }
.guide-card .guide-tag { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.guide-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; transition: color var(--transition); }
.guide-card:hover h3 { color: var(--accent); }
.guide-card p { font-size: .875rem; margin: 0; color: var(--text-secondary); }

/* ===== TABS ===== */
.tabs { display: flex; gap: .25rem; background: var(--bg-alt); padding: .25rem; border-radius: var(--radius-sm); margin-bottom: 2rem; overflow-x: auto; border: 1px solid var(--border); }
.tab-btn { padding: .6875rem 1.5rem; border: none; background: transparent; border-radius: var(--radius-xs); font-weight: 700; font-size: .875rem; cursor: pointer; color: var(--text-secondary); white-space: nowrap; transition: all var(--transition); font-family: var(--font); }
.tab-btn.active { background: var(--bg-elevated); color: var(--accent); box-shadow: var(--shadow-xs); }
.tab-btn:hover:not(.active) { color: var(--text); background: rgba(0,0,0,.03); }
[data-theme="dark"] .tab-btn:hover:not(.active) { background: rgba(255,255,255,.03); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ===== TOOL LAYOUT ===== */
.tool-layout { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } }
.tool-panel { position: sticky; top: 80px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
@media (max-width: 960px) { .tool-panel { position: static; } }
.tool-output { min-width: 0; }

/* ===== FORM CONTROLS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; font-size: .8125rem; margin-bottom: .375rem; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.form-input { width: 100%; padding: .625rem .875rem; border: 1.5px solid var(--border); border-radius: var(--radius-xs); background: var(--bg); color: var(--text); font-size: .9375rem; font-family: var(--font); transition: all var(--transition); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.5rem; }
.color-input-wrap { display: flex; gap: .5rem; align-items: center; }
.color-input-wrap input[type="color"] { width: 48px; height: 40px; border: 1.5px solid var(--border); border-radius: var(--radius-xs); padding: 3px; cursor: pointer; background: var(--bg); }
.color-input-wrap input[type="text"] { flex: 1; }
.range-wrap { display: flex; align-items: center; gap: .75rem; }
.range-wrap input[type="range"] { flex: 1; height: 6px; -webkit-appearance: none; background: var(--border); border-radius: 3px; outline: none; }
.range-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--bg-elevated); box-shadow: var(--shadow-sm); }
.range-value { font-weight: 700; font-size: .875rem; min-width: 44px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

/* ===== PREVIEW ===== */
.preview-card { width: 100%; min-height: 300px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 2px 4px rgba(0,0,0,.2); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.preview-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.preview-chip { width: 52px; height: 52px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 3px solid var(--bg-elevated); cursor: pointer; transition: transform var(--transition); }
.preview-chip:hover { transform: scale(1.1); }

/* ===== SWATCH ===== */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; margin-top: 1rem; }
.swatch { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: .5rem; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; }
.swatch:hover { transform: scale(1.06); border-color: var(--accent); box-shadow: var(--shadow); }
.swatch-label { font-size: .6875rem; font-weight: 800; padding: .125rem .375rem; border-radius: 4px; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(4px); }
.swatch-text-hint { position: absolute; top: .375rem; right: .375rem; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .625rem; font-weight: 900; border: 2px solid rgba(255,255,255,.3); }

/* ===== CODE OUTPUT ===== */
.code-output { margin-top: 1.5rem; }
.code-block { position: relative; background: var(--code-bg); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin-bottom: 1rem; overflow-x: auto; border: 1px solid rgba(255,255,255,.05); }
.code-block pre { margin: 0; color: var(--code-text); font-family: var(--mono); font-size: .8125rem; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.code-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .625rem; }
.code-block-title { font-weight: 700; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.copy-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: var(--code-text); padding: .375rem .875rem; border-radius: var(--radius-xs); cursor: pointer; font-size: .75rem; font-weight: 600; transition: all var(--transition); font-family: var(--font); }
.copy-btn:hover { background: rgba(255,255,255,.15); }
.copy-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* ===== STOP LIST ===== */
.stop-list { display: flex; flex-direction: column; gap: .75rem; }
.stop-item { display: flex; align-items: center; gap: .5rem; padding: .625rem; background: var(--bg-alt); border-radius: var(--radius-xs); border: 1px solid var(--border); }
.stop-item input[type="color"] { width: 40px; height: 36px; border: 1.5px solid var(--border); border-radius: 6px; padding: 2px; cursor: pointer; }
.stop-item input[type="text"] { width: 90px; padding: .375rem .5rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: .8125rem; background: var(--bg); color: var(--text); font-family: var(--mono); }
.stop-item input[type="number"] { width: 56px; padding: .375rem .5rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: .8125rem; background: var(--bg); color: var(--text); text-align: center; }
.stop-item .remove-stop { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.125rem; padding: .25rem; line-height: 1; opacity: .6; transition: opacity var(--transition); }
.stop-item .remove-stop:hover { opacity: 1; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--toast-bg); color: var(--toast-text); padding: .875rem 1.75rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .875rem; box-shadow: var(--shadow-xl); z-index: 9999; opacity: 0; transition: all 350ms cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 999px; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.badge-accent { background: var(--accent-light); color: var(--accent); }
.badge-accent2 { background: var(--accent2-light); color: var(--accent2); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.5rem 0; background: none; border: none; color: var(--text); font-size: 1.0625rem; font-weight: 700; text-align: left; cursor: pointer; font-family: var(--font); transition: color var(--transition); }
.faq-question:hover { color: var(--accent); }
.faq-icon { font-size: 1.5rem; transition: transform 300ms ease; flex-shrink: 0; color: var(--muted); font-weight: 300; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 400ms cubic-bezier(.4,0,.2,1); }
.faq-answer-inner { padding: 0 0 1.5rem; color: var(--text-secondary); line-height: 1.85; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .375rem; padding: 1.25rem 0; font-size: .8125rem; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--muted); }
.breadcrumb .current { color: var(--text-secondary); font-weight: 600; }

/* ===== SEARCH ===== */
.search-box { position: relative; max-width: 600px; margin: 0 auto 2rem; }
.search-input { width: 100%; padding: 1.125rem 1.25rem 1.125rem 3.25rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1.0625rem; background: var(--card); color: var(--text); font-family: var(--font); transition: all var(--transition); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,165,233,.1); }
.search-icon { position: absolute; left: 1.125rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.125rem; }
.search-filters { display: flex; gap: .5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-chip { padding: .5rem 1.125rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-secondary); font-size: .8125rem; font-weight: 700; cursor: pointer; transition: all var(--transition); font-family: var(--font); }
.filter-chip.active, .filter-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-results { max-width: 700px; margin: 0 auto; }
.search-result-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.search-result-item h3 { font-size: 1.0625rem; margin-bottom: .25rem; font-weight: 700; }
.search-result-item h3 a { color: var(--text); }
.search-result-item h3 a:hover { color: var(--accent); }
.search-result-item p { font-size: .875rem; margin: 0; }

/* ===== LINK CARDS ===== */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.link-card { display: block; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; font-size: .875rem; color: var(--text); transition: all var(--transition); text-decoration: none; }
.link-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== BRAND PALETTE PAGE ===== */
.palette-section { margin-bottom: 3rem; }
.palette-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.palette-name { font-size: 1.125rem; font-weight: 800; }
.palette-preview { height: 80px; border-radius: var(--radius-sm); display: flex; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.palette-preview-color { flex: 1; position: relative; cursor: pointer; transition: flex var(--transition); }
.palette-preview-color:hover { flex: 1.5; }
.palette-preview-color .hex-label { position: absolute; bottom: .375rem; left: 50%; transform: translateX(-50%); font-size: .625rem; font-weight: 800; padding: .125rem .5rem; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; opacity: 0; transition: opacity var(--transition); white-space: nowrap; backdrop-filter: blur(4px); }
.palette-preview-color:hover .hex-label { opacity: 1; }
.gradient-preview-bar { height: 48px; border-radius: var(--radius-sm); margin-bottom: 1rem; box-shadow: var(--shadow-xs); }

/* ===== GUIDE ===== */
.guide-content { max-width: 760px; }
.guide-content h2 { margin: 2.5rem 0 1rem; }
.guide-content h3 { margin: 2rem 0 .75rem; font-size: 1.125rem; }
.guide-content p { margin-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.85; }
.guide-content ul, .guide-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--text-secondary); }
.guide-content li { margin-bottom: .5rem; line-height: 1.8; }
.guide-content code { background: var(--bg-alt); padding: .125rem .5rem; border-radius: 4px; font-family: var(--mono); font-size: .875rem; color: var(--accent); border: 1px solid var(--border); }
.guide-sidebar { position: sticky; top: 80px; }
.guide-sidebar h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .75rem; }
.guide-sidebar ul { list-style: none; }
.guide-sidebar li { margin-bottom: .375rem; }
.guide-sidebar a { font-size: .875rem; color: var(--text-secondary); }
.guide-sidebar a:hover { color: var(--accent); }

/* ===== CTA SECTION ===== */
.cta-section { padding: 4rem 0; text-align: center; background: linear-gradient(135deg, rgba(14,165,233,.04), rgba(168,85,247,.04)); border-radius: var(--radius); margin: 2rem 0; }
.cta-section h2 { margin-bottom: .75rem; }
.cta-section p { max-width: 480px; margin: 0 auto 2rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-size: .8125rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--text-secondary); font-size: .875rem; font-weight: 500; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: .8125rem; font-weight: 500; margin: 0; }
.footer-disclaimer { text-align: center; color: var(--muted); font-size: .75rem; margin-top: .75rem; font-style: italic; }

/* ===== ADSENSE ===== */
.ad-slot { margin: 2rem 0; text-align: center; min-height: 90px; overflow: hidden; }
.ad-slot ins { display: block; }
.ad-slot-sidebar { position: sticky; top: 80px; margin: 1rem 0; text-align: center; min-height: 250px; overflow: hidden; }
.ad-slot-inline { margin: 1.5rem 0; text-align: center; min-height: 90px; overflow: hidden; clear: both; }
.ad-slot-anchor { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; text-align: center; background: var(--bg); border-top: 1px solid var(--border); padding: .25rem 0; box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.ad-slot-anchor .ad-close { position: absolute; top: -24px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: .75rem; display: flex; align-items: center; justify-content: center; z-index: 91; }
.ad-slot-anchor .ad-close:hover { color: var(--danger); }

/* ===== COOKIE CONSENT ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; background: var(--bg-elevated); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.12); padding: 1.25rem 1.5rem; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 280px; font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .5rem; flex-shrink: 0; }
@media (max-width: 640px) { .cookie-banner-inner { flex-direction: column; text-align: center; } .cookie-banner-actions { width: 100%; justify-content: center; } }

/* ===== TOGGLE ===== */
.toggle-wrap { display: flex; align-items: center; gap: .75rem; }
.toggle { position: relative; width: 44px; height: 24px; background: var(--border); border-radius: 12px; cursor: pointer; transition: background var(--transition); border: none; }
.toggle.active { background: var(--accent); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform var(--transition); box-shadow: var(--shadow-xs); }
.toggle.active::after { transform: translateX(20px); }
.toggle-label { font-size: .875rem; font-weight: 600; color: var(--text-secondary); }

/* ===== ERROR ===== */
.error-page { text-align: center; padding: 8rem 0; }
.error-code { font-size: 10rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }

/* ===== INLINE PALETTE ===== */
.inline-palette { display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; height: 40px; margin: .5rem 0; }
.inline-palette-color { flex: 1; cursor: pointer; position: relative; }

/* ===== EXPORT ===== */
.export-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ===== PRESET ===== */
.preset-hero { padding: 3.5rem 0; background: var(--bg-alt); }
.preset-hero h1 { margin-bottom: .75rem; }
.preset-preview-large { width: 100%; height: 220px; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 2rem 0; }

/* ===== CONTACT ===== */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form textarea { min-height: 150px; resize: vertical; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.vis-hidden { visibility: hidden; }

/* ===== LIVE DEMO WIDGET ===== */
.live-demo-section { padding: 5rem 0; }
.live-demo-grid { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .live-demo-grid { grid-template-columns: 1fr; } }
.live-demo-controls { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.live-demo-controls h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.live-demo-result { display: flex; flex-direction: column; gap: 1.5rem; }
.live-demo-preview { width: 100%; min-height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-lg); transition: all .5s ease; position: relative; overflow: hidden; }
.live-demo-preview::after { content: "Gradient Önizleme"; position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-size: .8125rem; font-weight: 700; color: rgba(255,255,255,.7); background: rgba(0,0,0,.3); padding: .375rem 1rem; border-radius: 999px; backdrop-filter: blur(8px); pointer-events: none; }
.live-demo-code { background: var(--code-bg); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-family: var(--mono); font-size: .8125rem; color: var(--code-text); line-height: 1.7; word-break: break-all; cursor: pointer; transition: all var(--transition); border: 1px solid rgba(255,255,255,.05); position: relative; }
.live-demo-code:hover { border-color: var(--accent); }
.live-demo-code::after { content: "Kopyalamak için tıklayın"; position: absolute; top: .5rem; right: .75rem; font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); opacity: 0; transition: opacity var(--transition); }
.live-demo-code:hover::after { opacity: 1; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; text-align: center; padding: 2.5rem 1.5rem 2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); }
.step-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.step-number { counter-increment: step; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 900; font-size: 1.25rem; margin: 0 auto 1.25rem; box-shadow: 0 4px 12px rgba(14,165,233,.25); }
.step-number::before { content: counter(step); }
.step-card h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.step-card p { font-size: .9375rem; margin: 0; }
.step-arrow { display: none; }
@media (min-width: 769px) {
  .step-arrow { display: flex; align-items: center; justify-content: center; position: absolute; right: -1.5rem; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--accent); font-size: 1.5rem; font-weight: 700; }
}

/* ===== MINI COLOR CHIPS (clickable, homepage) ===== */
.color-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; max-width: 600px; margin: 0 auto; }
.showcase-chip { aspect-ratio: 1; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: .25rem; transition: all var(--transition); border: 3px solid transparent; position: relative; }
.showcase-chip:hover { transform: scale(1.08); border-color: var(--bg-elevated); box-shadow: var(--shadow-md); }
.showcase-chip span { font-size: .5625rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.4); padding: .125rem .375rem; border-radius: 3px; backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--transition); }
.showcase-chip:hover span { opacity: 1; }

/* ===== GUIDE CATEGORY GRID ===== */
.guide-category { margin-bottom: 3rem; }
.guide-category-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border); }
.guide-category-icon { width: 36px; height: 36px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; }
.guide-category-title h3 { font-size: 1.125rem; color: var(--text); margin: 0; }
.guide-mini-card { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.125rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; color: var(--text); transition: all var(--transition); text-decoration: none; }
.guide-mini-card:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); transform: translateX(4px); }
.guide-mini-card .arrow { margin-left: auto; color: var(--muted); transition: all var(--transition); }
.guide-mini-card:hover .arrow { color: var(--accent); transform: translateX(3px); }

/* ===== TESTIMONIAL / USE CASE SECTION ===== */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all var(--transition); }
.usecase-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.usecase-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.usecase-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.usecase-card p { font-size: .875rem; margin: 0; }

/* ===== NUMBER COUNTER ===== */
.counter { font-variant-numeric: tabular-nums; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comparison-table th, .comparison-table td { padding: .875rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .875rem; }
.comparison-table th { background: var(--bg-alt); font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
.comparison-table td { color: var(--text-secondary); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--muted); }

/* ===== NEWSLETTER / SUBSCRIBE-LIKE SECTION ===== */
.subscribe-box { max-width: 520px; margin: 0 auto; text-align: center; }
.subscribe-box p { color: var(--text-secondary); }

/* ===== TAG CLOUD ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.5rem 0; }
.tag-item { padding: .375rem .875rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--text-secondary); transition: all var(--transition); text-decoration: none; }
.tag-item:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== SCROLL INDICATOR ===== */
.scroll-progress { position: fixed; top: 64px; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); z-index: 99; transition: width 100ms; width: 0; }

/* ===== ANIMATED GRADIENT BG FOR HERO ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient-bg {
  background: linear-gradient(-45deg, #0ea5e9, #a855f7, #ec4899, #10b981, #f59e0b, #6366f1);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .ad-slot, .theme-toggle, .mobile-toggle, .export-row, .copy-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}
