:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    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, .logo, .tier {
    font-family: 'Outfit', sans-serif;
}

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

/* Background Glow */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(10,10,15,0) 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    opacity: 0.6;
    animation: pulse 8s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-50px, 50px); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn.primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn.secondary:hover {
    background: var(--glass-bg);
}

.btn.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

/* Hero Visual (Abstract UI) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.abstract-ui-card {
    width: 350px;
    height: 450px;
    padding: 20px;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.abstract-ui-card:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.skeleton-header {
    height: 40px;
    background: var(--glass-border);
    border-radius: 8px;
    margin-bottom: 30px;
}

.skeleton-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 200px;
    margin-top: 50px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), transparent);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.h-1 { height: 40%; }
.h-2 { height: 70%; }
.h-3 { height: 50%; }
.h-4 { height: 100%; }

/* Features */
.features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

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

.feature-card {
    padding: 40px 30px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pricing */
.pricing-section {
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card {
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.tier {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.price {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.avg-compare {
    font-size: 0.9rem;
    color: #ef4444;
    margin-bottom: 30px;
    text-decoration: line-through;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 50px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer .logo {
    margin-bottom: 10px;
    color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content {
        margin-bottom: 60px;
    }
    
    h1 { font-size: 3rem; }
    
    .cta-group {
        justify-content: center;
    }
}

/* Chatbot Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.chat-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 400px;
    background: rgba(10, 10, 15, 0.9);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--glass-border);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px;
    border-radius: 4px;
    outline: none;
}

#chat-input:focus {
    border-color: var(--primary);
}

#chat-send {
    margin-left: 10px;
    padding: 10px 15px;
}

.chat-open-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    display: flex;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
