/* 
   OpenRoute Premium Glassmorphic Theme 
   Colors: Dark Violet, Neon Purple, Bright Cyan 
*/

:root {
    --bg-dark: #070514;
    --bg-surface: rgba(22, 14, 43, 0.4);
    --bg-surface-hover: rgba(35, 23, 67, 0.6);
    
    --color-purple: #a855f7;
    --color-purple-glow: rgba(168, 85, 247, 0.5);
    --color-cyan: #2dd4bf;
    --color-cyan-glow: rgba(45, 212, 191, 0.5);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-strong: rgba(255, 255, 255, 0.15);
    
    --font-primary: 'Vazirmatn', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }
.font-bold { font-weight: 700; }

.gradient-text {
    background: linear-gradient(135deg, #e9d5ff 0%, var(--color-purple) 50%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ambient Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    animation: float-slow 10s infinite alternate ease-in-out;
}
.glow-purple {
    background: var(--color-purple-glow);
    width: 600px; height: 600px;
}
.glow-cyan {
    background: var(--color-cyan-glow);
    width: 500px; height: 500px;
}
.top-left { top: -200px; left: -200px; }
.bottom-right { bottom: 10%; right: -150px; }
.bottom-left { bottom: -200px; left: 10%; width: 400px; height: 400px; }

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(30px, -30px) scale(1.1); opacity: 0.5; }
}

/* Glassmorphism Classes */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(7, 5, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-strong);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.logo-icon {
    color: var(--color-purple);
    width: 28px; height: 28px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-main);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-glass);
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    padding: 16px 0;
    font-weight: 600;
    border-bottom: 1px solid var(--border-glass);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    color: #fff;
    justify-content: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-purple) 0%, #7e22ce 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass-strong);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 16px;
}
.glow-effect {
    position: relative;
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px var(--color-purple-glow);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.glow-effect:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}
.hero-content {
    max-width: 900px;
    z-index: 10;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    color: var(--color-cyan);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 32px;
}
.badge-dot {
    width: 8px; height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
}
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 64px;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    border-top: 1px solid var(--border-glass);
    padding-top: 48px;
}
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Features */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.icon-box {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.icon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-purple);
}
.icon-cyan {
    background: rgba(45, 212, 191, 0.15);
    color: var(--color-cyan);
}
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}
.popular {
    border-color: var(--color-purple);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    transform: scale(1.05);
}
.popular:hover {
    transform: scale(1.05) translateY(-8px);
}
.popular-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--color-purple);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(168,85,247,0.4);
}
.plan-type {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.plan-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 8px 0 24px;
}
.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}
.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 64px 24px 32px;
    margin-top: 64px;
    background: rgba(0,0,0,0.2);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.footer-text {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}
.footer-links {
    margin-bottom: 48px;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    background: rgba(255,255,255,0.1);
}
.copyright {
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    .popular { transform: none; }
    .popular:hover { transform: translateY(-8px); }
    .stats-row { gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding-top: 100px; }
    .stats-row { flex-direction: column; gap: 24px; }
}
