/* ============================================
   EXPLAINUR - MOBILE-FIRST STYLES
   Focus: SEO, Performance, Accessibility
   ============================================ */

/* CSS Custom Properties - Theming */
:root {
    /* Dark Mode (Default) */
    --bg-primary: #0a0f2c;
    --bg-secondary: #111936;
    --bg-tertiary: #1a2342;
    --bg-card: rgba(26, 35, 66, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-card: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    
    /* Typography */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Focus Ring */
    --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    --gradient-card: linear-gradient(145deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Focus Visible Styles */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ============================================
   THEME TRANSITION ANIMATIONS
   ============================================ */

/* Smooth theme transitions for all elements */
body,
body * {
    transition: background-color var(--transition-slow),
                color var(--transition-slow),
                border-color var(--transition-slow),
                box-shadow var(--transition-slow);
}

/* Disable transitions on page load */
body:not(.loaded) *,
body:not(.loaded) {
    transition: none !important;
}

/* Theme Transitioning State */
body.theme-transitioning {
    overflow: hidden;
}

/* Theme Ripple Effect */
.theme-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
}

.theme-ripple.active {
    animation: themeRipple 0.6s ease-out forwards;
}

@keyframes themeRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(300);
        opacity: 0;
    }
}

/* ============================================
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-primary),
                    0 0 10px var(--accent-primary),
                    0 0 15px var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 10px var(--accent-primary),
                    0 0 20px var(--accent-primary),
                    0 0 30px var(--accent-primary);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Shimmer Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Flow Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

/* ============================================
   UTILITY ANIMATION CLASSES
   ============================================ */

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-delay-1 { animation-delay: 0.1s; }
.animate-fade-in-delay-2 { animation-delay: 0.2s; }
.animate-fade-in-delay-3 { animation-delay: 0.3s; }
.animate-fade-in-delay-4 { animation-delay: 0.4s; }
.animate-fade-in-delay-5 { animation-delay: 0.5s; }

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ============================================
   ENHANCED BUTTON ANIMATIONS
   ============================================ */

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s ease;
}

.magnetic-btn:hover {
    animation: pulse 0.5s ease;
}

/* Button Glow on Hover */
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6),
                0 10px 40px rgba(59, 130, 246, 0.4);
}

/* ============================================
   ENHANCED CARD ANIMATIONS
   ============================================ */

.tool-card,
.article-card,
.feature-card,
.step-card {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

.tool-card:hover,
.article-card:hover,
.feature-card:hover,
.step-card:hover {
    transform: translateY(-8px);
}

/* Card Shine Effect */
.tool-card::after,
.article-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.tool-card:hover::after,
.article-card:hover::after {
    transform: rotate(30deg) translate(50%, 0);
}

/* ============================================
   ENHANCED LINK ANIMATIONS
   ============================================ */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   LOADING STATES & SKELETONS
   ============================================ */

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-hero);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ============================================
   ENHANCED TOGGLE BUTTON
   ============================================ */

.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.theme-toggle:active::before {
    width: 100%;
    height: 100%;
}

.theme-icon {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease;
}

/* ============================================
   PARALLAX & FLOATING ELEMENTS
   ============================================ */

.parallax-element {
    will-change: transform;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    animation: floatRotate 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: var(--accent-secondary);
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    background: var(--accent-tertiary);
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   NAVIGATION - MOBILE FIRST
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    opacity: 0.98;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), opacity var(--transition-normal);
}

.navbar {
    padding: var(--space-md) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    border-radius: 2px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Menu - Mobile */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    list-style: none;
    padding: var(--space-3xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: right var(--transition-normal);
    box-shadow: -5px 0 30px var(--shadow-color);
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: var(--space-sm) 0;
    display: block;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-normal);
    font-size: 1.25rem;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.theme-icon {
    position: absolute;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    opacity: 0;
}

[data-theme="light"] .theme-icon.sun {
    opacity: 0;
}

[data-theme="light"] .theme-icon.moon {
    opacity: 1;
}

/* ============================================
   HERO SECTION - MOBILE FIRST
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(80px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    overflow: hidden;
}

.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-normal);
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.btn-tool {
    background: var(--gradient-card);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

.btn-tool:hover {
    background: var(--accent-primary);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   SECTIONS - COMMON STYLES
   ============================================ */

section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   TOOLS SECTION
   ============================================ */

.tools-section {
    background: var(--bg-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.tool-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

/* ============================================
   LEARN SECTION
   ============================================ */

.learn-section {
    background: var(--bg-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--space-lg);
}

.article-category {
    display: inline-block;
    background: var(--gradient-hero);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.article-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-fast);
}

.article-link:hover {
    gap: var(--space-sm);
}

/* ============================================
   WHY SECTION
   ============================================ */

.why-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

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

.testimonial-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    backdrop-filter: blur(10px);
}

.testimonial-content p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.testimonial-author cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-weight: 400;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.carousel-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    color: var(--text-primary);
}

.carousel-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: var(--gradient-hero);
    padding: var(--space-3xl) 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section .section-title,
.newsletter-section .section-subtitle {
    color: white;
}

.newsletter-form {
    margin-top: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.newsletter-input {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    min-height: 48px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    background: white;
    color: var(--accent-primary);
    font-weight: 700;
}

.newsletter-btn:hover {
    background: var(--bg-primary);
    color: var(--accent-primary);
}

.error-message {
    color: #fecaca;
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

.privacy-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand img {
    height: 34px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */

.fab {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    background: var(--gradient-hero);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.fab.hidden {
    transform: scale(0);
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: var(--space-lg);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-sm);
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-xl);
}

/* Tool Form Elements */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: block;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.tool-output {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-family: monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-secondary);
}

.copy-btn {
    margin-top: var(--space-md);
    width: 100%;
}

/* Color Palette Specific Styles */
.color-palette {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    flex-wrap: wrap;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast);
    border: 2px solid var(--border-color);
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Social Platform Counters */
.platform-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.platform-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.platform-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
}

.char-count {
    font-weight: 600;
    color: var(--text-primary);
}

.char-limit {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.char-limit.warning {
    color: #f59e0b;
}

.char-limit.error {
    color: #ef4444;
}

/* Headline Score */
.score-display {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
}

.score-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

/* OG Preview */
.og-preview {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    margin-top: var(--space-md);
}

.og-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.og-content {
    padding: var(--space-md);
}

.og-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
}

.og-desc {
    color: #65676b;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.og-url {
    color: #65676b;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

/* ============================================
   TABLET BREAKPOINT (768px)
   ============================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
    
    /* Navigation */
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Hero */
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Grids */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Newsletter */
    .form-group {
        flex-direction: row;
    }
    
    .newsletter-input {
        flex: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px)
   ============================================ */

@media (min-width: 1024px) {
    /* Grids */
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Hero */
    .hero {
        padding-top: calc(100px + var(--space-3xl));
    }
    
    /* Articles */
    .article-image {
        height: 220px;
    }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .typing-cursor {
        animation: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .hero-stats,
    .fab,
    .modal-overlay,
    .newsletter-section,
    .carousel-controls {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}

/* ============================================
   NEW STYLES - IMAGES & AEO SECTIONS
   ============================================ */

/* Hero Image */
.hero-image-container {
    margin: var(--space-2xl) 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

/* How It Works Section */
.how-it-works-section {
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.step-number {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
    z-index: 1;
}

.step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    position: relative;
}

.step-card .step-number + .step-image {
    margin-top: 0;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-md) var(--space-lg) var(--space-sm);
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0 var(--space-lg) var(--space-lg);
    line-height: 1.6;
}

/* Tool Cards with Images */
.tool-visual {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.tool-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tool-card:hover .tool-image {
    transform: scale(1.05);
}

/* Featured Section */
.featured-section {
    background: var(--bg-tertiary);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.section-title-sm {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: filter var(--transition-normal);
}

.featured-logos:hover {
    filter: grayscale(0%);
}

.featured-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.featured-logo:hover {
    opacity: 1;
}

/* Feature Cards with Images */
.feature-card {
    position: relative;
}

.feature-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.feature-card:hover .feature-image {
    opacity: 1;
}

/* Testimonial Avatars */
.testimonial-image {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* FAQ Section - AEO Optimized */
.faq-section {
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.faq-item:hover {
    box-shadow: 0 10px 30px var(--shadow-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: none;
    width: 100%;
    text-align: left;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin-bottom: var(--space-md);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

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

/* Newsletter Icon */
.newsletter-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: var(--accent-primary);
}

.footer-social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Enhanced Image Loading States */
img {
    background: var(--bg-tertiary);
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

img[loading="lazy"].loaded,
img[loading="eager"] {
    opacity: 1;
}

/* Image Optimization for Performance */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Adjustments for New Sections */
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-image {
        height: 200px;
    }
    
    .faq-grid {
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .featured-logos {
        gap: var(--space-3xl);
    }
    
    .hero-image-container {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --border-color: currentColor;
    }
    
    .btn:focus-visible,
    .nav-link:focus-visible,
    .tool-card:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}
