@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --bg-dark: #020617; /* Very deep slate */
    --primary: #6366F1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #818CF8;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

/* Background gradient blobs for modern feel */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

body::before {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(2,6,23,0) 70%);
}

body::after {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(129,140,248,0.15) 0%, rgba(2,6,23,0) 70%);
}

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

/* Header */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:first-child {
    margin-left: 0;
}

nav a:hover, nav a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

/* Hero Image Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-image {
    margin-top: 5rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

/* Features */
.features {
    padding: 8rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.feature-card h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    margin-top: 4rem;
    background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 100%);
    border-top: 1px solid var(--glass-border);
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.2s;
}

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

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Legal Pages (Styled to match the Flutter App's exact layout) */
.legal-content {
    padding: 6rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-main);
}

.legal-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 24px;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h2 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #818CF8; /* Dark mode primary color from app */
}

.legal-section p, .legal-section ul {
    color: rgba(255, 255, 255, 0.7); /* white70 from app */
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.legal-section ul {
    list-style-type: none;
}

.legal-section li {
    margin-bottom: 4px;
}

.legal-section li::before {
    content: "- ";
}

.legal-section a {
    color: var(--secondary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1rem; }
    header { flex-direction: column; gap: 2rem; }
    nav { width: 100%; display: flex; justify-content: space-between; padding: 1rem; }
    nav a { margin-left: 0; }
    .legal-content h1 { font-size: 2.5rem; }
    .legal-section { padding: 1.5rem; }
}
