@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;

    --color-primary-100: #ebf8ff;
    /* Lighter primary blue for hover/backgrounds */
    --color-primary-500: #2563eb;
    --color-primary-600: #1e40af;
    --color-primary-700: #1d368e;
    /* Darker shade for gradients/active states */

    --color-success-100: #e6fffa;
    /* Lighter success green for backgrounds */
    --color-success-400: #86efac;
    /* Lighter green for backgrounds */
    --color-success-500: #22c55e;
    /* Main success green */
    --color-success-700: #15803d;
    /* Darker green for text */

    --color-error-100: #fff5f5;
    /* Lighter error red for backgrounds */
    --color-error-400: #f87171;
    /* Lighter red for backgrounds */
    --color-error-500: #ef4444;
    /* Main error red */
    --color-error-700: #b91c1c;
    /* Darker red for text */

    --color-info-400: #60a5fa;
    /* Lighter blue for backgrounds */
    --color-info-500: #3b82f6;
    /* Main info blue */
    --color-info-700: #1d4ed8;
    /* Darker blue for text */

    --color-text-900: #1a202c;
    /* Heading text */
    --color-text-700: #2d3748;
    /* Body text */
    --color-text-500: #4a5568;
    /* Secondary text */
    --color-text-300: #718096;
    /* Placeholder/muted text */

    --color-border-200: #e2e8f0;
    /* Light border */
    --color-border-300: #cbd5e0;
    /* Medium border */
    --color-border-400: #a0aec0;
    /* Darker border */

    --bg-light: #ffffff;
    --bg-medium: #f7fafc;
    --bg-dark: #edf2f7;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-md-primary: 0 4px 6px rgba(49, 130, 206, 0.2);
    /* For primary buttons etc. */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background: var(--bg-medium);
    min-height: 100vh;
    color: var(--color-text-700);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-900);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* Header */
.header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--color-border-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Needed for menu-toggle positioning */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-light);
    font-weight: 800;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-900);
    margin-bottom: 2px;
}

.header-text p {
    font-size: 14px;
    color: var(--color-text-300);
}

.header-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--color-text-300);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-badge {
    background: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--color-text-500);
}

.stat-badge a {
    color: inherit;
    text-decoration: none;
}

.stat-badge a:hover {
    text-decoration: underline;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px;
}

/* Messages */
.messages {
    margin-bottom: 24px;
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message.success {
    background: var(--color-success-400);
    color: var(--color-success-700);
    border: 1px solid var(--color-success-500);
}

.message.error {
    background: var(--color-error-400);
    color: var(--color-error-700);
    border: 1px solid var(--color-error-500);
}

.message.info {
    background: var(--color-info-400);
    color: var(--color-info-700);
    border: 1px solid var(--color-info-500);
}

.message::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--color-success-500);
    color: var(--bg-light);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

.message.error::before {
    content: "✕";
    background: var(--color-error-500);
}

.message.info::before {
    content: "ⓘ";
    background: var(--color-info-500);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.download-section h2 {
    color: var(--color-success-700);
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
}

.download-btn {
    background: var(--bg-light);
    color: var(--color-success-700);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 64px 0;
    margin-bottom: 48px;
}

.hero-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-900);
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 18px;
    color: var(--color-text-300);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.tool-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    /* Added for absolute positioned children like badges */
}

/* How it Works Section Styles */
.how-it-works-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text-900);
}

.how-it-works-section p {
    font-size: 15px;
    color: var(--color-text-500);
    max-width: 200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-light);
    padding: 40px 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border-200);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-500);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.tool-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-900);
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 14px;
    color: var(--color-text-300);
    line-height: 1.5;
}


/* Main Content Area */
.content-area {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    min-height: 100px;
}

.tool-section {
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border-200);
}

.tool-section:first-child {
    padding-top: 0;
}

.tool-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


/* Section Header */
.section-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--bg-medium);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-900);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-300);
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: var(--bg-dark);
    border-left: 4px solid var(--color-info-500);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--color-text-700);
    line-height: 1.6;
}

.info-box strong {
    color: var(--color-text-900);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.info-box code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 13px;
    color: var(--color-error-500);
}

.info-box a {
    color: var(--color-info-500);
    text-decoration: none;
    font-weight: 500;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
    text-align: left;
    /* Ensure labels align left in new forms */
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-700);
    font-weight: 600;
    font-size: 14px;
}

input[type="file"] {
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--color-border-300);
    border-radius: 12px;
    background: var(--bg-medium);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--color-text-500);
}

input[type="file"]:hover {
    border-color: var(--color-primary-500);
    background: var(--bg-light);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border-200);
    border-radius: 10px;
    background: var(--bg-light);
    font-size: 15px;
    color: var(--color-text-700);
    transition: all 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border-200);
    border-radius: 10px;
    background: var(--bg-light);
    font-size: 15px;
    color: var(--color-text-700);
    cursor: pointer;
    transition: all 0.2s;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-medium);
    border-radius: 8px;
    margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-300);
    border-radius: 6px;
    /* Slightly rounded squares */
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--color-primary-500);
    border-color: var(--color-primary-500);
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: '✓';
    display: block;
    color: var(--bg-light);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

.checkbox-group input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-500);
}

/* Button */
.btn,
.button {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    color: var(--bg-light);
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    /* Bolder for buttons */
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn:hover:not(:disabled),
.button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn:active:not(:disabled),
.button:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled,
.button:disabled {
    background: var(--color-border-300);
    color: var(--color-text-500);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary-large {
    padding: 16px 40px;
    font-size: 18px;
}

.button-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: none;
}

.button-danger {
    background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-700) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.button-danger:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* File List (for merge) */
#file-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    min-height: 60px;
    border: 2px dashed var(--color-border-300);
    border-radius: 12px;
    padding: 16px;
    background: var(--bg-medium);
}

#file-list:empty::before {
    content: "Files will appear here - drag to reorder";
    color: var(--color-text-300);
    font-size: 14px;
    display: block;
    text-align: center;
    padding: 20px;
}

#file-list li {
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid var(--color-border-200);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

#file-list li:hover {
    border-color: var(--color-primary-500);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

#file-list li:active {
    cursor: grabbing;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drag-handle {
    font-size: 18px;
    color: var(--color-border-400);
    cursor: grab;
}

.file-name {
    color: var(--color-text-700);
    font-weight: 600;
    font-size: 15px;
}

.delete-btn {
    background: var(--color-error-500);
    color: var(--bg-light);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: var(--color-error-700);
    transform: scale(1.05);
}

.blue-background-class {
    background: #dbeafe !important;
    /* Specific blue, perhaps replace with variable */
    border-color: var(--color-primary-500) !important;
    transform: scale(1.02);
}

.file-count {
    background: var(--color-primary-500);
    color: var(--bg-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--color-border-200);
    padding: 80px 0 40px;
    margin-top: 120px;
}

.footer h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-900);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a:hover {
    color: var(--color-primary-500) !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .logo-section {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .header-stats {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 20px;
    }

    .container {
        padding: 20px;
    }

    .content-area {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .hero-section h2 {
        font-size: 36px;
    }
}

/* File Upload Mode Switch */
.file-upload-mode-switch {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--bg-medium);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border-200);
}

.file-upload-mode-switch label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--color-text-500);
}

.file-upload-mode-switch input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-300);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-upload-mode-switch input[type="radio"]:checked {
    border-color: var(--color-primary-500);
    background-color: var(--color-primary-500);
}

.file-upload-mode-switch input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--bg-light);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.file-upload-mode-switch input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.multiple-files-info {
    margin-top: -10px;
    /* Adjust spacing with previous element */
    margin-bottom: 20px;
    padding-left: 10px;
    /* Align with input field */
}

.text-muted {
    color: var(--color-text-300);
    font-size: 14px;
}

.auth-form-container {
    max-width: 480px;
    margin: 48px auto;
    background: var(--bg-light);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-900);
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--color-text-300);
    margin-bottom: 32px;
}

.auth-links {
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-300);
}

.auth-links a {
    color: var(--color-primary-500);
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Hero Auth Buttons (for unauthenticated landing page) */
.hero-auth-buttons {
    text-align: center;
    margin-top: -24px;
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-auth-buttons .btn {
    min-width: 150px;
    padding: 12px 25px;
}

.hero-auth-buttons .btn-secondary {
    background: var(--bg-dark);
    color: var(--color-text-700);
    box-shadow: none;
}

.hero-auth-buttons .btn-secondary:hover {
    background: var(--color-border-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .hero-auth-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* New Landing Page Styles */
.landing-hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    border-radius: 0;
    /* Full width now */
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border-100);
}

.hero-bg-accent {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(37, 99, 235, 0.02) 0, transparent 50%),
        linear-gradient(rgba(37, 99, 235, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary-100);
    color: var(--color-primary-600);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.landing-hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text-900);
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 20px;
    color: var(--color-text-500);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-stats-landing {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid var(--color-border-200);
    padding-top: 40px;
}

.landing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-900);
}

.stat-num::after {
    display: none;
    /* remove potential overlap */
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-300);
    font-weight: 500;
}

/* Trusted By Section */
.trusted-by {
    padding: 60px 0;
    border-top: 1px solid var(--color-border-100);
    text-align: center;
}

.trusted-by p {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-text-300);
    margin-bottom: 32px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    filter: grayscale(1) opacity(0.5);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-text-300);
}

/* How it Works Section */
.how-it-works-section {
    background: var(--bg-dark);
    padding: 100px 0;
    margin-bottom: 80px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    background: var(--bg-light);
    padding: 48px 32px;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-200);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-100);
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--color-primary-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--color-text-900);
}

.step-card p {
    font-size: 16px;
    color: var(--color-text-500);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .trust-logos {
        gap: 30px;
        font-size: 18px;
    }

    .how-it-works-section {
        padding: 60px 0;
    }
}

.section-tag {
    color: var(--color-primary-500);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.features-section {
    padding: 80px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.features-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--color-text-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--color-border-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-100);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-500);
}

/* Tools Showcase */
.tools-showcase {
    padding: 100px 0;
    text-align: center;
}

.tool-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.category-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--color-border-300);
    background: transparent;
    color: var(--color-text-500);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn.active {
    background: var(--color-primary-500);
    color: white;
    border-color: var(--color-primary-500);
}

.tool-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.tool-badge.video {
    background: #fee2e2;
    color: #ef4444;
}

.tool-badge.image {
    background: #dcfce7;
    color: #22c55e;
}

/* Pricing Section */
.landing-pricing {
    padding: 100px 0;
    text-align: center;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-light);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--color-border-200);
    width: 380px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.pricing-card.popular {
    border: 2px solid var(--color-primary-500);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-500);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text-900);
}

.pricing-card .price span {
    font-size: 18px;
    color: var(--color-text-300);
}

.plan-desc {
    font-size: 15px;
    color: var(--color-text-500);
    margin-bottom: 32px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.plan-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.plan-features li::before {
    content: "✓";
    color: var(--color-success-500);
    font-weight: 800;
}

/* Authenticated Landing */
.authenticated-welcome {
    padding: 60px 0;
}

.welcome-box {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    border: 1px solid var(--color-border-200);
    margin-bottom: 60px;
}

.welcome-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.welcome-box h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.quick-access h3 {
    font-size: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.tool-card.mini {
    padding: 24px;
}

.tool-card.mini .tool-icon {
    font-size: 32px;
}

.tool-card.mini h4 {
    font-size: 16px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .landing-hero h1 {
        font-size: 48px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 36px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats-landing {
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        width: 100%;
    }
}