:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.6);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-height: 70px; /* Slightly smaller for mobile */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px; /* Base size */
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.15), transparent 25%);
    z-index: -2;
    pointer-events: none;
}

.noise-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");
    z-index: -1;
    pointer-events: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px; /* Smaller padding for mobile */
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content for mobile */
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%; /* Full width on mobile */
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Navbar - Mobile First */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 7, 0.95); /* Darker by default on mobile */
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 6px;
}

/* Hidden by default on mobile */
.nav-links, .nav-actions {
    display: none; 
}

.mobile-menu-btn {
    display: block; /* Visible on mobile */
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 16px;
    z-index: 99;
    height: calc(100vh - var(--nav-height)); /* Full height menu */
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hero Section - Mobile First */
.hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    min-height: auto; /* Allow content to dictate height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column */
    gap: 40px;
    align-items: center;
    text-align: center; /* Centered on mobile */
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items */
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: #a5b4fc;
    margin-bottom: 24px;
    white-space: normal; /* Allow wrapping */
    text-align: left;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    flex-shrink: 0;
}

.hero-title {
    font-size: 2.5rem; /* Smaller for mobile */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 100%;
}

.hero-sub-highlight {
    color: #e2e8f0;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-direction: column; /* Stack buttons */
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual - Mobile */
.hero-visual {
    position: relative;
    height: 400px; /* Constrained height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    /* Disable perspective interaction on mobile usually, but keep visual */
}

.card-stack {
    position: relative;
    width: 280px; /* Smaller width */
    height: 400px; /* Smaller height */
    perspective: 1000px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: all 0.5s ease;
}

.card-back {
    background: linear-gradient(45deg, #4c1d95, #5b21b6);
    transform: translateX(20px) rotateY(-5deg) scale(0.9); /* Subtle */
    z-index: 1;
    opacity: 0.5;
}

.card-middle {
    background: linear-gradient(45deg, #4338ca, #6366f1);
    transform: translateX(10px) rotateY(-2deg) scale(0.95);
    z-index: 2;
    opacity: 0.8;
}

.card-front {
    z-index: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(0deg);
}

/* UI Mockup */
.ui-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.2);
}

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

.ui-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.ui-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-skeleton-video {
    flex: 2;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.play-button {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.ui-skeleton-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track {
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    width: 100%;
}

.track:nth-child(2) { width: 70%; }
.track:nth-child(3) { width: 40%; background: var(--accent-primary); }

/* Sections */
.section {
    padding: 60px 0; /* Smaller padding */
}

.section-header {
    margin-bottom: 40px;
    text-align: center; /* Always center on mobile */
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.tag {
    font-size: 0.85rem;
    background: var(--accent-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 8px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 auto;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    padding: 24px;
    transition: transform 0.3s ease;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

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

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start; /* Better alignment for wrapped text */
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.feature-list li::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-top: 8px; /* Align with text */
}

/* Use Cases Banner */
.use-cases-banner {
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(20,20,25,0.8), rgba(99,102,241,0.05));
}

.use-cases-content h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.benefits-grid {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 20px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

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

/* Beta Section - Mobile */
.beta-program {
    position: relative;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.beta-glow {
    /* Hidden on mobile for performance/visual clarity */
    display: none; 
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr; /* Stack */
    gap: 40px;
    align-items: center;
}

.split-content {
    text-align: center; /* Center text */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-beta {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.dot-purple {
    background-color: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
}

.beta-features {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left; /* Keep features left-aligned for readability */
    width: 100%;
}

.beta-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.beta-item .beta-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.beta-text h4 {
    margin-bottom: 4px;
    color: #e2e8f0;
    font-size: 1rem;
}

.beta-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.beta-cta {
    width: 100%; /* Full width button */
}

/* Beta Pipeline Visual - Mobile */
.beta-card {
    padding: 0;
    overflow: hidden;
    margin-top: 20px;
}

.beta-card-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator {
    color: #4ade80;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 5px #4ade80;
}

.beta-card-body {
    padding: 20px;
}

.pipeline-step {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    position: relative;
}

.pipeline-step:last-child {
    padding-bottom: 0;
}

.pipeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--text-muted);
    z-index: 2;
    margin-top: 4px;
    flex-shrink: 0;
}

.pipeline-step.completed .step-dot {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.pipeline-step.current .step-dot {
    border-color: var(--accent-secondary);
}

.step-title {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.step-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack */
    gap: 30px;
    max-width: 500px; /* Limit width on mobile */
    margin: 0 auto;
}

.pricing-card {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.8), rgba(168, 85, 247, 0.05));
    order: -1; /* Show beta/featured first on mobile if desired, or remove to keep original order */
}

.card-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-secondary);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.pricing-features li i {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.pricing-card.featured .pricing-features li i {
    color: var(--accent-secondary);
}

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

/* Qualification */
.qualification-box {
    padding: 40px 20px;
    text-align: center;
}

.criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
    text-align: left;
}

.criterion h4 {
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.criterion ul {
    list-style: none;
}

.criterion ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: rgba(5, 5, 7, 0.95);
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 100%;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cols on mobile */
    gap: 40px 20px;
    width: 100%;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-col h4 {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 8px;
}

.link-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

/* ------------------------------------------- */
/* TABLET STYLES (min-width: 768px)            */
/* ------------------------------------------- */
@media (min-width: 768px) {
    :root {
        --nav-height: 80px;
    }

    .container {
        padding: 0 24px;
    }
    
    .section {
        padding: 80px 0;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-container {
        gap: 60px;
    }

    .hero-actions {
        flex-direction: row; /* Side by side buttons */
        justify-content: center;
        width: auto;
    }

    .btn-lg {
        width: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .split-layout {
        gap: 60px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .pricing-card.featured {
        order: initial; /* Reset order */
    }

    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        display: flex;
        gap: 60px;
    }
}

/* ------------------------------------------- */
/* DESKTOP STYLES (min-width: 1024px)          */
/* ------------------------------------------- */
@media (min-width: 1024px) {
    .section {
        padding: 100px 0;
    }

    /* Navbar */
    .nav-links, .nav-actions {
        display: flex; /* Visible on desktop */
    }
    
    .mobile-menu-btn {
        display: none; /* Hidden on desktop */
    }

    /* Hero */
    .hero {
        min-height: 90vh;
    }
    
    .hero-container {
        grid-template-columns: 1.2fr 1fr; /* 2 Columns */
        text-align: left;
    }
    
    .hero-content {
        align-items: flex-start;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-visual {
        height: 500px;
        margin-top: 0;
    }
    
    .card-stack {
        width: 320px;
        height: 480px;
    }
    
    .card-back {
        transform: translateX(40px) rotateY(-10deg) scale(0.9);
    }
    
    .card-middle {
        transform: translateX(20px) rotateY(-5deg) scale(0.95);
    }

    .hero-title {
        font-size: 4rem;
    }
    
    .section-header:not(.center) {
        text-align: left;
    }
    
    /* Features */
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Beta Section */
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .split-content {
        text-align: left;
        align-items: flex-start;
    }
    
    .beta-cta {
        width: auto;
    }
    
    .beta-glow {
        display: block;
        position: absolute;
        top: 50%;
        right: 0;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
        transform: translateY(-50%);
        pointer-events: none;
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
        gap: 60px;
    }
    
    .footer-links {
        width: auto;
        gap: 80px;
    }
    
    .qualification-box {
        padding: 60px;
    }
}
