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

:root {
    --bg-primary: #050510;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --accent-color: #009dff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background ambient glow */
.bg-glow {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.bg-glow:nth-child(2) {
    top: auto;
    left: auto;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    animation: fadeInDown 1s ease forwards;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-support {
    color: var(--text-primary) !important;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease !important;
}

.nav-support:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 0;
}

.hero-logo {
    width: 100%;
    max-width: 200px;
    /* Ensures it is not wider than the App Store button which usually spans ~250-300px */
    height: auto;
    border-radius: 24%;
    /* Apple style icon squircle approximation */
    margin-bottom: 32px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #000000;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.app-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
    background: #f0f0f0;
}

.app-store-btn svg {
    width: 24px;
    height: 24px;
}

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

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 64px;
    letter-spacing: -1px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* Footer & Legal Pages */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Legal Pages Specific Styles */
.legal-content {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.legal-content p.last-updated {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 48px;
    font-weight: 600;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        min-height: 70vh;
    }

    .features {
        padding: 60px 0;
    }
}