/* UaiChat Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-alt: #60a5fa;
    --accent: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-surface: rgba(30, 41, 59, 0.5);
    --bg-card: rgba(15, 23, 42, 0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.12);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-text: linear-gradient(to right, #60a5fa 0%, #a78bfa 100%);
    --shadow-primary: 0 10px 25px rgba(59, 130, 246, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.animate-fade-in {
    opacity: 0;
}

.animate-fade-in.show {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-right {
    opacity: 0;
}

.animate-fade-right.show {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.glow-on-hover:hover {
    animation: pulse-glow 1.5s infinite;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-panel {
    background: var(--gradient);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-panel:hover::after {
    left: 100%;
}

.btn-panel:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(112, 40, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn-main {
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-nav {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.nav-links .btn-nav {
    color: white !important;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* Features */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111319 100%);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.price-card {
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-15px);
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--primary-alt);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
}

.price-card.featured:hover {
    transform: translateY(-20px) scale(1.08);
}

.price-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.price-card:hover::after {
    opacity: 1;
}

.price-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.price-period {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s;
}

.price-card:hover .price-features li {
    transform: translateX(5px);
}

.price-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.btn-buy {
    width: 100%;
    padding: 1.2rem;
    border-radius: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

.price-card:hover .btn-buy {
    background: var(--gradient);
    box-shadow: var(--shadow-primary);
}

.price-card.featured .btn-buy {
    background: var(--gradient);
}

.btn-buy:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    font-style: italic;
    color: var(--text-muted);
}

.testimonial-user {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-style: normal;
    color: var(--text-main);
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
}

/* Contact */
.contact {
    padding: 6rem 0;
}

.contact-card {
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    background: var(--gradient);
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .contact-card {
        grid-template-columns: 1fr;
    }
}
