/* Majmoo Product Page - Shared Styles */
:root {
    --bg-primary: #030712;
    --bg-secondary: #0f172a;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(99, 102, 241, 0.15);
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.4);
    --teal: #2dd4bf;
    --teal-glow: rgba(45, 212, 191, 0.3);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #818cf8 0%, #2dd4bf 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #0ea5e9 50%, #2dd4bf 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    overflow-x: hidden;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -200px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--teal); bottom: -150px; left: -100px; animation-delay: -10s; }
.orb-3 { width: 300px; height: 300px; background: #f472b6; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -5s; opacity: 0.3; }

/* RTL Support */
[dir="rtl"] .orb-1 { right: auto; left: -100px; }
[dir="rtl"] .orb-2 { left: auto; right: -100px; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.logo-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 0 40px var(--accent-glow);
}
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
h1 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--accent-glow);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

/* Stats Row */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.stat {
    text-align: center;
}
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Section Styles */
section {
    padding: 6rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Core Feature - Glass Card */
.core-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    text-align: center;
    margin-bottom: 4rem;
}
.core-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.core-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.core-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.core-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.step-num {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bg-primary);
}
.step-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
[dir="rtl"] .feature-card { text-align: right; }
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.3);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.feature-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tools Section - Horizontal Scroll */
.tools-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tools-scroll::-webkit-scrollbar { display: none; }
.tool-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.tool-chip:hover {
    background: rgba(129, 140, 248, 0.15);
    border-color: var(--accent);
}
.tool-chip span:first-child { font-size: 1.1rem; }

/* Highlights Grid */
.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}
.highlight-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.highlight-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.highlight-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.highlight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }
.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}
.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}
.nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-link {
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.nav-btn-ghost {
    color: var(--text-muted);
    background: transparent;
}
.nav-btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.nav-btn-support {
    color: var(--bg-primary);
    background: var(--gradient-1);
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-btn-support:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.nav-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu .nav-link,
.mobile-menu .nav-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
}

/* Language Switcher */
.language-switcher { position: relative; display: inline-block; }
.language-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; border: none; border-radius: 12px; padding: 10px 20px;
    font-size: 0.95em; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.language-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); }
.globe-icon { font-size: 1.2em; }
.language-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px; min-width: 400px; max-height: 500px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 1000;
}
[dir="rtl"] .language-dropdown { right: auto; left: 0; }
.language-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.language-dropdown-header { font-size: 1.1em; font-weight: 700; color: #2c3e50; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
[dir="rtl"] .language-dropdown-header { text-align: right; }
.language-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.language-option {
    padding: 12px 15px; border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
    background: #f8f9fa; border: 2px solid transparent; text-decoration: none;
    color: #2c3e50; font-weight: 500; font-size: 0.95em; display: flex; align-items: center; gap: 10px;
}
.language-option:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; transform: translateX(5px); }
[dir="rtl"] .language-option:hover { transform: translateX(-5px); }
.language-option.current { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.language-flag { font-size: 1.3em; }
.language-dropdown::-webkit-scrollbar { width: 8px; }
.language-dropdown::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.language-dropdown::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .logo-icon { width: 56px; height: 56px; font-size: 2rem; border-radius: 16px; }
    .logo-text { font-size: 2rem; }
    .stats { gap: 2rem; }
    .highlights { grid-template-columns: repeat(2, 1fr); }
    .core-card { padding: 2rem; }
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding-top: 6rem; }
    .language-dropdown { min-width: 320px; max-width: 90vw; left: 50%; right: auto; transform: translateX(-50%) translateY(-10px); }
    .language-dropdown.active { transform: translateX(-50%) translateY(0); }
    .language-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cta-group { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { justify-content: center; }
    .highlights { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
