:root {
    --bg-color: #0D0D0D;
    --card-bg: #1A1A1A;
    --card-bg-alt: #1A1A2E;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --primary: #7C4DFF;
    --primary-glow: rgba(124, 77, 255, 0.4);
    --secondary: #FF5252;
    --border-color: rgba(255, 255, 255, 0.05);
}

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

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background blob */
.blob-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(13,13,13,0) 70%);
    filter: blur(100px);
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 0.5px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-glow);
}

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

.nav-links a:not(.btn-primary-sm) {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--text-main);
}

/* Buttons matching Flutter App */
.btn-primary-sm, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px; /* Pill shaped for modern look */
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary-sm {
    padding: 0.6rem 1.6rem;
    background: linear-gradient(135deg, var(--primary), #5a35b8);
    color: white;
    font-size: 0.95rem;
}

.btn-primary {
    padding: 1.2rem 2.8rem;
    background: linear-gradient(135deg, var(--primary), #5a35b8);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.4);
}

.btn-primary:hover, .btn-primary-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 77, 255, 0.6);
    background: linear-gradient(135deg, #8e65ff, var(--primary));
}

.btn-secondary {
    padding: 1.2rem 2.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 12rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(124, 77, 255, 0.1);
    color: #b39ddb;
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto 3rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.features-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 5rem;
    letter-spacing: -0.5px;
}

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

.feature-card {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(124, 77, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 77, 255, 0.1);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(124, 77, 255, 0.05));
    border: 1px solid rgba(124, 77, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
    filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.5));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* CTA */
.cta-section {
    max-width: 1000px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.cta-container {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg-alt), var(--card-bg));
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

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

.cta-container p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Legal Page specific */
.legal-page {
    padding-top: 8rem;
    background: radial-gradient(circle at top left, rgba(124, 77, 255, 0.05), transparent 50%), var(--bg-color);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto 6rem;
    padding: 4.5rem;
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.last-updated {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4rem;
    letter-spacing: 0.5px;
}

.legal-content section {
    margin-bottom: 3.5rem;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 500;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsive - Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding: 10rem 2rem 5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
    }
    
    .legal-content {
        padding: 3.5rem;
    }
}

/* Responsive - Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a:not(.btn-primary-sm) {
        display: none; /* Keep navbar clean on mobile, only show primary CTA */
    }
    
    .blob-bg {
        width: 100vw;
        height: 100vw;
        filter: blur(60px);
    }

    .hero {
        padding: 8rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1.1rem;
    }
    
    .features-section {
        margin: 4rem auto;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        margin: 4rem auto 3rem;
    }
    
    .cta-container {
        padding: 3rem 1.5rem;
    }
    
    .cta-container h2 {
        font-size: 1.8rem;
    }
    
    .legal-page {
        padding-top: 6rem;
    }
    
    .legal-content {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem 3rem;
        border-radius: 20px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.2rem;
    }
}

/* Responsive - Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .btn-primary-sm {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.4rem;
    }
}
