/* 
 * Habis - Premium Design System
 * ----------------------------
 * A sleek, dark-themed design system using modern CSS features.
 * Focuses on glassmorphism, smooth gradients, and Inter typography.
 */

:root {
    /* Colors - Aligned with src/ui/theme/colors.ts */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 26, 0.6);
    --bg-card-border: #2a2a35;

    --primary: #4CAF50;
    /* Calm Green - Official App Accent */
    --primary-glow: rgba(76, 175, 80, 0.4);
    --secondary: #3B82F6;
    /* Focus Blue */

    --text-main: #ffffff;
    --text-muted: #a0a0a8;

    --glass-blur: 12px;

    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --text-dim: rgba(255, 255, 255, 0.5);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.sphere-1 {
    width: 40vw;
    height: 40vw;
    background: var(--primary);
    top: -10vw;
    right: -5vw;
}

.sphere-2 {
    width: 30vw;
    height: 30vw;
    background: var(--secondary);
    bottom: -5vw;
    left: -5vw;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-glass {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(var(--glass-blur));
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
    padding: 2rem;
    min-width: 280px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Section Styling */
section {
    padding: 6rem 0; /* Standardized 6rem spacing */
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 180px;
    background: #1a1a24;
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
    padding: 0.5rem;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.dropdown-content a i {
    font-size: 1.1rem;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header/Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}


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

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

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.30fr 1fr;
    gap: 5rem;
    align-items: center;
    padding-top: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-main) 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.phone-mockup {
    width: 100%;
    max-width: 460px;
    border-radius: 40px;
    border: 8px solid #222;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.text-glow {
    text-shadow: 0 0 10px var(--primary-glow);
}

.text-dim {
    color: var(--text-dim);
}

/* Content Page (Privacy/Terms/Support) */
.content-page {
    max-width: 1200px;
    margin: 2rem auto;
}

.content-page-card {
    padding: 2.5rem 3.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
}

.content-page section {
    padding: 1rem 0;
}

.content-page h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 900;
}

.content-page h2 {
    margin: 3rem 0 1.25rem;
    color: var(--text-main);
    font-size: 1.75rem;
}

.content-page p,
.content-page ul {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-page li {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page hr {
    border: 0;
    border-top: 1px solid var(--bg-card-border);
    margin: 1.5rem 0;
}

.manifest-label {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

/* Footer */
footer {
    padding: 0;
    border-top: 1px solid var(--bg-card-border);
    margin-top: 6rem;
}

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

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

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

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
    }
}