/* =========================================
 CSS CUSTOM PROPERTIES
========================================= */
:root {
--bg: #0a0a0f;
--bg2: #0f0f18;
--bg3: #14141f;
--card: #16161f;
--card2: #1c1c2a;
--border: rgba(255,255,255,0.07);
--border2: rgba(255,255,255,0.12);
--accent: #6c63ff;
--accent2: #ff6b9d;
--accent3: #00d4aa;
--accent4: #ffd166;
--text: #f0f0ff;
--text2: #9090b8;
--text3: #5a5a80;
--glow: rgba(108,99,255,0.35);
--glow2: rgba(255,107,157,0.2);
--radius: 16px;
--radius-sm: 10px;
--radius-lg: 24px;
--shadow: 0 8px 40px rgba(0,0,0,0.5);
--font-display: 'Syne', sans-serif;
--font-body: 'DM Sans', sans-serif;
--nav-h: 68px;
}

*, *::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);
line-height: 1.65;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

/* =========================================
 COOKIE BANNER
========================================= */
#cookie-banner {
position: fixed;
bottom: 0; left: 0; right: 0;
background: var(--card2);
border-top: 1px solid var(--border2);
z-index: 9999;
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
backdrop-filter: blur(20px);
transform: translateY(100%);
animation: slideUpCookie 0.5s 1.5s ease forwards;
}
@keyframes slideUpCookie { to { transform: translateY(0); } }
#cookie-banner p { font-size: 0.85rem; color: var(--text2); flex: 1; min-width: 220px; }
#cookie-banner a { color: var(--accent); text-decoration: underline; }
#cookie-dismiss {
background: var(--accent);
color: #fff;
border: none;
padding: 8px 20px;
border-radius: 50px;
cursor: pointer;
font-family: var(--font-body);
font-size: 0.875rem;
font-weight: 600;
white-space: nowrap;
transition: opacity 0.2s;
}
#cookie-dismiss:hover { opacity: 0.85; }

/* =========================================
 NAVIGATION
========================================= */
nav {
position: sticky;
top: 0;
z-index: 1000;
height: var(--nav-h);
background: rgba(10,10,15,0.92);
backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 clamp(16px, 4vw, 48px);
gap: 24px;
}

.nav-logo {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.2rem;
color: var(--text);
text-decoration: none;
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
letter-spacing: -0.02em;
}
.nav-logo-icon {
width: 34px; height: 34px;
background: linear-gradient(135deg, var(--accent), var(--accent2));
border-radius: 9px;
display: flex; align-items: center; justify-content: center;
font-size: 1rem;
}

.nav-links {
display: flex;
align-items: center;
gap: 4px;
list-style: none;
flex: 1;
}

.nav-item { position: relative; }

.nav-link {
display: flex;
align-items: center;
gap: 5px;
padding: 8px 14px;
color: var(--text2);
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
border-radius: var(--radius-sm);
transition: color 0.2s, background 0.2s;
white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--card2); }
.nav-link svg { flex-shrink: 0; transition: transform 0.2s; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
position: absolute;
top: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: var(--card2);
border: 1px solid var(--border2);
border-radius: var(--radius);
padding: 12px;
min-width: 580px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
box-shadow: var(--shadow);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
transform: translateX(-50%) translateY(6px);
}
.nav-item:hover .dropdown {
opacity: 1;
visibility: visible;
pointer-events: all;
transform: translateX(-50%) translateY(0);
}
.dropdown a {
display: block;
padding: 7px 12px;
color: var(--text2);
text-decoration: none;
font-size: 0.8rem;
border-radius: 8px;
transition: background 0.15s, color 0.15s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dropdown a:hover { background: var(--card); color: var(--text); }
.dropdown-section-label {
grid-column: 1/-1;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text3);
padding: 8px 12px 4px;
}

.nav-cta {
background: linear-gradient(135deg, var(--accent), var(--accent2));
color: #fff !important;
padding: 8px 18px !important;
border-radius: 50px !important;
font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; }

/* Hamburger */
.nav-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 6px;
margin-left: auto;
z-index: 1001;
}
.nav-toggle span {
display: block;
width: 24px;
height: 2px;
background: var(--text);
border-radius: 2px;
transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
display: none;
position: fixed;
inset: var(--nav-h) 0 0 0;
background: var(--bg2);
z-index: 999;
overflow-y: auto;
padding: 20px;
flex-direction: column;
gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
display: block;
padding: 11px 16px;
color: var(--text2);
text-decoration: none;
font-size: 0.9rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.mobile-nav a:hover { background: var(--card2); color: var(--text); }
.mobile-nav-section {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text3);
padding: 12px 4px 4px;
}

@media (max-width: 900px) {
.nav-links { display: none; }
.nav-toggle { display: flex; }
}

/* =========================================
 BREADCRUMB
========================================= */
.breadcrumb-bar {
background: var(--bg2);
border-bottom: 1px solid var(--border);
padding: 10px clamp(16px, 4vw, 48px);
}
.breadcrumb {
display: flex;
align-items: center;
gap: 6px;
list-style: none;
font-size: 0.8rem;
color: var(--text3);
flex-wrap: wrap;
}
.breadcrumb li a { color: var(--text2); text-decoration: none; transition: color 0.2s; }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li.active { color: var(--accent); font-weight: 500; }
.breadcrumb-sep { color: var(--text3); }

/* =========================================
 HERO
========================================= */
.hero {
position: relative;
padding: clamp(60px, 10vw, 110px) clamp(16px, 4vw, 48px) clamp(40px, 7vw, 80px);
text-align: center;
overflow: hidden;
}

.hero-bg {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
}
.hero-orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
}
.hero-orb-1 {
width: 500px; height: 500px;
background: radial-gradient(circle, rgba(108,99,255,0.25) 0%, transparent 70%);
top: -100px; left: 50%;
transform: translateX(-50%);
}
.hero-orb-2 {
width: 350px; height: 350px;
background: radial-gradient(circle, rgba(255,107,157,0.18) 0%, transparent 70%);
top: 40px; right: 5%;
}
.hero-orb-3 {
width: 280px; height: 280px;
background: radial-gradient(circle, rgba(0,212,170,0.15) 0%, transparent 70%);
top: 60px; left: 5%;
}

/* Animated grid */
.hero-grid {
position: absolute;
inset: 0;
background-image: linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 50px 50px;
mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(108,99,255,0.12);
border: 1px solid rgba(108,99,255,0.3);
color: #a89fff;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 6px 16px;
border-radius: 50px;
margin-bottom: 28px;
animation: fadeDown 0.6s ease both;
}
.hero-badge .dot {
width: 6px; height: 6px;
background: var(--accent);
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero h1 {
font-family: var(--font-display);
font-size: clamp(2.2rem, 5.5vw, 4rem);
font-weight: 800;
line-height: 1.12;
letter-spacing: -0.03em;
margin-bottom: 22px;
animation: fadeDown 0.6s 0.1s ease both;
}
.hero h1 .grad {
background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-desc {
font-size: clamp(0.95rem, 2vw, 1.1rem);
color: var(--text2);
max-width: 620px;
margin: 0 auto 36px;
animation: fadeDown 0.6s 0.2s ease both;
line-height: 1.75;
}

.hero-btns {
display: flex;
gap: 14px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 52px;
animation: fadeDown 0.6s 0.3s ease both;
}

@keyframes fadeDown { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:none} }

.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 13px 28px;
border-radius: 50px;
font-family: var(--font-body);
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
text-decoration: none;
border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
background: linear-gradient(135deg, var(--accent), var(--accent2));
color: #fff;
box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(108,99,255,0.55); }
.btn-secondary {
background: var(--card2);
color: var(--text);
border: 1px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-outline {
background: transparent;
color: var(--accent);
border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(108,99,255,0.1); }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-icon { padding: 10px; border-radius: 10px; }

/* Platform badges */
.hero-platforms {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
animation: fadeDown 0.6s 0.4s ease both;
}
.platform-badge {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 50px;
font-size: 0.78rem;
color: var(--text2);
font-weight: 500;
}
.platform-badge .icon { font-size: 1rem; }

/* =========================================
 SECTIONS GENERAL
========================================= */
section { padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
display: inline-block;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 12px;
}
.section-title {
font-family: var(--font-display);
font-size: clamp(1.8rem, 3.5vw, 2.6rem);
font-weight: 800;
letter-spacing: -0.025em;
line-height: 1.2;
margin-bottom: 16px;
}
.section-desc {
color: var(--text2);
font-size: 1rem;
max-width: 560px;
line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* =========================================
 GENERATOR TOOL SECTION
========================================= */
#generator { background: var(--bg2); }

.generator-wrapper {
display: grid;
grid-template-columns: 340px 1fr;
gap: 24px;
align-items: start;
}

/* Settings Panel */
.settings-panel {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
position: sticky;
top: calc(var(--nav-h) + 16px);
}

.panel-header {
padding: 18px 20px;
border-bottom: 1px solid var(--border);
background: var(--card2);
}
.panel-header h3 {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
}
.panel-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }

/* Upload zone */
.upload-zone {
border: 2px dashed var(--border2);
border-radius: var(--radius);
padding: 28px 16px;
text-align: center;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
position: relative;
overflow: hidden;
}
.upload-zone:hover, .upload-zone.drag-over {
border-color: var(--accent);
background: rgba(108,99,255,0.05);
}
.upload-zone input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
width: 100%; height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-zone p { color: var(--text2); font-size: 0.85rem; }
.upload-zone span { color: var(--accent); font-weight: 600; }
.upload-formats { font-size: 0.75rem !important; color: var(--text3) !important; margin-top: 6px; }

/* Image preview in upload */
.upload-preview {
width: 80px; height: 80px;
border-radius: 12px;
object-fit: cover;
margin: 0 auto 10px;
display: block;
border: 2px solid var(--border2);
}

/* Form Controls */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
font-size: 0.78rem;
font-weight: 600;
color: var(--text2);
text-transform: uppercase;
letter-spacing: 0.06em;
}

.form-select, .form-input {
width: 100%;
background: var(--bg2);
border: 1px solid var(--border2);
color: var(--text);
padding: 9px 12px;
border-radius: var(--radius-sm);
font-family: var(--font-body);
font-size: 0.875rem;
outline: none;
transition: border-color 0.2s;
appearance: none;
-webkit-appearance: none;
}
.form-select:focus, .form-input:focus { border-color: var(--accent); }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
content: '▾';
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
color: var(--text3);
font-size: 0.8rem;
}

/* Color picker row */
.color-row {
display: flex;
align-items: center;
gap: 10px;
}
.color-row input[type="color"] {
width: 38px; height: 38px;
border: 1px solid var(--border2);
border-radius: 8px;
padding: 2px;
background: var(--bg2);
cursor: pointer;
flex-shrink: 0;
}
.color-row .form-input { flex: 1; }

/* Range slider */
.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type="range"] {
flex: 1;
-webkit-appearance: none;
height: 4px;
border-radius: 2px;
background: var(--border2);
outline: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px; height: 16px;
border-radius: 50%;
background: var(--accent);
cursor: pointer;
}
.range-val {
min-width: 34px;
text-align: right;
font-size: 0.82rem;
color: var(--text2);
font-weight: 600;
}

/* Toggle switch */
.toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.toggle-label { font-size: 0.85rem; color: var(--text2); }
.toggle {
position: relative;
width: 44px; height: 24px;
flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
position: absolute;
inset: 0;
background: var(--bg);
border: 1px solid var(--border2);
border-radius: 50px;
cursor: pointer;
transition: background 0.2s;
}
.toggle-slider::before {
content: '';
position: absolute;
left: 3px; top: 50%;
transform: translateY(-50%);
width: 16px; height: 16px;
background: var(--text3);
border-radius: 50%;
transition: transform 0.2s, background 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px) translateY(-50%); background: #fff; }

/* Custom sizes chip list */
.sizes-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.size-chip {
padding: 5px 11px;
background: var(--bg2);
border: 1px solid var(--border2);
border-radius: 50px;
font-size: 0.75rem;
color: var(--text2);
cursor: pointer;
transition: background 0.15s, border-color 0.15s, color 0.15s;
user-select: none;
}
.size-chip:hover { border-color: var(--accent); color: var(--text); }
.size-chip.active { background: rgba(108,99,255,0.15); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Format tabs */
.format-tabs { display: flex; gap: 6px; }
.format-tab {
flex: 1;
padding: 8px;
text-align: center;
background: var(--bg2);
border: 1px solid var(--border2);
border-radius: var(--radius-sm);
font-size: 0.78rem;
font-weight: 600;
color: var(--text2);
cursor: pointer;
transition: all 0.15s;
}
.format-tab.active { background: rgba(108,99,255,0.15); border-color: var(--accent); color: var(--accent); }

/* Generate button */
.btn-generate {
width: 100%;
padding: 14px;
background: linear-gradient(135deg, var(--accent), var(--accent2));
color: #fff;
border: none;
border-radius: var(--radius);
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
letter-spacing: 0.01em;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.45); }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Validation message */
.validation-msg {
font-size: 0.78rem;
padding: 6px 10px;
border-radius: 6px;
display: none;
}
.validation-msg.error { display: block; color: #ff6b6b; background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.25); }
.validation-msg.success { display: block; color: var(--accent3); background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.25); }
.validation-msg.warning { display: block; color: var(--accent4); background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.25); }

/* =========================================
 PREVIEW PANEL
========================================= */
.preview-panel {
display: flex;
flex-direction: column;
gap: 24px;
}

.preview-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
}

.preview-card-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
background: var(--card2);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.preview-card-header h3 {
font-family: var(--font-display);
font-size: 0.95rem;
font-weight: 700;
}

.preview-tabs {
display: flex;
gap: 6px;
}
.preview-tab {
padding: 5px 14px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 50px;
font-size: 0.78rem;
font-weight: 600;
color: var(--text2);
cursor: pointer;
transition: all 0.15s;
}
.preview-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.preview-canvas-area {
padding: 30px 20px;
display: flex;
flex-wrap: wrap;
gap: 20px;
align-items: flex-end;
justify-content: center;
min-height: 220px;
background: 
linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%) -10px 0,
linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%) -10px 0,
linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
background-size: 20px 20px;
}

.preview-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.preview-item canvas {
border-radius: 6px;
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
image-rendering: pixelated;
}
.preview-item-label {
font-size: 0.72rem;
color: var(--text3);
font-weight: 500;
}

/* Empty state */
.empty-state {
width: 100%;
min-height: 220px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
color: var(--text3);
text-align: center;
}
.empty-state-icon { font-size: 3rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

/* Generated results grid */
.results-grid {
padding: 20px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 14px;
}
.result-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 14px 10px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
}
.result-item:hover { border-color: var(--accent); background: rgba(108,99,255,0.05); }
.result-item canvas { border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.result-item-name { font-size: 0.72rem; font-weight: 600; color: var(--text2); text-align: center; }
.result-item-size { font-size: 0.68rem; color: var(--text3); }

/* Download bar */
.download-bar {
padding: 16px 20px;
border-top: 1px solid var(--border);
background: var(--card2);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.download-bar-info { font-size: 0.85rem; color: var(--text2); }
.download-bar-info strong { color: var(--text); }
.download-bar-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Progress bar */
.progress-wrap {
padding: 0 20px 20px;
display: none;
}
.progress-wrap.visible { display: block; }
.progress-bar-bg {
background: var(--bg2);
border-radius: 50px;
height: 6px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--accent2));
border-radius: 50px;
transition: width 0.3s ease;
width: 0%;
}
.progress-text { font-size: 0.78rem; color: var(--text2); margin-top: 6px; }

/* =========================================
 PLATFORM PRESET CARDS
========================================= */
.presets-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
margin-top: 20px;
}
.preset-card {
background: var(--bg2);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 16px 12px;
text-align: center;
cursor: pointer;
transition: all 0.2s;
}
.preset-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.preset-card.active { border-color: var(--accent); background: rgba(108,99,255,0.1); }
.preset-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.preset-card-name { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.preset-card-count { font-size: 0.72rem; color: var(--text3); }

/* =========================================
 FEATURES SECTION
========================================= */
#features { background: var(--bg); }

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-top: 48px;
}

.feature-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 28px 24px;
transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent), var(--accent2));
opacity: 0;
transition: opacity 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
width: 52px; height: 52px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
margin-bottom: 18px;
}
.feature-icon-1 { background: rgba(108,99,255,0.15); }
.feature-icon-2 { background: rgba(255,107,157,0.15); }
.feature-icon-3 { background: rgba(0,212,170,0.15); }
.feature-icon-4 { background: rgba(255,209,102,0.15); }
.feature-icon-5 { background: rgba(108,99,255,0.15); }
.feature-icon-6 { background: rgba(255,107,157,0.15); }
.feature-icon-7 { background: rgba(0,212,170,0.15); }
.feature-icon-8 { background: rgba(255,209,102,0.15); }
.feature-icon-9 { background: rgba(108,99,255,0.15); }

.feature-card h3 {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
margin-bottom: 8px;
}
.feature-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.7; }

/* =========================================
 PLATFORM SIZES TABLE SECTION
========================================= */
#sizes { background: var(--bg2); }

.sizes-accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.accordion-item {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.accordion-header {
display: flex;
align-items: center;
gap: 14px;
padding: 18px 20px;
cursor: pointer;
user-select: none;
transition: background 0.2s;
}
.accordion-header:hover { background: var(--card2); }
.accordion-header-icon { font-size: 1.4rem; }
.accordion-header-text { flex: 1; }
.accordion-header-text h4 {
font-family: var(--font-display);
font-size: 0.95rem;
font-weight: 700;
margin-bottom: 2px;
}
.accordion-header-text p { font-size: 0.78rem; color: var(--text3); }
.accordion-arrow {
width: 28px; height: 28px;
border-radius: 50%;
background: var(--bg2);
display: flex; align-items: center; justify-content: center;
transition: transform 0.3s;
flex-shrink: 0;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
display: none;
padding: 0 20px 20px;
}
.accordion-item.open .accordion-body { display: block; }
.sizes-table {
width: 100%;
border-collapse: collapse;
font-size: 0.82rem;
}
.sizes-table th {
text-align: left;
padding: 8px 12px;
background: var(--bg2);
color: var(--text3);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom: 1px solid var(--border);
}
.sizes-table td {
padding: 9px 12px;
border-bottom: 1px solid var(--border);
color: var(--text2);
}
.sizes-table tr:last-child td { border-bottom: none; }
.sizes-table tr:hover td { background: rgba(255,255,255,0.02); }
.size-badge {
display: inline-block;
background: rgba(108,99,255,0.1);
color: var(--accent);
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
font-size: 0.72rem;
}

/* =========================================
 HOW IT WORKS
========================================= */
#how-it-works { background: var(--bg); }

.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 24px;
margin-top: 48px;
position: relative;
}
.step-card {
text-align: center;
padding: 32px 20px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
position: relative;
transition: transform 0.2s, border-color 0.2s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.step-num {
position: absolute;
top: -16px;
left: 50%;
transform: translateX(-50%);
width: 32px; height: 32px;
background: linear-gradient(135deg, var(--accent), var(--accent2));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-display);
font-size: 0.85rem;
font-weight: 800;
color: #fff;
box-shadow: 0 4px 12px rgba(108,99,255,0.4);
}
.step-icon { font-size: 2.2rem; margin: 8px 0 16px; }
.step-card h3 {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
margin-bottom: 8px;
}
.step-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.7; }

/* =========================================
 SEO CONTENT SECTION
========================================= */
#about { background: var(--bg2); }

.about-grid {
display: grid;
grid-template-columns: 1fr 360px;
gap: 48px;
align-items: start;
margin-top: 40px;
}

.about-content h2 {
font-family: var(--font-display);
font-size: 1.6rem;
font-weight: 800;
letter-spacing: -0.025em;
margin-bottom: 16px;
}
.about-content p {
color: var(--text2);
font-size: 0.925rem;
line-height: 1.85;
margin-bottom: 14px;
}
.about-content h3 {
font-family: var(--font-display);
font-size: 1.1rem;
font-weight: 700;
margin: 22px 0 10px;
}
.about-content ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 7px;
}
.about-content ul li {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 0.9rem;
color: var(--text2);
}
.about-content ul li::before {
content: '✦';
color: var(--accent);
font-size: 0.6rem;
margin-top: 5px;
flex-shrink: 0;
}

.about-sidebar {
display: flex;
flex-direction: column;
gap: 16px;
}
.info-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.info-card h4 {
font-family: var(--font-display);
font-size: 0.9rem;
font-weight: 700;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.info-card ul li {
font-size: 0.82rem;
color: var(--text2);
padding: 5px 0;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.info-card ul li:last-child { border-bottom: none; }
.info-badge {
font-size: 0.68rem;
padding: 2px 7px;
border-radius: 4px;
font-weight: 600;
}
.info-badge-green { background: rgba(0,212,170,0.15); color: var(--accent3); }
.info-badge-blue { background: rgba(108,99,255,0.15); color: var(--accent); }

/* =========================================
 FAQ
========================================= */
#faq { background: var(--bg); }

.faq-grid {
max-width: 800px;
margin: 48px auto 0;
display: flex;
flex-direction: column;
gap: 12px;
}

.faq-item {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border2); }
.faq-item.open { border-color: var(--accent); }

.faq-question {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 18px 20px;
cursor: pointer;
user-select: none;
}
.faq-question h4 {
font-family: var(--font-display);
font-size: 0.95rem;
font-weight: 700;
flex: 1;
}
.faq-toggle {
width: 28px; height: 28px;
border-radius: 50%;
background: var(--bg2);
display: flex; align-items: center; justify-content: center;
color: var(--text2);
font-size: 1.1rem;
flex-shrink: 0;
transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }

.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.35s ease;
}
.faq-answer-inner {
padding: 0 20px 18px;
color: var(--text2);
font-size: 0.9rem;
line-height: 1.75;
}

/* =========================================
 CTA SECTION
========================================= */
#cta { background: var(--bg2); }

.cta-box {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 64px);
text-align: center;
position: relative;
overflow: hidden;
}
.cta-box::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(108,99,255,0.2) 0%, transparent 60%);
pointer-events: none;
}
.cta-box h2 {
font-family: var(--font-display);
font-size: clamp(1.8rem, 4vw, 3rem);
font-weight: 800;
letter-spacing: -0.03em;
margin-bottom: 16px;
position: relative;
}
.cta-box p { color: var(--text2); font-size: 1rem; margin-bottom: 36px; position: relative; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =========================================
 DISCLAIMER
========================================= */
.disclaimer-bar {
background: rgba(255,209,102,0.05);
border-top: 1px solid rgba(255,209,102,0.15);
padding: 16px clamp(16px, 4vw, 48px);
font-size: 0.78rem;
color: var(--text3);
text-align: center;
line-height: 1.7;
}
.disclaimer-bar a { color: var(--accent); text-decoration: underline; }

/* =========================================
 FOOTER
========================================= */
footer {
background: var(--bg2);
border-top: 1px solid var(--border);
padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) 24px;
}

.footer-grid {
display: grid;
grid-template-columns: 260px 1fr;
gap: 48px;
margin-bottom: 40px;
}

.footer-brand p {
color: var(--text2);
font-size: 0.875rem;
margin-top: 12px;
line-height: 1.75;
}
.footer-brand .footer-social {
display: flex;
gap: 10px;
margin-top: 16px;
}
.footer-social a {
width: 34px; height: 34px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text2);
text-decoration: none;
font-size: 0.85rem;
transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-links-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 32px;
}
.footer-col h5 {
font-family: var(--font-display);
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text3);
margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a {
color: var(--text2);
text-decoration: none;
font-size: 0.83rem;
transition: color 0.15s;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
border-top: 1px solid var(--border);
padding-top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
font-size: 0.78rem;
color: var(--text3);
}
.footer-bottom a { color: var(--text3); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================
 UTILITY
========================================= */
.hidden { display: none !important; }

/* =========================================
 RESPONSIVE
========================================= */
@media (max-width: 1080px) {
.generator-wrapper { grid-template-columns: 1fr; }
.settings-panel { position: static; }
.about-grid { grid-template-columns: 1fr; }
.about-sidebar { flex-direction: row; flex-wrap: wrap; }
.info-card { flex: 1; min-width: 220px; }
}

@media (max-width: 768px) {
.footer-grid { grid-template-columns: 1fr; gap: 32px; }
.footer-links-grid { grid-template-columns: 1fr 1fr; }
.steps-grid { grid-template-columns: 1fr 1fr; }
.features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
.steps-grid { grid-template-columns: 1fr; }
.footer-links-grid { grid-template-columns: 1fr; }
.hero-btns { flex-direction: column; align-items: center; }
.download-bar { flex-direction: column; align-items: flex-start; }
.preview-card-header { flex-direction: column; align-items: flex-start; }
.cta-btns { flex-direction: column; align-items: center; }
}

/* Scroll animation helper */
.fade-up {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* Loader spinner */
.spinner {
width: 18px; height: 18px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.6s linear infinite;
display: none;
}
.spinner.active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Notification toast */
#toast {
position: fixed;
bottom: 80px;
right: 24px;
z-index: 9998;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.toast-msg {
padding: 12px 18px;
background: var(--card2);
border: 1px solid var(--border2);
border-radius: var(--radius-sm);
font-size: 0.875rem;
color: var(--text);
box-shadow: var(--shadow);
animation: toastIn 0.3s ease, toastOut 0.3s 2.7s ease forwards;
pointer-events: all;
display: flex;
align-items: center;
gap: 8px;
}
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes toastOut { to { opacity:0; transform:translateY(10px); } }