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

:root {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --text: #ffffff;
    --text-light: #e0e7ff;
    --background: #0f0f23;
    --surface: #1a1a3e;
    --border: #2d2d5f;
    --cosmic-bg: radial-gradient(ellipse at top, #1a1a3e 0%, #0f0f23 50%, #000000 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--background);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cosmic-bg);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%, 40% 60%, 10% 80%, 70% 20%, 30% 90%, 80% 50%, 50% 10%;
    opacity: 0.4;
    animation: twinkle 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

.nav-links a:hover {
    color: white;
}

.cta-button {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.5);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.primary-btn, .secondary-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.primary-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(167, 139, 250, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.6);
}

.secondary-btn {
    background: rgba(167, 139, 250, 0.1);
    color: white;
    border: 2px solid rgba(167, 139, 250, 0.5);
}

.secondary-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.8);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-phones {
    position: relative;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.phone-frame {
    width: 300px;
    height: 615px;
    background: #1f2937;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1f2937;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: opacity;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
}

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

.feature-card {
    padding: 32px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.3);
    border-color: rgba(167, 139, 250, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.learn-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.feature-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

/* Showcase Section */
.showcase {
    padding: 120px 0;
    position: relative;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 160px;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-phones {
    position: relative;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-left {
    position: absolute;
    left: 0;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.phone-right {
    position: absolute;
    right: 0;
    z-index: 2;
    animation: float 6s ease-in-out infinite 1s;
}

.phone-center {
    animation: float 6s ease-in-out infinite;
}

.showcase-text h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.showcase-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 16px;
    color: var(--text);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-weight: bold;
    font-size: 20px;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
}

.download-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: rgba(167, 139, 250, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    background: rgba(167, 139, 250, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.4);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

.btn-small {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
}

.btn-large {
    font-size: 20px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.8);
    color: white;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content,
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .showcase-text h2 {
        font-size: 36px;
    }

    .nav-links {
        display: none;
    }

    .phone-mockup {
        margin: 0 auto;
    }

    .hero-phones {
        height: 500px;
    }

    .hero-phones .phone-left,
    .hero-phones .phone-right {
        position: static;
        margin: 0 -30px;
    }

    .showcase-phones {
        height: 500px;
    }

    .phone-frame {
        width: 250px;
        height: 513px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta-title {
        font-size: 36px;
    }

    .showcase-item {
        margin-bottom: 100px;
    }
}

/* Feature Modal */
.feature-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feature-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.95) 0%, rgba(15, 15, 35, 0.95) 100%);
    border-radius: 24px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(167, 139, 250, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(167, 139, 250, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 60px;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(167, 139, 250, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.7);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.modal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.benefit-item {
    padding: 20px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.modal-cta {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    text-align: center;
}

.modal-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(167, 139, 250, 0.4);
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.6);
}

@media (max-width: 768px) {
    .modal-body {
        padding: 40px 24px;
    }

    .modal-title {
        font-size: 32px;
    }

    .modal-subtitle {
        font-size: 18px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .modal-close {
        top: 16px;
        right: 16px;
    }
}
