/* 
  SnapFill - Premium Dark Mode Landing Page 
  Designed with Obsidian Flux aesthetics in mind.
*/

:root {
    /* Color Palette */
    --bg-base: #0B0E14;
    --bg-surface: #151A22;
    --bg-surface-elevated: #1E2532;
    
    --primary: #00FF88; /* Vibrant Neon Green */
    --primary-dark: #00CC6A;
    --secondary: #00F0FF; /* Cyan Accent */
    
    --text-main: #F2F5F8;
    --text-muted: #9BA4B5;
    
    --glow-color: rgba(0, 255, 136, 0.15);
    
    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-max: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #FFFFFF;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
}

/* Base Components */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-base);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    background-color: #00E67A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.feature-bullets {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    font-weight: 500;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.check {
    color: var(--primary);
    font-weight: bold;
    margin-right: 4px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.device-cluster {
    position: relative;
    width: 420px;
    height: 550px;
    perspective: 1200px;
    transform-style: preserve-3d;
    z-index: 2;
}

.app-screen {
    position: absolute;
    width: 220px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 6px #1A1F2B, inset 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: floatMulti 8s ease-in-out infinite;
}

.app-screen:hover {
    filter: brightness(1.1);
}

.pos-back-left {
    top: 0px;
    left: 0;
    transform: translateZ(-100px) rotateY(20deg) rotateX(5deg);
    opacity: 0.5;
    animation-delay: 0s;
}

.pos-back-right {
    top: 40px;
    right: 0;
    transform: translateZ(-50px) rotateY(-15deg) rotateX(2deg);
    opacity: 0.75;
    animation-delay: -2.5s;
}

.pos-front {
    top: 80px;
    left: 50%;
    margin-left: -125px; /* Offset to center */
    width: 250px; /* Slightly larger front screen */
    transform: translateZ(50px);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 8px #1A1F2B, 0 0 40px rgba(0, 255, 136, 0.4);
    animation-delay: -5s;
}

@keyframes floatMulti {
    0% { transform: translateY(0px) scale(var(--scale, 1)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(var(--tz, 0px)); }
    50% { transform: translateY(-15px) scale(var(--scale, 1)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(var(--tz, 0px)); }
    100% { transform: translateY(0px) scale(var(--scale, 1)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(var(--tz, 0px)); }
}

/* Base transforms for animation to inherit */
.pos-back-left { --scale: 1; --ry: 20deg; --rx: 5deg; --tz: -100px; }
.pos-back-right { --scale: 1; --ry: -15deg; --rx: 2deg; --tz: -50px; }
.pos-front { --scale: 1; --ry: 0deg; --rx: 0deg; --tz: 50px; }

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Features Grid */
.features {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-base);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

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

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

/* Privacy Policy & Support */
.privacy-section, .support-section {
    padding: 100px 0;
}

.glass-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.policy-content h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.policy-content p {
    margin-bottom: 30px;
    color: #DEE4ED;
}

.policy-content p:last-child {
    margin-bottom: 0;
}

/* Support Box */
.support-box {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
}

.support-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.support-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    background-color: var(--bg-base);
}

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

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .feature-bullets {
        justify-content: center;
    }
    
    .device-cluster {
        margin-top: 20px;
        transform: scale(0.85); /* scale down the 3D container */
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

    .device-cluster {
        transform: scale(0.65); /* smaller for mobile */
    }
    
    .glass-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
