/* ===== CSS VARIABLES ===== */
:root {
--bg: #0a0a0f;
--bg2: #111118;
--bg3: #1a1a25;
--card: #16161f;
--border: #2a2a3a;
--accent: #7c5cfc;
--accent2: #00d4aa;
--accent3: #ff6b6b;
--text: #f0f0f8;
--text2: #a0a0b8;
--text3: #606078;
--radius: 14px;
--radius-sm: 8px;
--shadow: 0 8px 32px rgba(0,0,0,0.4);
--shadow-glow: 0 0 40px rgba(124,92,252,0.15);
--nav-h: 68px;
--font-display: 'Syne', sans-serif;
--font-body: 'DM Sans', sans-serif;
--transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
font-family: var(--font-body);
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }
::selection { background: var(--accent); color: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.15; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
background: var(--bg3);
border-top: 1px solid var(--border);
padding: 14px 24px;
display: flex; align-items: center; justify-content: space-between; gap: 16px;
flex-wrap: wrap;
box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
transform: translateY(0);
transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(110%); }
.cookie-text { font-size: 0.85rem; color: var(--text2); }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-btn {
background: var(--accent); color: #fff; border: none; padding: 8px 20px;
border-radius: 40px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
white-space: nowrap; transition: background var(--transition);
}
.cookie-btn:hover { background: #6748e0; }

/* ===== NAVBAR ===== */
.navbar {
position: sticky; top: 0; z-index: 1000;
background: rgba(10,10,15,0.92);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
height: var(--nav-h);
display: flex; align-items: center;
}
.nav-inner {
width: 100%; max-width: 1280px; margin: 0 auto;
padding: 0 20px;
display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
display: flex; align-items: center; gap: 10px;
font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
color: var(--text); white-space: nowrap; flex-shrink: 0;
}
.nav-logo-icon {
width: 36px; height: 36px; border-radius: 10px;
background: linear-gradient(135deg, var(--accent), var(--accent2));
display: flex; align-items: center; justify-content: center;
font-size: 1.1rem; flex-shrink: 0;
}
.nav-links {
display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
padding: 8px 14px; border-radius: var(--radius-sm);
font-size: 0.875rem; font-weight: 500; color: var(--text2);
transition: color var(--transition), background var(--transition);
background: none; border: none; cursor: pointer;
display: flex; align-items: center; gap: 5px;
white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--text); background: var(--bg3); }
.nav-links > li > a.active { color: var(--accent); }

/* Dropdown */
.dropdown-menu {
position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
background: var(--bg3); border: 1px solid var(--border);
border-radius: var(--radius); padding: 8px;
min-width: 520px; display: none;
box-shadow: var(--shadow);
grid-template-columns: 1fr 1fr; gap: 2px;
}
.dropdown-menu.open { display: grid; }
.dropdown-item {
display: flex; align-items: center; gap: 10px;
padding: 9px 12px; border-radius: var(--radius-sm);
font-size: 0.82rem; color: var(--text2);
transition: color var(--transition), background var(--transition);
}
.dropdown-item:hover { color: var(--text); background: var(--bg2); }
.dropdown-item-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.dropdown-item-text { font-size: 0.8rem; font-weight: 500; }
.dropdown-arrow { font-size: 0.7rem; transition: transform var(--transition); }
.nav-links > li > button.open .dropdown-arrow { transform: rotate(180deg); }

.nav-cta {
background: var(--accent); color: #fff !important; padding: 8px 18px;
border-radius: 40px; font-weight: 600 !important;
}
.nav-cta:hover { background: #6748e0 !important; }

/* Mobile hamburger */
.nav-toggle {
display: none; background: none; border: none;
color: var(--text); font-size: 1.4rem; cursor: pointer;
padding: 6px; border-radius: var(--radius-sm);
flex-shrink: 0;
}
.mobile-nav {
display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
background: var(--bg); overflow-y: auto; z-index: 999; padding: 16px 20px 100px;
border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav-link {
display: block; padding: 12px 16px; color: var(--text2); font-size: 0.9rem; font-weight: 500;
border-radius: var(--radius-sm); transition: all var(--transition);
}
.mobile-nav-link:hover { color: var(--text); background: var(--bg3); }
.mobile-nav-section { margin-top: 12px; }
.mobile-nav-heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); padding: 8px 16px; font-weight: 600; }
.mobile-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-nav-tool {
display: flex; align-items: center; gap: 8px; padding: 10px 12px;
border-radius: var(--radius-sm); color: var(--text2); font-size: 0.78rem; font-weight: 500;
transition: all var(--transition);
}
.mobile-nav-tool:hover { color: var(--text); background: var(--bg3); }
.mobile-nav-tool-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
background: var(--bg2); border-bottom: 1px solid var(--border);
padding: 10px 20px;
}
.breadcrumb {
max-width: 1280px; margin: 0 auto;
display: flex; align-items: center; gap: 6px;
font-size: 0.8rem; color: var(--text3);
list-style: none; flex-wrap: wrap;
}
.breadcrumb li a { color: var(--text3); transition: color var(--transition); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li.current { color: var(--text2); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: 0.5; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

/* ===== BADGE ===== */
.badge {
display: inline-flex; align-items: center; gap: 6px;
background: rgba(124,92,252,0.12); color: var(--accent);
border: 1px solid rgba(124,92,252,0.25);
padding: 5px 14px; border-radius: 40px; font-size: 0.78rem; font-weight: 600;
letter-spacing: 0.04em;
}

/* ===== HERO ===== */
.hero {
padding: 80px 0 60px;
position: relative; overflow: hidden;
}
.hero-bg {
position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-orb {
position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--accent); top: -120px; left: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent2); top: 0; right: -80px; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
font-size: clamp(2.2rem, 5vw, 3.8rem);
font-weight: 800; line-height: 1.08; margin: 16px 0 20px;
background: linear-gradient(135deg, #fff 0%, #c8b8ff 50%, var(--accent2) 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
font-size: 1.05rem; color: var(--text2); max-width: 600px; margin: 0 auto 36px;
line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 12px 26px; border-radius: 40px; font-size: 0.9rem; font-weight: 600;
transition: all var(--transition); cursor: pointer; white-space: nowrap; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6748e0; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,92,252,0.35); }
.btn-secondary { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.btn-accent2 { background: var(--accent2); color: #000; font-weight: 700; }
.btn-accent2:hover { background: #00bfa0; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,212,170,0.3); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }

/* ===== TOOL CARD ===== */
.tool-wrapper {
background: var(--card); border: 1px solid var(--border);
border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
margin: 40px 0;
}
.tool-tabs {
display: flex; align-items: center; gap: 0; overflow-x: auto;
border-bottom: 1px solid var(--border); padding: 0 20px;
scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tab {
padding: 14px 18px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
color: var(--text3); border-bottom: 2px solid transparent;
transition: all var(--transition); white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
}
.tool-tab:hover { color: var(--text2); }
.tool-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tool-body { padding: 24px 20px; }

/* ===== COLOR INPUTS ===== */
.input-row {
display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.78rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; }
.color-input-wrap {
display: flex; align-items: center; gap: 10px;
background: var(--bg2); border: 1px solid var(--border);
border-radius: var(--radius-sm); padding: 8px 12px;
transition: border-color var(--transition);
}
.color-input-wrap:focus-within { border-color: var(--accent); }
.color-swatch-input {
width: 36px; height: 36px; border: none; border-radius: 6px; cursor: pointer;
background: none; padding: 0; flex-shrink: 0;
}
.color-swatch-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 6px; }
.color-swatch-input::-webkit-color-swatch { border: none; border-radius: 6px; }
.hex-input {
background: none; border: none; color: var(--text); font-size: 0.9rem;
font-family: 'Courier New', monospace; width: 80px; outline: none;
text-transform: uppercase;
}
.hex-input.error { color: var(--accent3); }

.select-input {
appearance: none; background: var(--bg2); border: 1px solid var(--border);
color: var(--text); border-radius: var(--radius-sm); padding: 10px 36px 10px 12px;
font-size: 0.875rem; cursor: pointer; min-width: 180px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 8px center; background-size: 20px;
transition: border-color var(--transition);
}
.select-input:focus { outline: none; border-color: var(--accent); }

.count-input {
background: var(--bg2); border: 1px solid var(--border); color: var(--text);
border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.875rem;
width: 80px; outline: none; transition: border-color var(--transition);
}
.count-input:focus { border-color: var(--accent); }
.count-input.error { border-color: var(--accent3); }

.error-msg { font-size: 0.76rem; color: var(--accent3); margin-top: 3px; min-height: 16px; }

/* ===== PALETTE DISPLAY ===== */
.palette-container { margin-top: 24px; }
.palette-label {
display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.palette-label h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.palette-actions { display: flex; align-items: center; gap: 8px; }

.palette-swatches {
display: grid; gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.swatch-card {
border-radius: var(--radius); overflow: hidden; cursor: pointer;
transition: transform var(--transition), box-shadow var(--transition);
border: 1px solid var(--border); background: var(--bg2);
position: relative;
}
.swatch-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.swatch-color {
height: 110px; width: 100%; position: relative;
}
.swatch-copy-hint {
position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
background: rgba(0,0,0,0.35); opacity: 0; transition: opacity var(--transition);
font-size: 0.75rem; font-weight: 600; color: #fff; gap: 4px;
}
.swatch-card:hover .swatch-copy-hint { opacity: 1; }
.swatch-info { padding: 10px 10px 8px; }
.swatch-hex { font-family: 'Courier New', monospace; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.swatch-rgb { font-size: 0.72rem; color: var(--text3); margin-top: 2px; }
.swatch-name { font-size: 0.72rem; color: var(--text2); margin-top: 2px; font-weight: 500; }

/* Copied toast */
.copy-toast {
position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
background: var(--accent2); color: #000; padding: 10px 22px;
border-radius: 40px; font-size: 0.85rem; font-weight: 700;
opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 8000;
white-space: nowrap;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== PRESET PALETTES ===== */
.preset-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px;
}
.preset-card {
border-radius: var(--radius); overflow: hidden; cursor: pointer;
border: 1px solid var(--border); transition: all var(--transition);
}
.preset-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.preset-colors { display: flex; height: 70px; }
.preset-colors div { flex: 1; }
.preset-name { background: var(--bg2); padding: 8px 12px; font-size: 0.8rem; font-weight: 600; color: var(--text2); }

/* ===== GRADIENT TOOL ===== */
.gradient-preview {
height: 140px; border-radius: var(--radius); margin-bottom: 16px;
border: 1px solid var(--border); cursor: pointer;
position: relative; transition: all 0.3s ease;
}
.gradient-preview:hover::after {
content: "Click to copy CSS"; position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(0,0,0,0.4); color: #fff; font-size: 0.85rem; font-weight: 600;
border-radius: var(--radius);
}
.gradient-controls {
display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.gradient-css-output {
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 10px 14px; font-size: 0.78rem; font-family: 'Courier New', monospace;
color: var(--text2); word-break: break-all; margin-top: 8px;
display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}

/* ===== CONTRAST CHECKER ===== */
.contrast-display {
border-radius: var(--radius); padding: 32px; text-align: center; margin: 16px 0;
border: 1px solid var(--border); transition: all 0.3s ease;
}
.contrast-ratio {
font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1;
}
.contrast-samples {
display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px;
}
.contrast-sample {
flex: 1; min-width: 150px; padding: 16px; border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.contrast-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wcag-badge {
padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.wcag-badge.pass { background: rgba(0,212,170,0.15); color: var(--accent2); border: 1px solid rgba(0,212,170,0.3); }
.wcag-badge.fail { background: rgba(255,107,107,0.15); color: var(--accent3); border: 1px solid rgba(255,107,107,0.3); }

/* ===== COLOR CONVERTER ===== */
.converter-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px;
}
.converter-box {
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 14px;
}
.converter-box label { font-size: 0.72rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.converter-val {
font-family: 'Courier New', monospace; font-size: 0.9rem; color: var(--text);
margin-top: 6px; word-break: break-all; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.converter-copy-btn {
background: none; border: none; color: var(--text3); cursor: pointer; font-size: 0.9rem; padding: 2px;
transition: color var(--transition); flex-shrink: 0;
}
.converter-copy-btn:hover { color: var(--accent); }

/* ===== SECTIONS STYLING ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin: 10px 0 14px; }
.section-header p { color: var(--text2); max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
padding: 28px; transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.feature-icon {
width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
background: var(--bg3); border: 1px solid var(--border);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; position: relative; }
.step-card {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
padding: 28px 24px; position: relative;
}
.step-num {
width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
display: flex; align-items: center; justify-content: center;
font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff;
margin-bottom: 16px;
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text2); line-height: 1.6; }

/* ===== SEO ARTICLE ===== */
.seo-article {
background: var(--card); border: 1px solid var(--border); border-radius: 20px;
padding: 48px; max-width: 860px; margin: 0 auto;
}
.seo-article h2 { font-size: 1.6rem; margin: 28px 0 12px; color: var(--text); }
.seo-article h2:first-child { margin-top: 0; }
.seo-article h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); }
.seo-article p { color: var(--text2); line-height: 1.75; margin-bottom: 14px; font-size: 0.95rem; }
.seo-article ul { margin: 10px 0 14px 20px; }
.seo-article li { color: var(--text2); line-height: 1.7; font-size: 0.95rem; margin-bottom: 4px; }
.seo-article strong { color: var(--text); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
overflow: hidden;
}
.faq-q {
width: 100%; text-align: left; padding: 18px 20px; background: none;
color: var(--text); font-size: 0.95rem; font-weight: 600;
display: flex; align-items: center; justify-content: space-between; gap: 12px;
cursor: pointer; transition: color var(--transition); border: none;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron { font-size: 0.9rem; color: var(--text3); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0,1,0,1);
}
.faq-item.open .faq-a { max-height: 400px; transition: max-height 0.5s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text2); font-size: 0.875rem; line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section {
background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
border: 1px solid var(--border); border-radius: 24px;
padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
background: radial-gradient(circle at center, rgba(124,92,252,0.08), transparent 60%);
pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta-section p { color: var(--text2); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; font-size: 1rem; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== DISCLAIMER ===== */
.disclaimer-box {
background: rgba(255,107,107,0.06); border: 1px solid rgba(255,107,107,0.2);
border-radius: var(--radius); padding: 16px 20px; margin-top: 40px;
}
.disclaimer-box p { font-size: 0.8rem; color: var(--text3); line-height: 1.6; }
.disclaimer-box strong { color: var(--text2); }

/* ===== FOOTER ===== */
.footer {
background: var(--bg2); border-top: 1px solid var(--border);
padding: 60px 0 30px;
}
.footer-grid {
display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand { }
.footer-logo {
display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.footer-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.82rem; color: var(--text3); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.footer-tool-link { font-size: 0.78rem; color: var(--text3); transition: color var(--transition); padding: 3px 0; }
.footer-tool-link:hover { color: var(--accent); }
.footer-bottom {
border-top: 1px solid var(--border); padding-top: 24px;
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text3); }
.footer-bottom a { color: var(--accent); }

/* ===== COLOR MIXER ===== */
.mixer-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mixer-result {
height: 80px; border-radius: var(--radius); border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-family: 'Courier New', monospace; font-weight: 700; font-size: 1rem;
margin-bottom: 12px; cursor: pointer; transition: all 0.3s ease;
}
.mix-ratio-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 200px; }
.mix-ratio-wrap label { font-size: 0.78rem; color: var(--text2); font-weight: 600; }
.mix-slider { width: 100%; accent-color: var(--accent); cursor: pointer; }

/* ===== SHADES TOOL ===== */
.shades-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 16px; }
.shade-swatch {
border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
border: 1px solid var(--border); transition: transform var(--transition);
}
.shade-swatch:hover { transform: translateY(-3px); }
.shade-color { height: 64px; }
.shade-info { padding: 6px 8px; background: var(--bg2); }
.shade-hex { font-family: 'Courier New', monospace; font-size: 0.7rem; color: var(--text2); }
.shade-pct { font-size: 0.65rem; color: var(--text3); }

/* ===== RANDOM PALETTE ===== */
.random-strip {
display: flex; height: 100px; border-radius: var(--radius); overflow: hidden;
border: 1px solid var(--border); margin: 16px 0; cursor: pointer;
transition: transform var(--transition);
}
.random-strip:hover { transform: scale(1.01); }
.random-strip div { flex: 1; transition: flex 0.4s ease; }
.random-strip div:hover { flex: 2; }

/* ===== EXPORT MODAL ===== */
.modal-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 5000;
display: flex; align-items: center; justify-content: center; padding: 20px;
opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
background: var(--bg3); border: 1px solid var(--border); border-radius: 20px;
padding: 28px; max-width: 560px; width: 100%;
transform: scale(0.95); transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text2); font-size: 1.3rem; cursor: pointer; }
.export-area {
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
padding: 14px; font-family: 'Courier New', monospace; font-size: 0.78rem;
color: var(--text2); line-height: 1.8; max-height: 300px; overflow-y: auto;
white-space: pre-wrap; word-break: break-all; margin-bottom: 14px;
}

/* ===== UTILITY ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text2); }
.text-sm { font-size: 0.85rem; }
.font-mono { font-family: 'Courier New', monospace; }
.w-full { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
.footer-grid { grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
.nav-links { display: none; }
.nav-toggle { display: flex; }
.hero { padding: 60px 0 40px; }
.section { padding: 60px 0; }
.tool-body { padding: 16px; }
.input-row { flex-direction: column; }
.select-input { min-width: 100%; }
.seo-article { padding: 28px 20px; }
.cta-section { padding: 48px 24px; }
.footer-grid { grid-template-columns: 1fr; }
.footer-tools-grid { grid-template-columns: 1fr 1fr; }
.palette-swatches { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.converter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
.nav-inner { padding: 0 14px; }
.container { padding: 0 14px; }
.hero h1 { font-size: 1.9rem; }
.steps { grid-template-columns: 1fr; }
.features-grid { grid-template-columns: 1fr; }
.converter-grid { grid-template-columns: 1fr; }
.gradient-controls { flex-direction: column; align-items: flex-start; }
.modal { padding: 20px; }
.footer-tools-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Lazy loading shimmer */
.lazy-shimmer {
background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }