:root {
    --bg: #0a0a0f;
    --surface: #1a1a2e;
    --surface-light: #2d2d44;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --accent: #8b5cf6;
    --accent-2: #10b981;
    --accent-3: #f59e0b;
    --accent-4: #ef4444;
    --accent-5: #06b6d4;
    --border: #374151;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-1: linear-gradient(135deg, var(--accent), var(--accent-2));
    --gradient-2: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    --gradient-3: linear-gradient(135deg, var(--accent-3), var(--accent));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

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

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

.nav-link:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.mesh-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 30%, rgba(239, 68, 68, 0.2) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
}

.liquid-waves {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
    animation: liquidFlow 15s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes liquidFlow {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(20px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-features span {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

.grid-3col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 0.05;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--accent);
}

/* Icons */
.icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-light);
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.icon-accent img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(249deg) brightness(95%) contrast(93%);
}

.icon-accent-2 img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(88%) saturate(1552%) hue-rotate(117deg) brightness(91%) contrast(87%);
}

.icon-accent-3 img {
    filter: brightness(0) saturate(100%) invert(75%) sepia(32%) saturate(1734%) hue-rotate(7deg) brightness(98%) contrast(94%);
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(16, 185, 129, 0.05));
}

.benefit-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* How it Works */
.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

/* Plans */
.plans {
    background: var(--surface);
}

.plan-card {
    text-align: center;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-badge.popular {
    background: var(--gradient-2);
}

.featured {
    border-color: var(--accent-2);
    transform: scale(1.05);
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Apps */
.app-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.app-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.app-card .icon {
    width: 40px;
    height: 40px;
    margin: 0;
}

.app-card h4 {
    color: var(--text);
    font-size: 1rem;
}

/* Categories */
.category-card {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.category-card h3 {
    margin-top: 1rem;
    color: var(--text);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(245, 158, 11, 0.05));
}

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

.testimonial-card {
    text-align: center;
}

.stars {
    color: var(--accent-3);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.author {
    font-weight: 600;
    color: var(--accent);
}

/* Stats */
.stats {
    background: var(--surface);
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Final */
.cta-final {
    background: var(--gradient-1);
    text-align: center;
    color: white;
}

.cta-final h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-final .btn {
    background: white;
    color: var(--accent);
}

.cta-final .btn:hover {
    background: var(--text-light);
}

/* Institutional */
.institutional {
    background: var(--surface);
    text-align: center;
}

.institutional-content h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.institutional-content p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-logo {
    margin-bottom: 1rem;
}

/* Content Pages */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.content-wrapper h1 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-wrapper h2 {
    color: var(--accent);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content-wrapper h3 {
    color: var(--text);
    margin: 1.5rem 0 1rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.content-wrapper ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: var(--accent);
    text-decoration: none;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

.cta-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.cta-section h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

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

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 1rem 1rem 1rem;
        min-height: 80vh;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .grid-3col {
        grid-template-columns: 1fr;
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

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

    .featured {
        transform: none;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
.faq-question:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-final {
        display: none;
    }
    
    .main-content {
        padding-top: 0;
    }
}