/* ========================================
   1. CSS VARIABLES (CUSTOM PROPERTIES)
   ======================================== */
:root {
    /* Colors */
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-accent: #f59e0b;
    --color-success: #059669;
    --text-light: #f3e8ff;
    --text-dark: #1f2937;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #111827;
    --border-light: #e2e8f0;

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-xxl: 32px;

    /* Border & Shadow */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   2. GLOBAL RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px;
}

/* ========================================
   3. LAYOUT & CONTAINER
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ========================================
   4. ACCESSIBILITY
   ======================================== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 6px;
    background: var(--color-primary);
    color: var(--bg-light);
    padding: var(--spacing-sm);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}
/* ========================================
   5. HEADER & NAVIGATION (Corrected)
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--bg-light);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* FIX #1: Added styles for the image */
.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

.logo-icon img {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space and ensures proper alignment */
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Common properties for both gradient text elements */
.logo h1 span {
    display: inline-block;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FIX #2: Changed 'color' to 'background' */
.logo-text-tipping {
    background:  #693C91 ;
}

.logo-text-point {
    background: #FBAF29;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--bg-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    font-weight: 600;
}

/* ========================================
   6. HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--border-light) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-light);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 1.2rem;
}

/* ========================================
   7. CONTENT SECTIONS & CARDS
   ======================================== */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: var(--bg-soft);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.version-info {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--bg-light);
    padding: var(--spacing-lg) 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.policy-content,
.safety-content,
.permissions-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.policy-content h3,
.safety-content h3,
.permissions-content h3,
.contact-content h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.policy-content ul,
.safety-content ul,
.permissions-content ul,
.contact-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* Generic Content Card */
.content-card {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.safety-card {
    animation: fadeInUp 0.6s ease forwards;
}
.safety-card:nth-child(1) { animation-delay: 0.1s; }
.safety-card:nth-child(2) { animation-delay: 0.2s; }
.safety-card:nth-child(3) { animation-delay: 0.3s; }
.safety-card:nth-child(4) { animation-delay: 0.4s; }

.safety-card p:first-of-type {
    font-weight: 600;
    color: var(--color-success);
}

.permission-item,
.permission-detail {
    margin-bottom: 1.5rem;
    border-left-color: var(--color-accent);
}

.permission-item h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========================================
   8. FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1f2937, var(--bg-dark));
    color: var(--bg-light);
    padding: 3rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--bg-light);
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    text-align: right;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ========================================
   9. ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   10. MEDIA QUERIES
   ======================================== */

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e5e7eb;
        --text-muted: #9ca3af;
        --bg-light: #1f2937;
        --bg-soft: #111827;
        --bg-dark: #000000;
        --border-light: #374151;
        --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .hero-content h2,
    .logo h1 {
        background: linear-gradient(45deg, var(--color-primary), var(--text-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .safety-grid, .contact-info {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    .footer-copyright {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    .section, .hero {
        padding: 2rem 0;
    }
    .policy-content,
    .safety-content,
    .permissions-content,
    .contact-content {
        padding: 1.5rem;
    }
}

/* Print */
@media print {
    .header, .footer, .skip-link {
        display: none;
    }
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background-color: #fff;
    }
    .section {
        page-break-inside: avoid;
    }
}