/* ========================================
   CSS VARIABLES - BRAND COLORS
======================================== */
:root {
    /* Brand Colors */
    --brand-primary: #ff914d;
    --brand-primary-dark: #ff711a;
    --brand-primary-light: #fff6ed;

    --brand-dark: #11222C;
    --brand-dark-secondary: #1a3240;

    --brand-light: #F6F6F6;
    --brand-gray: #343a40;
    --brand-gray-light: #6c757d;

    /* Additional Colors */
    --white: #ffffff;
    --black: #000000;

    --success: #12b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #4dbbfe;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff914d 0%, #ff711a 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255,145,77,0.1) 0%, rgba(77,187,254,0.1) 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #F6F6F6;
    --text-primary: #11222C;
    --text-secondary: #343a40;
    --text-tertiary: #6c757d;
    --border-color: rgba(17, 34, 44, 0.1);
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.98);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f28;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #1a1f28;
    --header-bg: rgba(17, 24, 28, 0.98);

    --brand-dark: #e5e7eb;
    --brand-gray: #9ca3af;
    --brand-gray-light: #6b7280;
    --white: #1a1f28;
}

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* ========================================
   SCROLL PROGRESS BAR
======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff914d 0%, #4dbbfe 50%, #fee94d 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   HEADER
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff914d, #4dbbfe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff914d, #4dbbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    line-height: 1;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--brand-primary);
    background: var(--bg-secondary);
}

.nav-link i {
    font-size: 14px;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    /* Add padding at bottom to bridge gap between toggle and menu */
    padding-bottom: 0.5rem;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 0.2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    /* Remove margin-top to eliminate gap */
    margin-top: 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Keep dropdown open when hovering over menu */
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--brand-primary);
    padding-left: 1.2rem;
}

.dropdown-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #ff914d;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 145, 77, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #ff711a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 145, 77, 0.4);
}

.btn-outline {
    background: transparent;
    color: #ff914d;
    border: 2px solid #ff914d;
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 145, 77, 0.1);
    transform: translateY(-2px);
}

/* Ensure button colors remain consistent in dark mode */
[data-theme="dark"] .btn-primary {
    background: #ff914d;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 145, 77, 0.3);
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background: #ff711a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 145, 77, 0.4);
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    color: #ff914d;
    border: 2px solid #ff914d;
}

[data-theme="dark"] .btn-outline:hover:not(:disabled) {
    background: rgba(255, 145, 77, 0.1);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: #667eea;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 16px;
}

.btn-full-width {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 145, 77, 0.1);
}

.theme-icon {
    position: absolute;
    font-size: 18px;
    color: #ff914d;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

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

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 20px;
}

[data-theme="dark"] .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 16px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active,
.mobile-menu.show {
    display: block;
}

.mobile-menu-dropdown {
    margin-bottom: 4px;
}

.mobile-menu-dropdown-toggle {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-align: left;
    justify-content: space-between;
}

.mobile-menu-dropdown-toggle:hover {
    background: var(--bg-secondary);
}

.mobile-dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-menu-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 12px;
}

.mobile-menu-dropdown.active .mobile-submenu {
    max-height: 600px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
    background: var(--bg-secondary);
    color: var(--brand-primary);
}

.mobile-submenu-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    background: var(--bg-secondary);
    color: var(--brand-primary);
}

.mobile-menu-link i {
    width: 18px;
    text-align: center;
}

.mobile-menu-auth {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,145,77,0.05) 0%, rgba(77,187,254,0.05) 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,145,77,0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77,187,254,0.4) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254,233,77,0.3) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.9); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(17,34,44,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,34,44,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

[data-theme="dark"] .grid-overlay {
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 145, 77, 0.1);
    border: 1px solid rgba(255, 145, 77, 0.2);
    border-radius: 50px;
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--brand-dark);
}

.gradient-text {
    background: linear-gradient(135deg, #ff914d 0%, #4dbbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-area {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 145, 77, 0.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff914d 0%, #4dbbfe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.upload-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.upload-text {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.upload-limit {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff914d 0%, #ff711a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 145, 77, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 145, 77, 0.4);
}

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-mini-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.hero-mini-badge i {
    color: var(--brand-primary);
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.stat-number i {
    font-size: 20px;
    margin-left: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ========================================
   SECTIONS
======================================== */
.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 145, 77, 0.1);
    border: 1px solid rgba(255, 145, 77, 0.2);
    border-radius: 50px;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

.section-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   FEATURES SECTION
======================================== */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 145, 77, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ff914d 0%, #4dbbfe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

.feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   TEMPLATES SECTION
======================================== */
.templates-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.templates-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.template-tab {
    padding: 10px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-tab:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.template-tab.active {
    background: linear-gradient(135deg, #ff914d 0%, #4dbbfe 100%);
    border-color: transparent;
    color: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.template-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.template-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.template-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,145,77,0.1) 0%, rgba(77,187,254,0.1) 100%);
}

.template-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 12px;
    background: linear-gradient(to top, rgba(17,34,44,0.9), transparent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .template-name {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.template-item:hover .template-name {
    opacity: 1;
}

/* ========================================
   HOW IT WORKS
======================================== */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-theme="dark"] .how-it-works {
    background: linear-gradient(135deg, #1a1f28 0%, #2c3e50 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 32px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff914d 0%, #4dbbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(255, 145, 77, 0.3);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

.step-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.step-arrow {
    position: absolute;
    top: 50px;
    right: -20px;
    font-size: 24px;
    color: var(--brand-primary);
    opacity: 0.3;
}

/* ========================================
   EXAMPLES GALLERY
======================================== */
.examples-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.examples-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.example-item {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.example-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.example-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #ff914d 0%, #4dbbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-info {
    padding: 24px;
}

.example-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.example-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========================================
   FAQ SECTION
======================================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 145, 77, 0.3);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.faq-question i {
    font-size: 24px;
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.4;
    margin: 0;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-left: 40px;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.gradient-text-light {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content > p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.cta-stats .stat {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.cta-stats .stat-number {
    font-size: 36px;
    color: white;
}

.cta-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--brand-dark);
    color: white;
    padding: 60px 0 24px;
}

[data-theme="dark"] .footer {
    background: #0a0e12;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff914d, #4dbbfe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.footer-logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.footer-logo-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff914d, #4dbbfe);
    transform: translateY(-3px);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-list a:hover {
    color: var(--brand-primary);
    padding-left: 4px;
}

.footer-list i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-cta-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.footer-cta-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff914d 0%, #ff711a 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.footer-cta-button:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(255, 145, 77, 0.3);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 4px 0;
}

.footer-bottom i {
    color: #ef4444;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-actions .theme-toggle,
    .nav-actions .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .upload-area {
        padding: 32px 20px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Templates */
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    /* Steps */
    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        display: none;
    }

    /* Examples */
    .examples-gallery {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-stats {
        gap: 24px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-list a {
        justify-content: center;
    }

    .footer-cta-button {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .template-item {
        min-height: 150px;
    }
}
