/**
 * Modern SaaS Stylesheet - Dark / Light Mode with Glassmorphism
 * AI Copyright Cleaner & Content Rewriter Platform
 * Developed by SoftKeyBazar (softkeybazar.com / scitboss.com)
 */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);
    
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;
    --accent: #ec4899;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Dark Theme Default */
    --bg-body: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.75);
    --bg-card-hover: rgba(30, 41, 66, 0.85);
    --bg-card-solid: #161e31;
    --bg-input: rgba(15, 23, 42, 0.8);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --glass-blur: blur(16px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 10px 30px -5px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --bg-input: #ffffff;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-subtle: 0 4px 25px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 10px 30px -5px rgba(99, 102, 241, 0.2);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Animated Gradient Mesh */
.bg-mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    animation: meshPulse 12s ease-in-out infinite alternate;
}

@keyframes meshPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05) translate(10px, -15px); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Custom Interactive Cursor Follower */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.06s ease-out, opacity 0.2s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

@media (pointer: coarse), (max-width: 991px) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* Navbar */
.navbar-custom {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.navbar-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light) !important;
    background: rgba(99, 102, 241, 0.08);
}

/* Modern Gradient Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(99, 102, 241, 0.55);
    color: #ffffff !important;
}

.btn-glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-glass:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 90px 0 60px;
    position: relative;
    text-align: center;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* 3D Tilt Wrapper */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Editor Workspace Container */
.editor-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    margin-bottom: 40px;
}

.editor-toolbar {
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

[data-theme="light"] .editor-toolbar {
    background: rgba(241, 245, 249, 0.7);
}

.tool-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.tool-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tool-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Editor Textareas */
.editor-pane {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
}

.editor-textarea {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    font-family: inherit;
}

.editor-textarea::placeholder {
    color: var(--text-muted);
}

.editor-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

[data-theme="light"] .stat-pill {
    background: rgba(0, 0, 0, 0.05);
}

/* Output Display Box */
.output-pane {
    background: rgba(15, 23, 42, 0.3);
    border-left: 1px solid var(--border-color);
}

[data-theme="light"] .output-pane {
    background: rgba(248, 250, 252, 0.5);
}

@media (max-width: 991px) {
    .output-pane { border-left: none; border-top: 1px solid var(--border-color); }
}

/* Diff Styling */
.diff-add {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: none;
    border-bottom: 2px solid #22c55e;
}

.diff-del {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: line-through;
    opacity: 0.8;
}

.diff-same {
    color: inherit;
}

/* Floating Elements / Particles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    animation: floatCircle 8s ease-in-out infinite alternate;
}

@keyframes floatCircle {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(15deg); }
}

/* Ethical Advisory Banner */
.ethical-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #fbbf24;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Feature Grid Card */
.feature-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, var(--bg-card) 60%);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* Footer & Developer Attribution */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--primary-light);
}

.developer-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.dev-brand-tag {
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dev-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.dev-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Toast System */
.custom-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card-solid);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Spinner Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: inherit;
}

/* Interactive Workflow Chart (How It Works) */
.workflow-chart-wrapper {
    position: relative;
    padding: 20px 0;
}

.workflow-step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.workflow-step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 35px -5px var(--primary-glow);
}

.workflow-step-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: color 0.3s;
}

.workflow-step-card:hover .workflow-step-number {
    color: rgba(99, 102, 241, 0.3);
}

.workflow-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    transition: all 0.3s;
}

.workflow-step-card:hover .workflow-icon-box {
    transform: scale(1.08) rotate(4deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 8px 20px var(--primary-glow);
}

@media (min-width: 992px) {
    .workflow-connector-arrow {
        position: absolute;
        top: 50%;
        right: -16px;
        transform: translateY(-50%);
        z-index: 5;
        color: var(--primary-light);
        font-size: 1.35rem;
        opacity: 0.6;
        animation: arrowPulse 2s infinite ease-in-out;
    }
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.5; }
    50% { transform: translateY(-50%) translateX(6px); opacity: 1; }
}

.workflow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    margin-bottom: 12px;
    width: fit-content;
}

/* 50-Tool Studio Workspace */
.tool-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-filter-pill {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-filter-pill:hover, .category-filter-pill.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.tool-grid-wrapper {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 25px;
}

.tool-grid-wrapper::-webkit-scrollbar {
    width: 6px;
}
.tool-grid-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.tool-grid-wrapper::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

.tool-select-card {
    background: rgba(19, 27, 46, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-select-card:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 66, 0.85);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tool-select-card.active-tool-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.15));
    border-color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary-light), 0 8px 25px rgba(99, 102, 241, 0.25);
}

.tool-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
    transition: all 0.25s;
}

.tool-select-card.active-tool-card .tool-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.tool-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.tool-card-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-badge-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.active-tool-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 16px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}


