:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-lighter: #f1f5f9;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --background: var(--white);
    --surface: var(--white);
    --border: var(--gray-lighter);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --focus-outline-color: var(--primary);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --background: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --white: #0f172a;
    --gray-lighter: #1e293b;
    --gray-light: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Universal Focus Style for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
[role="button"]:focus,
[role="menuitem"]:focus,
[role="option"]:focus,
.drop-zone:focus {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Style updates using CSS variables */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.language-dropdown,
.user-menu,
.modal,
.toast {
    background: var(--surface);
    border: 1px solid var(--border);
}

.input-group input,
.input-group select {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--gray-light);
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.drop-zone {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-item {
    background: var(--gray-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    color: var(--text);
}

/* Helper for injected text utility class in JS */
.text-gray-500 {
    color: var(--text-light);
}

/* Added button class for the theme toggle */
#theme-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--gray-lighter);
    color: var(--text);
    font-size: 1.25rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

#theme-toggle:hover {
    background: var(--gray-light);
}

.progress-bar-container {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.22));
}

.navbar-logo svg {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.navbar-menu>li>a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
    transition: color 0.3s ease;
}

.navbar-menu>li>a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-menu>li>a:hover {
    color: var(--primary);
}

.navbar-menu>li>a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.auth-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    padding: 0.45rem 1.15rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    min-width: 100px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    filter: brightness(1.06);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--gray-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: brightness(1.06);
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--gray-lighter);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    min-width: 120px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.language-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.language-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.language-dropdown a:hover {
    background: var(--gray-lighter);
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: var(--gray-lighter);
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 0.45rem;
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.user-btn:hover {
    background: var(--gray-light);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.user-menu.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.user-menu a,
.user-menu button {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
}

.user-menu a:hover,
.user-menu button:hover {
    background: var(--gray-lighter);
}

.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-demo {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-demo h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.drop-zone:hover,
.drop-zone.active {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.drop-zone svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

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

.tools-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 2rem;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.tool-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
}

.tool-card .btn {
    width: 100%;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.demo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.file-input-zone {
    border: 2px dashed var(--gray-light);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.file-input-zone:hover {
    border-color: var(--primary);
    background: var(--gray-lighter);
}

.file-input-zone svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--gray);
}

.file-list {
    margin: 1rem 0;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-item-info span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.file-status {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray);
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.preview-canvas {
    width: 100%;
    height: 200px;
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    margin: 1rem 0;
    background: var(--gray-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.how-it-works {
    background: var(--background);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step p {
    color: var(--text-light);
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonials {
    background: var(--gray-lighter);
}

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

.testimonial-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-info h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.developer-section {
    background: var(--dark);
    color: white;
}

.developer-section .section-header h2,
.developer-section .section-header p {
    color: white;
}

.code-examples {
    display: grid;
    gap: 2rem;
}

.code-example {
    background: var(--dark-light);
    border-radius: 1rem;
    padding: 2rem;
}

.code-example h3 {
    color: white;
    margin-bottom: 1rem;
}

.code-example pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    color: #a5d6ff;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    background: var(--surface);
    color: var(--text);
}

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

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1.25rem;
    margin-left: auto;
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        align-items: flex-start;
    }

    .navbar-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .navbar-actions {
        display: none;
    }

    .navbar-menu .navbar-actions {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

.hidden {
    display: none !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

.slide-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

.no-tools-message {
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition);
    width: 100%;
}

.no-tools-message.visible {
    opacity: 1;
}

.scroll-fade {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
}

.scroll-slide-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-zoom {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-zoom.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.scroll-stagger {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-stagger:nth-child(1).visible {
    transition-delay: 0s;
}

.scroll-stagger:nth-child(2).visible {
    transition-delay: 0.1s;
}

.scroll-stagger:nth-child(3).visible {
    transition-delay: 0.2s;
}

.scroll-stagger:nth-child(4).visible {
    transition-delay: 0.3s;
}

.scroll-stagger:nth-child(5).visible {
    transition-delay: 0.4s;
}

.scroll-stagger:nth-child(n + 6).visible {
    transition-delay: 0.5s;
}