/* Google Fonts Import */
/* Google Fonts imported in HTML for better performance */

:root {
    /* --- Premium Color Palette (2025) --- */
    /* Primary Brand Colors - Vibrant & Electric */
    --primary: #4f46e5;       /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --secondary: #ec4899;     /* Pink 500 */
    --accent: #8b5cf6;        /* Violet 500 */
    
    /* Gradients - Rich & Smooth */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    --gradient-border: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(236, 72, 153, 0.5));
    --gradient-text: linear-gradient(to right, #4f46e5, #8b5cf6, #ec4899);
    
    /* Backgrounds - Clean & Airy */
    --bg-body: #f8fafc;       /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-input: rgba(255, 255, 255, 0.9);
    
    /* Text Colors - High Contrast */
    --text-main: #0f172a;     /* Slate 900 */
    --text-muted: #64748b;    /* Slate 500 */
    --text-light: #94a3b8;    /* Slate 400 */
    
    /* Borders & Shadows - Subtle & Refined */
    --border: rgba(226, 232, 240, 0.8); /* Slate 200 */
    --border-hover: rgba(79, 70, 229, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
    
    /* UI Metrics */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --header-height: 72px;
    --input-height: 90px;
    
    /* Animation */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark {
    /* Dark Mode - High Contrast & Deep */
    --primary: #818cf8;       /* Indigo 400 */
    --primary-hover: #a5b4fc; /* Indigo 300 */
    --secondary: #f472b6;     /* Pink 400 */
    --accent: #c084fc;        /* Violet 400 */
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.4) 100%);
    --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5));
    --gradient-text: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
    
    /* Backgrounds - Deeper & Richer */
    --bg-body: #000000;       /* True Black for OLED pop */
    --bg-card: #111827;       /* Gray 900 - Distinct from black */
    --bg-glass: rgba(0, 0, 0, 0.85); /* Darker glass */
    --bg-input: #1f2937;      /* Gray 800 */
    
    /* Text Colors - Brighter */
    --text-main: #ffffff;     /* Pure White */
    --text-muted: #cbd5e1;    /* Slate 300 - Much lighter than before */
    --text-light: #94a3b8;    /* Slate 400 */
    
    /* Borders & Shadows */
    --border: rgba(255, 255, 255, 0.12); /* Crisp white border */
    --border-hover: rgba(129, 140, 248, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* --- Reset & Base --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
    outline-color: var(--primary);
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color var(--transition-base), color var(--transition-base);
    position: relative;
    overflow-x: hidden;
}

/* --- Background Pattern --- */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
    opacity: 1;
    pointer-events: none;
}

.dark .bg-pattern {
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(244, 114, 182, 0.1) 0%, transparent 45%);
}

/* --- Typography --- */
h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
}

.text-primary { 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    border: var(--glass-border);
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

/* --- Theme Toggle (Premium Animation) --- */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover { 
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode: Show Moon (Action: Go Dark) */
.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
.moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Dark Mode: Show Sun (Action: Go Light) */
.dark .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}
.dark .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--bg-body);
    border-left: var(--glass-border);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-bounce);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.close-menu-btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    background: var(--bg-card);
    color: var(--primary);
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* --- Main Content --- */
.site-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem calc(var(--input-height) + 4rem);
    display: flex;
    flex-direction: column;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    animation: fadeIn 0.8s ease-out;
}

.hero-section h1 { 
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 6s linear infinite;
    display: inline-block;
}

.hero-section p { 
    color: var(--text-muted); 
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Category Nav --- */
.category-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 40;
    background: var(--bg-body);
    margin: 0 -1.5rem 2.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    scroll-behavior: smooth;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.cat-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cat-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* --- Results Grid --- */
.cat-group {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media(min-width: 640px) { .results-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width: 1024px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }

.result-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.3);
}

.result-card:active { 
    transform: scale(0.98); 
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.share-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

.copy-hint {
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.75rem;
}

.result-card:hover .copy-hint {
    opacity: 1;
    transform: translateX(0);
}

.card-text {
    font-size: 1.25rem;
    word-break: break-word;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
    animation: fadeIn 0.6s ease-out;
}

.empty-icon { 
    font-size: 5rem; 
    margin-bottom: 1.5rem; 
    opacity: 0.5;
    filter: grayscale(0.5) drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.empty-state h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

/* --- Sticky Input Footer --- */
.input-bar-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
}

.input-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), var(--shadow-lg);
    transform: translateY(-2px);
}

#textInput {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
    font-family: inherit;
    font-weight: 500;
}
#textInput::placeholder { color: var(--text-light); }

.clear-btn {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    margin-right: 0.5rem;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: transparent;
    transform: rotate(90deg);
}

.input-box.has-value .clear-btn { display: flex; }

.char-count {
    padding: 0 1.5rem 0 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: calc(var(--input-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    color: var(--text-main);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-xl);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-bounce);
    z-index: 200;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: #10b981;
    display: flex;
    align-items: center;
}
.toast.error .toast-icon { color: #ef4444; }

/* --- SEO Content & Footer --- */
.seo-content {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media(min-width: 768px) { .content-grid { grid-template-columns: 1fr 1fr; } }

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.steps-list, .features-list {
    padding-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.steps-list li, .features-list li { margin-bottom: 0.75rem; }

.benefits-section { margin-bottom: 4rem; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-base);
}
.benefit-card:hover { transform: translateY(-5px); }

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--bg-body);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.faq-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-main); }
.faq-item p { color: var(--text-muted); line-height: 1.6; }

.site-info-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card {
    animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* --- Scrollbar Polish --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="text"] {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus { 
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-lg);
    background: var(--bg-card);
}

input[type="text"]::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.char-count {
    position: absolute;
    right: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
    font-weight: 600;
    background: var(--bg-input);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* --- Footer Links --- */
.site-info-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-links { 
    margin-bottom: 1rem;
}

.footer-links a { 
    color: var(--text-muted); 
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.footer-links a:hover { 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links a:hover::after {
    width: 100%;
}

.separator { 
    margin: 0 0.75rem; 
    opacity: 0.3; 
}

.copyright { 
    margin-top: 0.75rem; 
    opacity: 0.6;
    font-size: 0.85rem;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: calc(var(--input-height) + env(safe-area-inset-bottom) + 30px);
    left: 50%;
    transform: translate(-50%, 100px);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow) cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    width: max-content;
    max-width: 90vw;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.toast.show { 
    opacity: 1; 
    visibility: visible; 
    transform: translate(-50%, 0);
}

.dark .toast {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
}

/* --- SEO Content Section --- */
.seo-content {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.seo-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-block p, .content-block li, .faq-item p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.steps-list, .features-list {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.steps-list li::marker {
    color: var(--primary);
    font-weight: 700;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    position: relative;
}

.faq-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* --- Benefits Section --- */
.benefits-section {
    margin: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media(min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-border);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-xl);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
    transition: transform var(--transition-base);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Accessibility */
.sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    overflow: hidden; 
    clip: rect(0,0,0,0); 
    white-space: nowrap;
}

/* --- Mobile Responsive Refinements --- */
@media (max-width: 640px) {
    :root {
        --header-height: 60px;
        --input-height: 70px;
    }

    .site-main {
        padding: 1.5rem 1rem calc(var(--input-height) + 2rem);
    }

    .header-inner {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    .hero-section {
        margin-bottom: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem; /* Fallback */
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .category-nav {
        margin: 0 -1rem 1.5rem;
        padding: 0.75rem 1rem;
    }

    .cat-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .category-title {
        margin: 2rem 0 1rem;
        font-size: 1.1rem;
    }

    .input-container {
        padding: 0.75rem 1rem;
    }

    input[type="text"] {
        padding: 0.875rem 3.5rem 0.875rem 1.25rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    .char-count {
        right: 1rem;
        font-size: 0.75rem;
    }

    .toast {
        width: calc(100% - 2rem);
        bottom: calc(var(--input-height) + env(safe-area-inset-bottom) + 20px);
        text-align: center;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}