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

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(17, 25, 40, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #10b981; /* WhatsApp Emerald */
    --primary-glow: rgba(16, 185, 129, 0.15);
    --secondary: #06b6d4; /* Tech Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.15);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #a7f3d0;
    --error: #ef4444;
    --success: #10b981;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Gradients */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(circle at 50% -100px, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 800px;
    background: radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.02) 60%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Typography styles */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navigation */
header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(9, 13, 22, 0.7);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #040810;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45), 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Mobile nav toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.stat-item h4 {
    font-size: 1.8rem;
    color: var(--text-main);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Glassmorphism Card style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Dynamic Interactive Storage Analyzer Widget */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.analyzer-widget {
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.widget-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.widget-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 14;
}

.circle-progress {
    fill: none;
    stroke: url(#cyan-emerald-grad);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 565.48; /* 2 * PI * r (r=90) */
    stroke-dashoffset: 141.37; /* Initial 75% full (dashoffset = 565.48 * (1 - 0.75)) */
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-text h2 {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.circle-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.storage-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.breakdown-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.color-whatsapp { background-color: var(--primary); }
.color-others { background-color: var(--secondary); }

.breakdown-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
}

.breakdown-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-clean {
    width: 100%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-clean:hover {
    background: var(--primary);
    color: #040810;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-clean.cleaned {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    cursor: default;
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Diagnostics / Verification Section */
.verification {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.03) 50%, transparent);
}

.verify-card {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.verify-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.verify-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.verify-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.verify-left h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.verify-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.code-box-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.code-box {
    background-color: rgba(4, 8, 16, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-main);
    overflow-x: auto;
}

.code-box code {
    white-space: nowrap;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-copy:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.verify-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1.2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-detail h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-detail p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Legal Pages Styling (used in privacy.html / terms.html) */
.legal-page {
    padding-top: 150px;
    padding-bottom: 100px;
}

.legal-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

.legal-card h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--primary);
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

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

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

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background-color: rgba(4, 8, 16, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-about h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Grid / Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .verify-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none; /* Hide standard nav on mobile */
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(9, 13, 22, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
    }
    
    nav.open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .legal-card {
        padding: 24px;
    }
    
    .legal-card h1 {
        font-size: 2rem;
    }
}

/* Svg Icons inside buttons/links */
.icon {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
}
