:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --primary-color: #8200DB;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(13, 13, 24, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 15px 15px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.hero-logo-img {
    display: block;
    height: 60px;
    width: auto;
    margin-bottom: 2rem;
    /* optional glow */
    filter: drop-shadow(0 0 10px rgba(130, 0, 219, 0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-actions .btn {
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: rgba(130, 0, 219, 0.16);
    color: white;
    border-color: #322D36;
    backdrop-filter: blur(8px);
}

.btn-primary:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.btn-glass {
    background-color: rgba(130, 0, 219, 0.16);
    color: white;
    border: 1px solid #322D36;
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.btn-outline {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #4b5563;
    color: #e5e7eb;
}

.btn-outline:hover {
    border-color: #9ca3af;
    color: white;
}

.icon-play {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

/* Attempt to hide Spline Badge globally if it's not in Shadow DOM or if it allows overrides */
#spline-viewer-logo {
    display: none !important;
}

/* In case it's exposed differently */
.spline-watermark {
    display: none !important;
}

.spline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.8)),
        linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: max(2rem, calc((100% - 1280px) / 2 + 1.5rem));
    /* Align left container */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Screenshot Section */
.screenshot-section {
    position: relative;
    z-index: 20;
    margin-top: -10vh;
    padding-bottom: 4rem;
    perspective: 1000px;
}

.screenshot-container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #111827;
    transform-origin: center top;
    will-change: transform, opacity;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.desktop-only {
    display: none;
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
    /* For the absolute animated bg */
}

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

.services-bg-animation::before,
.services-bg-animation::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatBlob 20s infinite alternate;
}

.services-bg-animation::before {
    background: radial-gradient(circle, #8200DB, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.services-bg-animation::after {
    background: radial-gradient(circle, #4f46e5, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: #9ca3af;
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Make the first item span 2 columns if we have an odd layout, or adjust as needed. 
       For 7 items, 3x3 grid leaves 2 empty spots. Let's make the last one span full width? 
       Or just standard grid. Let's keep strict grid for now. */
    .services-grid> :last-child {
        grid-column: span 3;
        /* Center the last one if alone? or span full */
    }
}

/* Glow Card */
.glow-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    /* transition: transform 0.2s; */
    /* Can conflict with fast mouse updates if not careful */
    cursor: default;
}

.glow-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
    /* Above the glow */
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent to show glow underneath */
    backdrop-filter: blur(0px);
    /* Optional */
    border-radius: 1rem;
    margin: 1px;
    /* To show border and inner glow */
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.card-desc {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* The Glow Effect Layer */
.glow-effect {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(130, 0, 219, 0.15),
            transparent 40%);
}

.glow-card:hover .glow-effect {
    opacity: 1;
}

/* Add a border glow via pseudo-element */
.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.4),
            transparent 40%);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s;
}

.glow-card:hover::before {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    padding: 4rem 1.5rem;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
}

#neural-network {
    width: 100%;
    height: 100%;
}

.neural-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dash 6s linear infinite;
    opacity: 0.5;
}

.neural-node {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

.cta-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.cta-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, white, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.cta-form {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .cta-form {
        flex-direction: row;
    }
}

.cta-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}

.cta-input:focus {
    border-color: #8200DB;
}

.cta-button {
    background: linear-gradient(135deg, #8200DB, #4f46e5);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px #8200DB;
}

/* Footer Section */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #050505;
    padding: 4rem 0 2rem;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #9ca3af;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}