/* Global Styles */
:root {
    --bg-dark: #0f172a;
    --bg-surface: #1e293b;
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

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

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

.btn-primary-sm {
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(139, 92, 246, 0.6);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

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

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

.hero-text h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    padding: 18px 36px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mockup {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.glow-sphere {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    z-index: -1;
}

/* Features Section */
.features {
    padding: 100px 0;
}

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

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

.section-header p {
    color: var(--text-muted);
}

.feature-grid { grid-template-columns: repeat(3, 1fr) !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Portals Section */
.portals {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.5);
}

.portal-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portal-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.2));
    border-color: var(--primary);
}

.portal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.btn-card {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.btn-card:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* CTA Section */
.download-cta {
    padding: 100px 0;
}

.glass {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 40px;
    padding: 5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn-download {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-download .large {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.btn-download .small {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    height: 35px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Responsive Optimization */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .hero-text h1 { font-size: 3.5rem; }
}

@media (max-width: 991px) {
    .navbar { padding: 15px 0; }
    .hero-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 4rem;
        padding-top: 40px;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 2.5rem; max-width: 600px; }
    .hero-actions { justify-content: center; }
    .feature-grid, .portal-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; grid-template-columns: 1fr; gap: 1.5rem; }
    .glass { flex-direction: column; text-align: center; gap: 3rem; padding: 3rem 2rem; }
    .nav-links { display: none; } /* Hide desktop nav for mobile simplicity */
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .portal-card { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-main, .btn-outline { width: 100%; justify-content: center; }
    .cta-text h2 { font-size: 1.8rem; }
    .btn-download .large { font-size: 1.2rem; }
    .portal-card { border-radius: 24px; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
}
