:root {
    /* Colors */
    --bg-dark: #0a0a0c;
    --bg-card: #131316;
    --bg-card-hover: #1c1c21;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #8b5cf6;
    /* Violet */
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #10b981;
    /* Emerald */
    --accent: #3b82f6;
    /* Blue */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-text: linear-gradient(to right, #fff, #a1a1aa);
    --gradient-glow: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    -height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom right, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

nav a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    opacity: 0.4;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-visual {
    margin-top: 4rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Partners Marquee */
.partners {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #0f0f11;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    height: 50px;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Bento Grid Solutions */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.bento-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Case Studies - AR VR Motion Graphics */
.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.case-study.reverse {
    direction: rtl;
}

.results-list {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.result-item h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.result-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* AR Gallery Window */
.case-image {
    position: relative;
    border-radius: var(--radius-lg);
    perspective: 1500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle window background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Window frame */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Inner depth */
    width: 100%;
    overflow: hidden;
    /* Ensure images stay within window */
}

.ar-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-image {
    position: absolute;
    width: 90%;
    /* Slightly smaller to fit nicely in window */
    height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translate3d(0, 50px, -100px) scale(0.9);
    /* Start state */
    will-change: transform, opacity;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.ar-image.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.3));
    /* Glow */
}

.ar-image.next {
    opacity: 0;
    transform: translate3d(0, 50px, -100px) scale(0.9);
    z-index: 5;
}

/* Floating animation for the active card */
@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -5px, 0) scale(1.02);
    }
}

.ar-image.active {
    animation: float 6s ease-in-out infinite;
}

/* Contact */
.contact-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111 100%);
    position: relative;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    color: #52525b;
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-popup {
        padding: 2rem 1.5rem;
    }
}

/* Solution Hero */
.solution-hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.solution-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Solution Image */
.solution-image-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Solution Description */
.solution-description {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.solution-description h2 {
    margin-bottom: 1.5rem;
}

.solution-description p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Use Cases */
.use-cases-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-cases-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.use-case {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.use-case h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.use-case p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Solution CTA */
.solution-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-top: 4rem;
}

.solution-cta h2 {
    margin-bottom: 1rem;
}

.solution-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* ===== PAYMENT POPUP STYLES ===== */

.payment-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.payment-popup {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 1200px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.payment-popup h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.plan-price {
    margin-bottom: 2rem;
}

.plan-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-price .period {
    color: var(--text-muted);
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.plan-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
}

/* Payment Form */
.payment-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.payment-form h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Stripe Element */
.stripe-element {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.stripe-element:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.payment-logo {
    height: 24px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.payment-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit Button */
#submitPayment {
    width: 100%;
    position: relative;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Make solution cards clickable */
.bento-card {
    cursor: pointer;
}

/* Responsive for Solution Pages */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-popup {
        padding: 2rem 1.5rem;
    }
}

/* Legal Modals */
.legal-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
}

#termsModal .payment-popup,
#privacyModal .payment-popup {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#termsModal h3,
#privacyModal h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}