:root {
    --orange: #F97316;
    --orange-light: #FDBA74;
    --blue: #2563EB;
    --blue-light: #60A5FA;
    --bg-dark: #0A0E1A;
    --bg-surface: #111827;
    --bg-card: #1F2937;
    --bg-input: #374151;
    --text-white: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --success: #10B981;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Animated Background */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: floatOrb 25s ease-in-out infinite;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: var(--orange);
    top: -300px;
    left: -200px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--blue);
    bottom: -200px;
    right: -200px;
    animation-delay: -12s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-cta {
    padding: 10px 20px !important;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 100px;
    color: white !important;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 32px;
}

.gradient-text-orange {
    background: linear-gradient(135deg, #F97316, #FB923C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(90deg, #F97316 0%, #A855F7 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

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

.btn-primary {
    padding: 14px 24px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    padding: 14px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Demo Intro */
.demo-intro, .b2b-intro {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 40px 60px;
}

.demo-intro h2, .b2b-intro h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.demo-intro p, .b2b-intro p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.b2b-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 20px;
}

/* Demo Sections */
.demo-section {
    position: relative;
    z-index: 10;
    padding: 80px 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.demo-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.layout-video-left .video-wrapper {
    order: 1;
}

.layout-video-left .content-wrapper {
    order: 2;
}

.layout-chat-left .content-wrapper {
    order: 1;
}

.layout-chat-left .video-wrapper {
    order: 2;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
}

/* Video Text - above the video */
.video-overlay {
    padding: 0 8px 20px 8px;
}

.video-overlay .section-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid var(--orange);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 12px;
}

.video-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.video-overlay p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* The actual video container */
.demo-video {
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.placeholder-icon {
    font-size: 64px;
}

.placeholder-text {
    font-size: 16px;
    font-weight: 500;
}

/* Hide placeholder when video exists */
.demo-video + .video-placeholder {
    display: none;
}

/* Content Wrapper */
.content-wrapper {
    padding: 20px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-wrapper h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.content-wrapper > p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Mini Phone */
.phone-container {
    display: flex;
    justify-content: center;
}

.phone-frame-mini {
    width: 380px;
    height: 700px;
    background: var(--bg-surface);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-screen-mini {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dynamic-island-mini {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 16px;
    z-index: 10;
}

.chat-header-mini {
    padding: 50px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verified-mini {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.chat-messages-mini {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mini Message Styles */
.message-mini {
    max-width: 85%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.message-mini.visible {
    opacity: 1;
    transform: translateY(0);
}

.message-mini.user {
    align-self: flex-end;
}

.message-mini.ai {
    align-self: flex-start;
}

.message-mini .bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.message-mini.user .bubble {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    border-bottom-right-radius: 4px;
}

.message-mini.ai .bubble {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.message-mini.thinking .bubble {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--blue-light);
    font-size: 12px;
    padding: 8px 14px;
}

/* Vision Section */
.vision-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 40px;
}

.vision-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.vision-section > p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

.vision-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.vision-stats .stat {
    text-align: center;
}

.vision-stats .stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.vision-stats .stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.timeline {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--text-dim);
    transition: all 0.3s ease;
}

.timeline-marker.active {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.timeline-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.05));
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section > p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--text-white);
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.cta-form input::placeholder {
    color: var(--text-dim);
}

.cta-form input:focus {
    border-color: var(--orange);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    padding: 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-links span {
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }

    .layout-video-left .video-wrapper,
    .layout-chat-left .video-wrapper {
        order: 1;
    }

    .layout-video-left .content-wrapper,
    .layout-chat-left .content-wrapper {
        order: 2;
    }

    .video-wrapper {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .content-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .phone-frame-mini {
        width: 340px;
        height: 620px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .nav-links {
        display: none;
    }

    .vision-stats {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 36px;
    }

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

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

    .vision-stats .stat-number {
        font-size: 36px;
    }

    .demo-intro h2, .b2b-intro h2, .vision-section h2, .cta-section h2 {
        font-size: 32px;
    }

    .video-wrapper {
        width: 90%;
        max-width: 350px;
    }

    .video-overlay h3 {
        font-size: 20px;
    }

    .video-overlay p {
        font-size: 13px;
    }

    .phone-frame-mini {
        width: 300px;
        height: 550px;
    }

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

    .footer-links span {
        display: none;
    }
}
