/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #372d76;
    --secondary-cyan: #38b8f2;
    --bright-blue: #00d4ff;
    --dark-purple: #1a1340;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --dark-gray: #333333;
    --gradient-primary: linear-gradient(135deg, #372d76 0%, #5a4a9f 100%);
    --gradient-accent: linear-gradient(135deg, #38b8f2 0%, #7b68ee 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1a1340 30%, #372d76 60%, #38b8f2 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius: 24px;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-md);
}

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

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

.logo-image {
    height: 50px;
    width: auto;
}

.logo-text h2 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(56, 184, 242, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><g opacity="0.4"><path d="M100,150 L110,140 L120,150 L110,160 Z" fill="%2338b8f2"/><path d="M200,250 L215,235 L230,250 L215,265 Z" fill="%2300d4ff"/><path d="M800,100 L810,90 L820,100 L810,110 Z" fill="%237b68ee"/><path d="M900,400 L912,388 L924,400 L912,412 Z" fill="%2338b8f2"/><path d="M1100,200 L1108,192 L1116,200 L1108,208 Z" fill="%2300d4ff"/><circle cx="300" cy="500" r="2" fill="%2338b8f2"/><circle cx="700" cy="150" r="2" fill="%2300d4ff"/><circle cx="500" cy="600" r="2" fill="%237b68ee"/><circle cx="1000" cy="500" r="2" fill="%2338b8f2"/><circle cx="150" cy="400" r="2" fill="%2300d4ff"/><path d="M400,200 L405,195 L410,200 L405,205 Z" fill="%2338b8f2" opacity="0.6"/><path d="M600,450 L606,444 L612,450 L606,456 Z" fill="%237b68ee" opacity="0.6"/></g></svg>');
    background-size: cover;
    background-position: center;
    animation: sparkle 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 60px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat h3 {
    font-size: 48px;
    margin-bottom: 8px;
}

.stat p {
    font-size: 14px;
    opacity: 0.9;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

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

/* Buttons */
.button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--white);
}

.button-secondary:hover {
    background: transparent;
    color: var(--white);
}

.button-outline {
    background: transparent;
    color: var(--secondary-cyan);
    border: 2px solid var(--secondary-cyan);
}

.button-outline:hover {
    background: var(--secondary-cyan);
    color: var(--white);
}

.cta-button {
    background: var(--gradient-accent);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 24px;
}

/* Demos Section */
.demos-section {
    padding: 120px 0;
    background: var(--light-gray);
}

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

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

.section-subtitle {
    font-size: 18px;
    color: #666;
}

.demo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 120px;
    align-items: center;
}

.demo-left {
    /* Default: visual left, details right */
}

.demo-right {
    /* Swap order: details left, visual right */
}

.demo-right .demo-visual {
    order: 2;
}

.demo-right .demo-details {
    order: 1;
}

.demo-visual {
    animation: fadeIn 0.8s ease;
}

.demo-window {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.demo-window:hover {
    transform: translateY(-8px);
}

.window-header {
    background: #f0f0f0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-title {
    font-size: 14px;
    color: #666;
}

.demo-content {
    padding: 24px;
    min-height: 400px;
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.chat-message.user .avatar {
    background: var(--gradient-accent);
}

.message {
    background: #f0f0f0;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 70%;
}

.chat-message.user .message {
    background: var(--secondary-cyan);
    color: var(--white);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f0f0f0;
    border-radius: 16px;
    width: fit-content;
    margin-top: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Document Preview */
.document-preview {
    background: #e8e8e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.document {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.doc-header {
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.company-logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.doc-title {
    font-size: 14px;
    color: #666;
}

.doc-section {
    margin-bottom: 20px;
}

.doc-section h4 {
    font-size: 24px;
    color: var(--primary-purple);
    margin-bottom: 4px;
}

.doc-subtitle {
    color: #666;
    font-size: 16px;
}

.doc-section h5 {
    font-size: 16px;
    color: var(--secondary-cyan);
    margin-bottom: 8px;
}

.doc-item {
    margin-bottom: 12px;
}

.doc-item p {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.interview-notes {
    background: var(--light-gray);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-cyan);
}

.interview-notes p {
    font-size: 14px;
    margin-bottom: 8px;
}

.generation-indicator {
    text-align: center;
    color: var(--secondary-cyan);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.generation-indicator i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Intake Interface */
.intake-interface {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intake-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #ddd;
}

.progress-step.active:not(:last-child)::after {
    background: var(--secondary-cyan);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background: var(--gradient-accent);
    color: var(--white);
}

.progress-step span {
    font-size: 12px;
    color: #666;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-purple);
}

.form-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.file-uploads {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    background: var(--light-gray);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.file-item i {
    color: var(--secondary-cyan);
}

.security-badge {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Demo Details */
.demo-details {
    animation: fadeIn 0.8s ease 0.2s both;
}

.demo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.demo-icon i {
    font-size: 36px;
    color: var(--white);
}

.demo-title {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-purple);
}

.demo-description {
    font-size: 18px;
    margin-bottom: 24px;
    color: #666;
    line-height: 1.8;
}

.demo-features {
    margin-bottom: 24px;
}

.demo-features h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary-purple);
}

.demo-features ul {
    list-style: none;
}

.demo-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #666;
}

.demo-features li i {
    color: var(--secondary-cyan);
    margin-top: 4px;
    flex-shrink: 0;
}

.demo-use-cases {
    margin-bottom: 24px;
}

.demo-use-cases h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-purple);
}

.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.use-case-tags span {
    background: var(--light-gray);
    color: var(--primary-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.demo-cta {
    display: flex;
    gap: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Trusted By Section */
.trusted-section {
    padding: 80px 0;
    background: var(--white);
}

.logo-carousel {
    overflow: hidden;
    margin-top: 48px;
}

.logo-track {
    display: flex;
    gap: 64px;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.logo-item {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Benefits Section */
.benefits-section {
    padding: 120px 0;
    background: var(--primary-purple);
    color: var(--white);
}

.benefits-section .section-title {
    color: var(--white);
}

.benefits-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.benefit-icon i {
    font-size: 28px;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.benefit-card p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-accent);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-section .button-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--white);
}

.cta-section .button-secondary:hover {
    background: transparent;
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--primary-purple);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .logo-image {
        height: 40px;
    }

    .logo-text h2 {
        font-size: 18px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .demo-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .demo-right .demo-visual,
    .demo-right .demo-details {
        order: unset;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .logo-item img {
        height: 40px;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Demo Panel Styles */
.demo-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-panel.open {
    right: 0;
}

.demo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-panel-header h3 {
    font-size: 24px;
    margin: 0;
}

.demo-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.demo-panel-content {
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
}

.demo-panel-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.demo-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Remove subtitle from logo */
.logo-subtitle {
    display: none;
}

/* Responsive for demo panel */
@media (max-width: 768px) {
    .demo-panel {
        width: 100%;
        max-width: 100%;
    }

    .demo-panel-header {
        padding: 16px 20px;
    }

    .demo-panel-header h3 {
        font-size: 18px;
    }
}
