@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;800&family=Inter:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grainy Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' 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)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: var(--section-padding);
}

/* Typography Enhancements */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Animations & Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes border-glow {
    0% {
        border-color: var(--glass-border);
    }

    50% {
        border-color: var(--primary);
    }

    100% {
        border-color: var(--glass-border);
    }
}

@keyframes neural-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.3;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

@keyframes title-pulse {
    0% {
        text-shadow: 0 0 0px var(--primary);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    }

    100% {
        text-shadow: 0 0 0px var(--primary);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px 45px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: auto;
    display: flex;
    flex-direction: column;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 1;
}

/* Background Glows & Effects */
.glow-wrapper {
    position: relative;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-primary {
    background: var(--primary);
}

.glow-secondary {
    background: var(--secondary);
}

.glow-accent {
    background: var(--accent);
}

.glow-top-right {
    top: -10%;
    right: -10%;
}

.glow-bottom-left {
    bottom: -10%;
    left: -10%;
}

.glow-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 40px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.animate-glow {
    animation: float-slow 15s infinite ease-in-out;
}

/* Hero Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 0.95;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 650px;
    font-weight: 300;
}

/* AI Visual Center (Hero Right) */
.hero-metrics {
    display: flex;
    gap: 40px;
}

.neural-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-orb {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: neural-pulse 6s infinite alternate ease-in-out;
}

.hero-card {
    position: absolute;
    width: 320px;
    height: 440px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: all 0.5s ease;
    animation: float 8s infinite alternate ease-in-out;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    border-color: var(--primary);
}

/* Gallery / Models Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.model-card {
    position: relative;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid transparent;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.model-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.5s ease;
}

.model-card:hover::after {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.model-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(112, 0, 255, 0.15);
}

.model-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.8s ease;
}

.model-card:hover .model-img {
    opacity: 1;
    transform: scale(1.08);
}

.model-info-premium {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.model-card:hover .model-info-premium {
    transform: translateY(0);
}

/* Pricing Upgrade */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.plan-card.popular {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.15), rgba(0, 242, 255, 0.1));
    border: 1px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 242, 255, 0.15);
    position: relative;
    overflow: hidden;
    transform: scale(1.05);
    z-index: 5;
}

.plan-card.popular::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* FAQ Section */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-question {
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.4s;
}

.faq-answer {
    padding: 0 35px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.03);
}

.faq-item.active .faq-answer {
    padding: 0 35px 30px;
    max-height: 400px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

/* --- Navbar Architecture --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 2, 4, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 10px 40px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-transform: uppercase;
}

/* --- Trusted By Refinement --- */
.trusted-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    filter: grayscale(1);
    font-weight: 800;
    font-size: 1.5rem;
}

/* --- Responsive Evolution --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1,
    h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-content .reveal[style*="display: flex"] {
        justify-content: center;
    }

    .neural-container {
        height: 550px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile Navbar */
    .nav-container {
        border-radius: 20px;
        padding: 15px 25px;
    }

    /* Hero & Sections */
    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-grid {
        gap: 80px;
    }

    .neural-container {
        height: 500px;
    }

    .hero-metrics {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    h2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .trusted-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 40px;
        font-size: 1rem;
    }

    .gallery-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 40px 25px;
        border-radius: 25px;
        overflow-y: auto;
        max-height: 90vh;
    }

    .modal-content>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    #modalName {
        font-size: 2.2rem !important;
    }

    #modalImg {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-content .reveal[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    h2 {
        font-size: 1.6rem !important;
    }
}