:root {
    --primary: #3f51b5;
    --primary-rgb: 63, 81, 181;
    --primary-dark: #303f9f;
    --secondary: #f50057;
    --bg-light: #f3f4f6;
    --text-light: #1f2937;
    --card-light: #ffffff;
    --bg-dark: #121212;
    --text-dark: #e0e0e0;
    --card-dark: #1e1e1e;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --text: var(--text-dark);
    --card: var(--card-dark);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --text: var(--text-light);
    --card: var(--card-light);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

[data-theme="light"] {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    background-attachment: fixed;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
}

/* Background Decorations */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(63, 81, 181, 0.08) 0%, rgba(63, 81, 181, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: move 20s infinite alternate;
}

.blob-1 { top: -100px; right: -100px; background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%); }
.blob-2 { bottom: -150px; left: -150px; background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(236, 72, 153, 0) 70%); animation-delay: -5s; }
.blob-3 { top: 40%; left: 10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(63, 81, 181, 0.05) 0%, rgba(63, 81, 181, 0) 70%); animation-delay: -10s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

header {
    margin: 1rem auto;
    width: 90%;
    max-width: 1000px;
    padding: 0 2rem;
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.7);
    position: sticky;
    top: 1.5rem;
    z-index: 1000;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

[data-theme="dark"] header {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    line-height: normal;
}

.nav-links a:hover:not(.btn) {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-dropdown:hover .dropdown-trigger {
    color: var(--primary);
}

.nav-links a.nav-active {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 0.8rem 0;
    z-index: 1001;
    border: 1px solid rgba(128,128,128,0.1);
    opacity: 0;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.dropdown-content a i {
    width: 20px;
    color: var(--primary);
    opacity: 0.8;
}

.dropdown-content a:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}

.alert-info {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.server-warning {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease out;
}

.server-warning i {
    font-size: 1.5rem;
}

.server-warning a {
    color: #ff4d4d;
    font-weight: 700;
    text-decoration: underline;
}

.badge-warning {
    background: rgba(255, 167, 38, 0.1);
    color: #ffa726;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.menu-toggle, .hamburger {
    display: none;
    z-index: 200;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

[data-theme="light"] .hamburger span { background: #121212; }
[data-theme="dark"] .hamburger span { background: #ffffff; }

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

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: flex-start;
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary);
}

[data-theme="dark"] .card:hover {
    background: rgba(30, 41, 59, 0.7);
}

.card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    transform: rotate(-5deg);
}

.card .icon {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary);
    transition: all 0.4s ease;
}

.card:hover .icon {
    color: white;
}

.card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.65;
    line-height: 1.6;
}

/* File Preview Card Action Styles */
.preview-card {
    position: relative;
    padding: 1.5rem !important;
}

.thumbnail {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.03);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
    border-radius: 24px;
    z-index: 10;
    pointer-events: none;
}

.preview-card:hover .card-overlay, .preview-card.selected .card-overlay {
    opacity: 1;
}

.card-top-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: auto;
}

.card-bottom-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    pointer-events: auto;
}

.card-selection-toggle {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.preview-card.selected .card-selection-toggle {
    background: #00bcd4;
    border-color: #00bcd4;
}

.preview-card.selected {
    border: 2px solid #00bcd4 !important;
    background: rgba(0, 188, 212, 0.05) !important;
}

.card-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
    z-index: 12;
}

.card-action-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.card-action-btn.delete-btn:hover {
    background: #ff4d4d;
    color: white;
}

.card-action-btn.rotate-btn:hover {
    background: var(--primary);
    color: white;
}

/* Rotation Classes */
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.rotate-270 { transform: rotate(270deg); }

.tool-tag {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(63, 81, 181, 0.1);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-area {
    border: 2px dashed var(--primary);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    background: rgba(92, 107, 192, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    background: rgba(92, 107, 192, 0.1);
}

/* SEO Hero Grid - Modernized Stacked Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacked by default */
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.seo-hero-text {
    text-align: center; /* Centered layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background: rgba(var(--primary-rgb), 0.03);
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

@media (max-width: 992px) {
    .hero-grid {
        gap: 2rem;
    }
}
    }
}

/* Features Banner Section */
.features-banner {
    margin: 6rem auto 4rem;
    text-align: center;
    max-width: 1000px;
    padding: 0 1rem;
}

.features-banner h2 {
    font-size: 2.2rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.features-horizontal-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-hz {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-width: 250px;
}

.feature-icon {
    background: #cc3333;
    color: white;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-hz h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.feature-hz p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .features-horizontal-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        max-width: 300px;
        margin: 0 auto;
    }
}
#theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transform: rotate(15deg) scale(1.1);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

/* --- HOW IT WORKS ANIMATED SECTION (Precision Narrative) --- */
/* --- HOW IT WORKS MODERIZED SECTION (Premium HUD) --- */
.how-it-works {
    margin: 4rem auto;
    padding: 6rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hiw-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem;
}

.hiw-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    scale: 0.9;
}

.mockup-base {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.mockup-header {
    height: 54px;
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
}

.mockup-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

.mockup-status-pill {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 4px 10px;
    border-radius: 100px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.mockup-content {
    display: grid;
    grid-template-columns: 80px 1fr;
    height: calc(100% - 54px);
}

.mockup-toolbar {
    background: rgba(var(--primary-rgb), 0.02);
    border-right: 1px solid rgba(var(--primary-rgb), 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
}

.tool-btn {
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
}

.tool-btn.active {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.mockup-canvas {
    padding: 30px;
    position: relative;
    background: white;
}

.canvas-item-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(var(--primary-rgb), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--primary-rgb), 0.2);
    font-size: 2rem;
}

.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanMove 4s ease-in-out infinite;
    z-index: 5;
    opacity: 0.5;
}

@keyframes scanMove {
    0% { top: 10%; }
    50% { top: 90%; }
    100% { top: 10%; }
}

.floating-item {
    position: absolute;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hiw-visual:has(~ .hiw-steps .step-card[data-step="1"].active) .item-1,
.hiw-visual:has(~ .hiw-steps .step-card[data-step="2"].active) .item-2,
.hiw-visual:has(~ .hiw-steps .step-card[data-step="3"].active) .item-3 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fallback if CSS :has is not supported */
.step-card[data-step="1"].active ~ .hiw-visual .item-1 { opacity: 1; }

.item-1 { top: 15%; right: -5%; }
.item-2 { bottom: 10%; left: -5%; }
.item-3 { bottom: 25%; right: -10%; }

.file-icon-box {
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.file-icon-box i { color: #ef4444; font-size: 1.25rem; }
.file-name { font-size: 0.85rem; font-weight: 700; color: #1e293b; }

.upload-progress-bar {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    width: 75%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill { from { width: 0; } to { width: 75%; } }

.action-chip {
    background: #1e293b;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.action-chip i { color: #38bdf8; animation: rotate 2s linear infinite; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.success-card {
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #dcfce7;
}

.success-icon {
    width: 36px;
    height: 36px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.success-text { display: flex; flex-direction: column; }
.success-text strong { font-size: 0.85rem; color: #065f46; }
.success-text span { font-size: 0.75rem; color: #059669; }

.security-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.shield-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    animation: glowPulse 4s infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Steps (Right Side) */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 10px;
}

.step-card {
    display: flex;
    gap: 1rem;
    opacity: 0.3;
    transform: translateX(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.active {
    opacity: 1;
    transform: translateX(0);
}

.step-marker {
    position: relative;
    z-index: 5;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    transition: all 0.8s;
    line-height: 1;
}

.step-card.active .step-number {
    opacity: 1;
    transform: scale(1.1);
}

.step-info h3 {
    font-size: 1rem;
    font-weight: 850;
    color: var(--text);
    margin-bottom: 0.2rem;
    letter-spacing: -0.2px;
}

.step-info p {
    font-size: 0.82rem;
    opacity: 0.6;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.step-feature-list {
    display: flex;
    gap: 1.5rem;
}

.step-feature-list span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hiw-line {
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 100%;
    background: rgba(var(--primary-rgb), 0.05);
}

.line-progress {
    width: 100%;
    background: var(--primary);
    transition: height 0.5s ease;
}

.hiw-cta-wrapper {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
}

.hiw-cta-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 1100px) {
    .hiw-container { grid-template-columns: 1fr; gap: 6rem; padding: 0 2rem; }
    .hiw-visual { height: 450px; }
    .mockup-base { max-width: 500px; height: 350px; }
    .step-number { font-size: 2.5rem; }
    .step-info h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .how-it-works { padding: 4rem 0; }
    .hiw-container { gap: 4rem; }
    .hiw-visual { scale: 0.9; height: 400px; }
    .step-feature-list { flex-direction: column; gap: 0.5rem; }
    .hiw-steps { padding-left: 0; }
    .hiw-line { display: none; }
}

/* --- FOOTER STYLING --- */
.btn {
    display: inline-block;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 2.5rem;
    border-radius: 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(5px);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    color: var(--text);
    text-decoration: none;
}

.footer-logo-img {
    max-height: 35px;
    width: auto;
}

.footer-logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-logo-placeholder i {
    font-size: 1.2rem;
}

.footer-logo-text {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 1rem;
    opacity: 0.6;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
    text-decoration: none;
}

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

.footer-col-title {
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    line-height: 2.5;
}

.footer-links li a {
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links li a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    opacity: 1;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    opacity: 1;
}

@media (max-width: 768px) {
    header {
        width: 95%;
        margin: 0.8rem auto;
        padding: 0 1.2rem;
        top: 0.8rem;
        min-height: 56px;
    }

    .social-links {
        justify-content: flex-start;
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 210;
        position: relative;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 2px;
        transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.5rem;
        z-index: 200;
        padding: 6rem 2rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 1;
        visibility: visible;
        clip-path: none;
    }

    .menu-toggle:checked ~ .nav-links {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(128,128,128,0.05);
        color: var(--text);
        transform: none;
        filter: none;
        opacity: 1;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-actions {
        width: 100%;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 2px solid rgba(128,128,128,0.1);
        justify-content: space-between;
        gap: 1rem;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .menu-toggle:checked ~ .nav-links {
        opacity: 1;
        visibility: visible;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .menu-toggle:checked ~ .nav-links a,
    .menu-toggle:checked ~ .nav-links .nav-actions {
        opacity: 1;
    }

    /* Mobile Dropdown Adjustments */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-trigger {
        font-size: 1.5rem;
        font-weight: 700;
        justify-content: space-between;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(128,128,128,0.05);
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(var(--primary-rgb), 0.03);
        box-shadow: none;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 12px;
        width: 100%;
        margin-top: 0.5rem;
        opacity: 1;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .nav-dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        font-size: 1rem !important;
        font-weight: 600 !important;
        padding: 0.8rem 1rem !important;
        border-bottom: none !important;
        opacity: 0.8;
    }

    .dropdown-content a i {
        display: inline-block;
        font-size: 0.9rem;
    }

    /* Staggered entry */
    .menu-toggle:checked ~ .nav-links a:nth-child(1) { transition-delay: 0.3s; }
    .menu-toggle:checked ~ .nav-links a:nth-child(2) { transition-delay: 0.35s; }
    .menu-toggle:checked ~ .nav-links a:nth-child(3) { transition-delay: 0.4s; }
    .menu-toggle:checked ~ .nav-links .nav-actions { transition-delay: 0.45s; }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) { 
        opacity: 0; 
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) { 
        transform: translateY(-8px) rotate(-45deg); 
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }

    @media (max-width: 480px) {
        .grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem;
            padding: 0 0.2rem;
        }
        .card {
            padding: 1.2rem 0.8rem;
        }
        .card .icon-wrapper {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            margin-bottom: 1rem;
        }
        .card .icon {
            font-size: 1.5rem;
        }
        .card h3 {
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }
        .card p {
            font-size: 0.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .tool-tag {
            top: 0.5rem;
            right: 0.5rem;
            font-size: 0.6rem;
            padding: 0.1rem 0.4rem;
        }
    }

    .card {
        padding: 1rem;
    }

    .card .icon {
        font-size: 1.8rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem !important;
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    .container {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }

    .upload-area {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        gap: 1.5rem 0.5rem;
        padding: 2.5rem 1rem;
    }

    .footer-col:first-child {
        grid-column: 1 / 4;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-logo-text {
        font-size: 1.4rem;
    }

    .footer-description {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }

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

    .footer-col-title {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        line-height: 2;
    }

    .footer-links li a {
        font-size: 0.8rem;
    }

    .main-footer {
        margin-top: 0;
        padding-top: 0;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    @media (max-width: 400px) {
        .grid, .innovation-grid, .footer-grid {
            gap: 0.6rem;
            padding: 0 0.4rem;
        }
        .card, .innovation-card {
            padding: 1rem 0.5rem;
        }
        h1 { font-size: 1.6rem !important; }
        h2 { font-size: 1.4rem !important; }
    }

    .content-grid, .form-grid, .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    opacity: 0.8;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Image Thumbnails */
/* Adaptive Image Thumbnails */
.thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: none;
    border: none !important;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.preview-card:hover .thumbnail img {
    transform: scale(1.08); /* More refined zoom */
}

.preview-card {
    padding: 0.8rem 0.8rem 1.2rem 0.8rem !important;
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.05) !important; /* Thinner subtle border */
    box-shadow: 0 8px 30px rgba(0,0,0,0.04) !important;
}

/* --- Modern Features Banner --- */
.features-banner {
    margin: 2rem auto 1rem;
    text-align: center;
    max-width: 1240px;
    padding: 2rem;
    position: relative;
    background: radial-gradient(circle at top center, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
    border-radius: 40px;
}

.features-banner h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
    animation: fadeInDown 0.8s ease-out;
}

.features-horizontal-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

.feature-hz {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    min-width: 300px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-hz:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
}

.feature-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, #ff4d4d 100%);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.feature-hz h4 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.feature-hz p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.5;
}

@keyframes shine {
    0% { left: -100%; transition-property: left; }
    100% { left: 100%; transition-property: left; }
}

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

/* Mobile Adjustments for innovative banner */
@media (max-width: 768px) {
    .features-banner { padding: 2.5rem 1rem; margin: 4rem auto; }
    .features-banner h2 { font-size: 1.8rem; margin-bottom: 2.5rem; }
    .feature-hz { min-width: 100%; width: 100%; padding: 1.2rem; }
}

/* --- Modern Accordion FAQ --- */
.faq-accordion {
    max-width: 850px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.faq-question {
    padding: 1.8rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    padding-right: 1.5rem;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--text);
    opacity: 0.8;
    line-height: 1.7;
    font-size: 1rem;
}

.content-grid, .form-grid, .responsive-grid {
    display: grid;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.content-grid, .responsive-grid {
    grid-template-columns: 1fr 1fr;
}

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