:root {
    --bg-color: #0B0E14;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --secondary: #1E293B;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    z-index: -2;
    filter: blur(80px);
}

.glow-bg::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.95rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1600px;
    z-index: 100;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.logo-img {
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

/* AI Disclaimer Banner */
.ai-disclaimer-banner {
    position: absolute;
    top: 100px;
    /* Moved lower, scrolls with page */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.15);
    /* Soft red background */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FEE2E2;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 99;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    /* Don't interfere with clicks */
}

@media (max-width: 900px) {
    .ai-disclaimer-banner {
        top: 15px;
        /* Above or below mobile nav depending on placement */
        position: relative;
        left: 0;
        transform: none;
        margin: 100px 5% 20px;
        width: 90%;
        border-radius: 8px;
    }
}

/* Header / Hero */
.hero {
    min-height: 80vh;
    /* Reduced from 100vh to make content start sooner */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 4% 60px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 80px;
}

.hero-content {
    flex: 1.2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    color: #C4B5FD;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    perspective: 1200px;
}

.mockup-container {
    padding: 12px;
    transform: rotateY(-12deg) rotateX(8deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    position: relative;
    border-radius: 12px;
}

.mockup-container:hover {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 92, 246, 0.3);
}

.mockup-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 10;
}

/* Sections */
.section {
    padding: 100px 4%;
    max-width: 1500px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
}

.supported-sites {
    display: none;
    /* Replaced by badges */
}

.site-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.site-badge {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.site-badge:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* More breathing room between big hero sections */
}

.feature-card {
    padding: 36px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1) inset;
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-flex;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    align-self: flex-start;
}

.feature-title {
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
    flex-grow: 1;
}

.feature-images-row {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.feature-images-row img {
    width: calc(50% - 8px);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.feature-images-row img:hover,
.feature-img-full:hover {
    transform: scale(1.02);
}

.feature-img-full {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-top: auto;
    transition: transform 0.3s ease;
}

.feature-card-wide {
    grid-column: span 2;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.feature-card-full {
    width: 100%;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.feature-card-full .feature-icon {
    align-self: flex-start;
}

.feature-card-full .feature-img-full,
.doc-screenshot {
    margin: 1.5rem auto 0;
    display: block;
}

.doc-screenshot {
    max-width: 800px;
}

.doc-screenshot-small {
    max-width: 500px;
}

#known-issues {
    padding-bottom: 2rem;
}

.feature-card-content {
    flex: 1;
}

.feature-images-prominent {
    flex: 1.5;
    display: flex;
    gap: 20px;
}

.feature-img-wrapper {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-img-wrapper:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-wide,
    .feature-card-full {
        grid-column: span 1;
        flex-direction: column;
    }

    .feature-card-wide {
        flex-direction: column !important;
    }
}

/* Installation Steps */
.install-steps {
    padding: 50px;
}

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.step-num {
    background: var(--accent-gradient);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.step-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-divider {
    height: 50px;
    width: 2px;
    background: var(--glass-border);
    margin: 16px 0 16px 21px;
}

.mt-3 {
    margin-top: 16px;
}

/* Ko-fi Section */
.ko-fi-section {
    padding-bottom: 120px;
}

.ko-fi-panel {
    text-align: center;
    padding: 70px 40px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(255, 94, 91, 0.08) 100%);
    border-color: rgba(255, 94, 91, 0.2);
    position: relative;
    overflow: hidden;
}

.ko-fi-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 91, 0.5), transparent);
}

.ko-fi-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.ko-fi-text {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
}

.ko-fi-btn {
    background: linear-gradient(135deg, #FF5E5B 0%, #D8423F 100%);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 94, 91, 0.3);
}

.ko-fi-btn:hover {
    background: linear-gradient(135deg, #FF6F6C 0%, #E95350 100%);
    box-shadow: 0 8px 25px rgba(255, 94, 91, 0.5);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(11, 14, 20, 0.8);
    position: relative;
    z-index: 10;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Documentation Styles */
.doc-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    padding: 2rem 0;
    margin-top: 2rem;
    align-items: start;
    max-width: 100%;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

.doc-side-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.doc-side-link:hover,
.doc-side-link.active {
    color: var(--primary);
    background: rgba(124, 179, 66, 0.1);
}

.doc-side-sub {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1.5rem;
}

.doc-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.doc-title {
    font-family: 'Outfit';
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-subtitle {
    font-family: 'Outfit';
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.doc-subtitle-small {
    font-family: 'Outfit';
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-main);
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.doc-subsection-inner {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-step {
    margin-bottom: 2rem;
}

.doc-step h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.doc-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.doc-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    text-align: center;
    padding: 20px;
}

.doc-screenshot {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 1.5rem auto;
    display: block;
    transition: transform 0.3s ease;
}

.doc-screenshot:hover {
    transform: scale(1.02);
}

.doc-side-image .doc-screenshot {
    margin-top: 0;
}

@media (max-width: 992px) {
    .doc-container {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/* Side-by-side Documentation Layout */
.doc-side-by-side {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.doc-side-text {
    flex: 1.2;
}

.doc-side-image {
    flex: 1;
}

.settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.settings-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.compact-font {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .doc-side-by-side {
        flex-direction: column;
    }
}

.carousel-track {
    position: relative;
    height: 400px;
    width: 100%;
}

@media (max-width: 600px) {
    .carousel-track {
        height: 250px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-content .logo-text {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 1rem;
}

.disclaimer {
    font-size: 0.85rem !important;
    opacity: 0.5;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-visual {
        width: 100%;
        max-width: 600px;
    }

    .mockup-container {
        transform: rotateY(0) rotateX(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .feature-card[style*="grid-column: span 2;"] {
        grid-column: span 1 !important;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 5%;
    }

    .install-steps {
        padding: 30px 20px;
    }
}