:root {
    --bg-dark: #F8F9FA;
    /* Main Background - Soft Grey */
    --bg-darker: #ffffff;
    /* Surface - Pure White */
    --surface: #ffffff;
    /* Surface - Pure White */
    --text-primary: #111827;
    /* Deep Dark Grey */
    --text-secondary: #4b5563;
    /* Slate Grey */
    --primary: #6366f1;
    /* Indigo Base */
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    /* Indigo Gradient */
    --secondary-gradient: linear-gradient(135deg, #ec4899, #f43f5e);
    /* Pink/Coral Gradient */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --soft-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.3);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none;
}

.btn-primary:hover::after {
    animation: shine 1.5s ease;
}

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

    100% {
        left: 100%;
    }
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

.glow-effect {
    box-shadow: 0 0 20px var(--primary-glow);
}

.glow-effect:hover {
    box-shadow: 0 0 30px var(--primary-glow), 0 0 10px var(--primary);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom-color: transparent;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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


.logo i {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Background Gradients */
/* Background Gradients */
/* Background Gradients */
@keyframes aurora {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
        opacity: 0.8;
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: aurora 10s infinite alternate ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: aurora 12s infinite alternate-reverse ease-in-out;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content .subheadline {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Browser Mockup Visual */
.hero-visual {
    perspective: 1000px;
}

.browser-mockup {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    height: 450px;
    /* Taller for more impressive view */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.browser-mockup:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow:
        0 40px 60px -20px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.browser-header {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.address-bar {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    flex-grow: 1;
    margin-left: 10px;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.browser-body {
    flex-grow: 1;
    display: flex;
    position: relative;
}

.chat-area {
    width: 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0.4;
    filter: blur(1px);
}

.msg {
    height: 20px;
    border-radius: 4px;
    width: 80%;
}

.user-msg {
    background: #e0e7ff;
    align-self: flex-end;
    width: 60%;
}

.ai-msg {
    background: #f3f4f6;
}

.ai-msg.long {
    height: 60px;
}

.hud-mockup {
    width: 250px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--primary);
    position: absolute;
    right: 0;
    top: 50px;
    bottom: 20px;
    border-radius: 12px 0 0 12px;
    padding: 15px;
    border-radius: 12px 0 0 12px;
    padding: 15px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(20px);
    animation: slideInHUD 1s ease forwards;
}

@keyframes slideInHUD {
    to {
        transform: translateX(0);
    }
}

.hud-header {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-item {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.hud-item:hover,
.hud-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: black;
    border-left: 3px solid var(--primary);
}

/* Hero Speech Bubbles */
.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.speech-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatBubble 6s ease-in-out infinite;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.speech-bubble:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

/* The Speech Bubble Tail */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #e5e7eb transparent transparent transparent;
    display: block;
    width: 0;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 32px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    display: block;
    width: 0;
    z-index: 1;
}

.speech-bubble:hover::after {
    border-color: var(--primary) transparent transparent transparent;
}

/* Specific tail positions if needed */
.speech-bubble.tail-right::after {
    left: auto;
    right: 30px;
}

.speech-bubble.tail-right::before {
    left: auto;
    right: 32px;
}

.speech-bubble i {
    color: var(--primary);
    font-size: 1.1rem;
}

.bubble-1 {
    top: 18%;
    left: 5%;
    animation-delay: 0s;
}

.bubble-2 {
    top: 31%;
    left: 43%;
    animation-delay: 1s;
}

.bubble-3 {
    bottom: 4%;
    left: 2%;
    animation-delay: 2s;
}

.bubble-4 {
    top: 16%;
    right: 2%;
    animation-delay: 3s;
}

.bubble-5 {
    bottom: 5%;
    right: 48%;
    animation-delay: 4s;
}

.bubble-6 {
    bottom: 2%;
    right: 5%;
    animation-delay: 1.5s;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: #f1f5f9;
}

.section-title h2 {
    color: var(--text-primary);
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 30px;
}

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

/* Features Styling */
.features-section {
    padding: 100px 0;
}

.feature-carousel {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    background: #ffffff;
    padding: 20px 40px;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

/* LEFT: Navigation */
.carousel-nav {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: #f8fafc;
}

.nav-item.active {
    background: #eff6ff;
    border-color: rgba(99, 102, 241, 0.2);
}

.nav-item .icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.nav-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.nav-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Progress bar for auto-play */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
    /* JS will animate this */
}

/* RIGHT: Stage */
.carousel-stage {
    flex: 1;
    position: relative;
    height: 400px;
    /* Fixed height for consistency */
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.stage-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    padding: 20px;
    /* Inner padding like a frame */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-image.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.stage-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    border-radius: 12px;
}

@media (max-width: 900px) {
    .feature-carousel {
        flex-direction: column-reverse;
        /* Image on top */
        padding: 20px;
    }

    .carousel-nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        /* Horizontal tabs on mobile? Or vertical list? Vertical is safer for text */
        flex-direction: column;
    }

    .carousel-stage {
        width: 100%;
        height: 300px;
    }
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 20px 40px -10px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    background: rgba(255, 255, 255, 0.9);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.icon-box.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.icon-box.gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

/* Spotlight Section */
.spotlight-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.workflow-list {
    list-style: none;
    margin-top: 30px;
}

.workflow-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    border: 1px solid #444;
}

.spotlight-visual {
    background: var(--surface);
    height: 350px;
    border-radius: 20px;
    border: 1px solid var(--primary-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.teleport-animation {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.platform-icon img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    display: block;
}

.chatgpt {
    color: #10a37f;
}

.transfer-arrow {
    font-size: 50px;
    color: var(--text-secondary);
    opacity: 0.2;
}

.doc-icon {
    position: absolute;
    font-size: 24px;
    color: white;
    background: var(--primary);
    padding: 10px;
    border-radius: 8px;
    left: 20px;
    animation: teleportMove 3s infinite ease-in-out;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes teleportMove {
    0% {
        transform: scale(0);
        left: 20px;
        opacity: 0;
    }

    20% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        left: 50%;
    }

    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        left: 240px;
        transform: scale(0);
        opacity: 0;
    }
}

/* How It Works - Redesigned */
.how-it-works {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.steps-text {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* Connecting Line */
.steps-text::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 23px;
    /* Center with 48px circle */
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    z-index: 0;
}

/* Override previous before */
.steps-container::before {
    display: none;
}

.step-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 5px 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.step-number {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    margin-top: 0;
}

.step-item:hover .step-number {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: scale(1.3);
}

.step-item h3 {
    margin: 0;
    align-self: center;
    padding-top: 10px;
    /* Align with top of circle roughly */
}

.step-item p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    max-width: none;
    padding: 0;
}

/* Visual Side */
.steps-visual {
    position: sticky;
    top: 120px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    /* Allow lens to go out */
    box-shadow:
        0 50px 100px -20px rgba(50, 50, 93, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        0 -2px 6px 0 rgba(255, 255, 255, 0.2) inset;
    transform: none;
    /* Removed 3D tilt */
    transition: box-shadow 0.3s ease;
    max-height: 100%;
    cursor: crosshair;
    /* Indicate interactivity */
}

.image-wrapper:hover {
    transform: none;
    /* Removed 3D tilt */
}

.magnifier-lens {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-repeat: no-repeat;
    background-color: white;
    /* Fallback */
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.image-wrapper:hover .magnifier-lens {
    opacity: 1;
    transform: scale(1);
}

.explain-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    /* Moved radius here since wrapper is no longer hidden */
}

.overlay-gradient {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-text::before {
        left: 23px;
        /* Keep centered on mobile */
    }

    .steps-visual {
        position: relative;
        top: 0;
        height: auto;
        order: -1;
        /* Show image first on mobile? Or kept bottom? Let's keep bottom */
        order: 1;
        transform: none;
    }

    .image-wrapper {
        transform: none;
        max-height: 500px;
    }
}

/* Use Cases */
.use-cases {
    padding: 100px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.use-case-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.use-case-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 60px 0 20px;
    background: #111827;
    /* Dark footer for contrast */
    color: #f3f4f6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:not(.btn):hover {
    color: var(--primary);
}

.copyright {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ====================== */
/* Version Badge           */
/* ====================== */
.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* ====================== */
/* Library Section         */
/* ====================== */
.library-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, var(--bg-dark) 100%);
    position: relative;
}

.library-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.library-text .badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.library-text h2 {
    margin-top: 12px;
}

.library-text .lead {
    font-size: 1.15rem;
    margin-bottom: 10px;
    max-width: 500px;
}

.library-features {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.library-features li {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.library-features li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.library-features li strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.library-features li p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    max-width: none;
}

.library-features code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Bento Grid Mockup */
.bento-mockup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 30px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.bento-card {
    padding: 20px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.bento-card.color-indigo::before {
    background: var(--primary);
}

.bento-card.color-emerald::before {
    background: #10b981;
}

.bento-card.color-amber::before {
    background: #f59e0b;
}

.bento-card.color-rose::before {
    background: #f43f5e;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.tag-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    margin-bottom: 8px;
}

.bento-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.template-preview {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.4;
    margin: 0 !important;
    max-width: none !important;
}

/* Animate bento cards on load */
.bento-card:nth-child(1) {
    animation: bentoFloat 6s ease-in-out infinite;
}

.bento-card:nth-child(2) {
    animation: bentoFloat 6s ease-in-out 1.5s infinite;
}

.bento-card:nth-child(3) {
    animation: bentoFloat 6s ease-in-out 3s infinite;
}

.bento-card:nth-child(4) {
    animation: bentoFloat 6s ease-in-out 4.5s infinite;
}

@keyframes bentoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}



/* ====================== */
/* Vault Section           */
/* ====================== */
.vault-section {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99, 102, 241, 0.05) 100%);
    position: relative;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.vault-card {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.vault-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.1);
}

.col-span-2 {
    grid-column: span 2;
}

.vault-card-content {
    padding: 24px;
    flex-grow: 1;
}

.vault-card-content .badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    margin-bottom: 10px;
}

.vault-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.vault-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: none;
    line-height: 1.6;
}

.vault-feature-list {
    list-style: none;
    margin-top: 14px;
    padding: 0;
}

.vault-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.vault-feature-list li i {
    color: #10b981;
    font-size: 0.9rem;
}

.vault-card-visual {
    background: #f1f5f9;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    height: 220px;
}

.vault-card-visual img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.horizontal-card {
    flex-direction: row;
    align-items: center;
}

.horizontal-card .vault-card-content {
    flex: 1;
}

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

    .col-span-2 {
        grid-column: span 1;
    }

    .horizontal-card {
        flex-direction: column;
    }
}

/* ====================== */
/* Power Section           */
/* ====================== */
.power-section {
    padding: 100px 0;
    background: #ffffff;
}

.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.power-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.power-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.1);
}

.power-card-icon {
    margin-bottom: 20px;
}

.power-card-icon .icon-box {
    margin-bottom: 0;
}

.power-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.power-card>p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 25px 0;
    max-width: none;
    line-height: 1.6;
}

/* PDF Mockup Visual */
.power-visual {
    margin-top: auto;
    padding: 25px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 120px;
}

.pdf-mockup {
    width: 80px;
    padding: 12px 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-line {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
}

.pdf-line.wide {
    width: 100%;
}

.pdf-line.medium {
    width: 75%;
}

.pdf-line.short {
    width: 50%;
}

.pdf-code-block {
    height: 18px;
    border-radius: 4px;
    background: #1e293b;
    position: relative;
}

.pdf-code-block::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    right: 15px;
    height: 3px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 2px;
}

.download-arrow {
    font-size: 2rem;
    color: var(--primary);
    animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}

/* Theme Visual */
.theme-visual {
    flex-direction: column;
    gap: 20px;
}

.theme-dots {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.theme-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.theme-dot:hover {
    transform: scale(1.2);
}

.dot-indigo {
    background: #10a37f;
}

/* ChatGPT green */
.dot-blue {
    background: #4285f4;
}

/* Gemini blue */
.dot-teal {
    background: #20b8cd;
}

/* Perplexity teal */
.dot-dodger {
    background: #1e90ff;
}

/* DeepSeek blue */

.theme-toggle-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.theme-toggle-demo i {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.theme-toggle-demo i.fa-sun {
    color: #f59e0b;
}

.theme-toggle-demo i.fa-moon {
    color: #6366f1;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: toggleSlide 3s ease-in-out infinite;
}

@keyframes toggleSlide {

    0%,
    40% {
        left: 3px;
    }

    50%,
    90% {
        left: 23px;
    }

    100% {
        left: 3px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .h1 {
        font-size: 2.5rem;
    }

    .hero-container,
    .spotlight-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        margin-top: 40px;
        height: 300px;
    }

    .browser-mockup {
        transform: none;
    }

    .workflow-list li {
        text-align: left;
        justify-content: center;
    }

    /* steps-container handled by 900px grid query */

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Library section responsive */
    .library-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .library-visual {
        order: -1;
    }

    .library-text {
        text-align: center;
    }

    .library-features li {
        text-align: left;
    }

    /* Power section responsive */
    .power-grid {
        grid-template-columns: 1fr;
    }

    .version-badge {
        display: block;
        margin: 12px auto 0;
        width: fit-content;
    }
}