:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --secondary: #1E40AF;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #1E40AF 0%, #F97316 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(249, 115, 22, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.logo img {
    width: 48px;
    height: 48px;
}

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

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
}

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

/* Buttons */
/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(249, 115, 22, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    filter: blur(5px);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.8);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

/* Global Background */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 15s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    /* Violet */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.2;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s linear infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    transform: rotate(45deg);
}

.shape-2 {
    bottom: 30%;
    right: 10%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes floatOrb {

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

    33% {
        transform: translate(30px, 50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes floatShape {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(180deg) translate(20px, -20px);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

.hero-container {
    display: flex;
    /* Use flex for better control */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    z-index: 2;
    flex: 1;
    max-width: 600px;
    /* Limit text width */
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
}

.badge-glow {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.glitch-text {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

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

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.video-card-wrapper {
    position: relative;
    perspective: 1000px;
    flex: 1;
    width: 100%;
    max-width: 800px;
}

.video-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    /* Maintain aspect ratio */
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.video-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
}

.video-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    /* Prevent header from shrinking */
    z-index: 2;
}

.dashboard-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.2);
    /* Zoom in to fill frame better */
    transform-origin: center top;
    /* Focus on top center */
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.live-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Features Section - Bento Grid */
.features {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    transition: transform 0.5s ease;
}

.bento-item:hover .bento-bg {
    transform: scale(1.1);
    opacity: 0.3;
}

.bento-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.3));
    transition: transform 0.3s ease;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}

.bento-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
}

.bento-item.span-2 {
    grid-column: span 2;
}

.bento-item.span-row-2 {
    grid-row: span 2;
}

/* Removed .icon-box-glow as it's replaced by images */

.bento-visual {
    margin-top: auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wave-visual .bar {
    width: 6px;
    background: var(--primary);
    border-radius: 4px;
    animation: soundWave 1s ease-in-out infinite;
}

.wave-visual .bar:nth-child(1) {
    height: 20px;
    animation-delay: 0.1s;
}

.wave-visual .bar:nth-child(2) {
    height: 40px;
    animation-delay: 0.2s;
}

.wave-visual .bar:nth-child(3) {
    height: 50px;
    animation-delay: 0.3s;
}

.wave-visual .bar:nth-child(4) {
    height: 30px;
    animation-delay: 0.4s;
}

.wave-visual .bar:nth-child(5) {
    height: 15px;
    animation-delay: 0.5s;
}

@keyframes soundWave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

.bot-visual {
    margin-top: 20px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bot-head {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 12px;
    position: relative;
    animation: botFloat 3s ease-in-out infinite;
}

.bot-eye {
    width: 12px;
    height: 12px;
    background: #00ffcc;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    box-shadow: 0 0 10px #00ffcc;
    animation: blink 4s infinite;
}

.bot-eye.left {
    left: 12px;
}

.bot-eye.right {
    right: 12px;
}

@keyframes botFloat {

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

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

@keyframes blink {

    0%,
    96%,
    100% {
        transform: scaleY(1);
    }

    98% {
        transform: scaleY(0.1);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.2);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
}

.play-button-large {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.5));
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: all 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
}

.comparison-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.comparison-box h2 {
    margin-bottom: 48px;
    font-size: 36px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-gray);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.comparison-table .highlight {
    color: var(--text-light);
    font-weight: 600;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 8px;
}

.comparison-table th.highlight {
    color: var(--primary);
    background: none;
    font-size: 18px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: transparent;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.bento-img-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: auto;
    opacity: 0.6;
    transform: rotate(-10deg);
    transition: all 0.3s ease;
    mask-image: linear-gradient(to top, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.bento-item:hover .bento-img-overlay {
    opacity: 0.9;
    transform: rotate(0) scale(1.1);
}

.bot-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: botFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.4));
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-gray);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 16px 0;
    color: var(--text-light);
}

.price span {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    margin-bottom: 16px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: transparent;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    background: var(--gradient-main);
    padding: 80px 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

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

.cta-content .btn {
    background: white;
    color: var(--primary-dark);
}

.cta-content .btn:hover {
    background: #f1f5f9;
}

/* Footer */
footer {
    background: #020617;
    padding: 80px 0 24px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-col h4 {
    margin-bottom: 24px;
    color: var(--text-light);
}

.footer-col a {
    display: block;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-col .logo {
    display: flex;
    color: var(--text-light);
    margin-bottom: 16px;
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

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

    .hero-trust .logos {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.span-2 {
        grid-column: span 2;
    }

    .bento-item.span-row-2 {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, we'd add a hamburger menu here */
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-bg {
        /* Use mobile optimized background if needed, or adjust object-fit */
        object-fit: cover;
    }

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

    .bento-item.span-2 {
        grid-column: span 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

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

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

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .modal-content {
        width: 95%;
        aspect-ratio: auto;
        height: 300px;
    }
}