/* Visionary Labs - Design System */

:root {
    /* Palette - Apple Inspired */
    --bg-body: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(251, 251, 253, 0.8);

    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-link: #0066CC;

    --accent-color: #0071E3;
    /* Apple Blue */
    --accent-hover: #0077ED;

    --border-light: #D2D2D7;

    /* Spacing & Radius */
    --radius-l: 24px;
    --radius-m: 12px;
    --radius-s: 8px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Animation */
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--ease-apple);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: 56px;
    margin-bottom: 24px;
}

h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p.lead {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    /* Pillow shape */
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-apple);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    font-weight: 400;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.logo img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    /* Smooth corners for icon */
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    font-size: 12px;
    padding: 6px 16px;
}

/* Glassmorphism & Modern Utils */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(29, 29, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for flexibility */
    grid-template-rows: repeat(2, 300px);
    /* Fixed height rows */
    gap: 24px;
}

.bento-item {
    background: white;
    border-radius: 32px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Span utilities for Bento */
.span-2 {
    grid-column: span 2;
}

.span-4 {
    grid-column: span 4;
}

.row-2 {
    grid-row: span 2;
}

/* Large Text Typography */
.display-text {
    font-size: 80px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animation Utilities */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Image Animations */
.img-animate {
    transition: transform 0.6s var(--ease-apple), box-shadow 0.6s var(--ease-apple);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
}

.img-animate:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Feature specific */
.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #F5F5F7;
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Mobile */
/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s var(--ease-apple);
}

/* New Utility Classes for Mobile Refactor */
.hero-title {
    font-size: 96px;
    margin-bottom: 32px;
    letter-spacing: -3px;
}

.hero-lead {
    font-size: 28px;
    color: #6e6e73;
    max-width: 800px;
    margin: 0 auto 48px auto;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 19px;
    border-radius: 98px;
}

.btn-lg-text {
    font-size: 19px;
}

.hero-image-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-img {
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.bg-light {
    background: #FAFAFA;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
}

/* Bento Grid Specifics */
.bento-ai {
    background: linear-gradient(135deg, #E0EAFC 0%, #CFDEF3 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    font-weight: 600;
}

.bento-title {
    font-size: 40px;
    margin-top: 8px;
}

.bento-desc {
    color: #666;
    margin-top: 12px;
    font-size: 18px;
}

.bento-img {
    width: 100%;
    border-radius: 16px;
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bento-mobile {
    background: white;
}

.bento-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bento-title-sm {
    font-size: 28px;
}

.icon-lg {
    font-size: 32px;
}

.bento-text-muted {
    color: #86868B;
    margin-top: 12px;
}

.mobile-mockup {
    max-height: 150px;
    margin: 20px auto 0 auto;
    display: block;
}

.bento-web {
    background: #1D1D1F;
    color: white;
}

.bento-text-sm {
    color: #A1A1A6;
    margin-top: 8px;
    font-size: 14px;
}

.bento-design {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.bento-text-sm-muted {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}

.section-border-top {
    background-color: #fff;
    border-top: 1px solid var(--border-light);
}

.text-muted-label {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    gap: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
}

.cta-container {
    background: linear-gradient(135deg, #0071E3, #00C7BE);
    border-radius: 32px;
    padding: 80px 24px;
    color: white;
}

.cta-title {
    color: white;
    margin-bottom: 24px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-white {
    background: white;
    color: #0071E3;
}

.footer-link {
    opacity: 0.5;
    font-size: 11px;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    /* Refactored Mobile Overrides */
    .hero-title {
        font-size: 48px !important;
        letter-spacing: -1px;
    }

    .hero-lead {
        font-size: 20px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

    .btn-lg {
        width: 100%;
        padding: 14px 24px;
        font-size: 17px;
    }

    .bento-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .cta-container {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .cta-desc {
        font-size: 18px;
    }

    .logo-cloud {
        flex-direction: column;
        gap: 20px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: transform 0.4s var(--ease-apple);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 18px;
        font-weight: 500;
        color: var(--text-primary);
    }

    .nav-cta {
        display: none;
    }

    /* Bento Grid Mobile */
    .bento-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .bento-item {
        height: auto;
        min-height: 250px;
    }

    .span-2,
    .span-4,
    .row-2 {
        grid-column: auto;
        grid-row: auto;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .display-text {
        font-size: 48px;
    }

    .lead {
        font-size: 20px !important;
    }

    .form-container {
        padding: 24px;
    }
}

/* Infinite Marquee */
.logo-marquee-section {
    padding: 60px 0;
    overflow: hidden;
    background: white;
}

.marquee-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    font-size: 24px;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
}

.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 40px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-question .icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}