/* ========================================
   SNAPOPIC LANDING PAGE — DESIGN SYSTEM
   ======================================== */

:root {
    --blue: #4285F4;
    --purple: #8243DB;
    --cyan: #14BED8;
    --green: #22c55e;
    --dark: #0a0a14;
    --dark-2: #12121f;
    --dark-3: #1a1a2e;
    --surface: #1e1e32;
    --border: rgba(255,255,255,0.06);
    --text: #e4e4f0;
    --text-muted: #8888a8;
    --font: 'Inter', -apple-system, system-ui, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.5);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ========================================
   NAV
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo { width: 36px; height: 36px; border-radius: 10px; }
.nav-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: white; }

.btn-nav {
    padding: 8px 20px !important;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 50px;
    color: white !important;
    font-weight: 600 !important;
}
.btn-nav:hover { opacity: 0.9; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all var(--transition); }

/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}
.orb-1 { width: 600px; height: 600px; background: var(--blue); top: -200px; right: -100px; animation: orbFloat 8s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: var(--purple); bottom: -150px; left: -100px; animation: orbFloat 10s ease-in-out infinite reverse; }
.orb-3 { width: 400px; height: 400px; background: var(--cyan); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: orbFloat 12s ease-in-out infinite; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Phone + floating cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.phone-frame {
    position: relative;
    z-index: 2;
    max-width: 360px;
    animation: floatPhone 6s ease-in-out infinite;
}
.phone-img {
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(30, 30, 50, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-1 { bottom: 28%; left: -16%; animation: floatCard 5s ease-in-out infinite; }
.card-2 { top: 22%; right: -12%; animation: floatCard 7s ease-in-out infinite reverse; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(66,133,244,0.1), rgba(130,67,219,0.1));
    border: 1px solid rgba(66,133,244,0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ========================================
   FEATURES
   ======================================== */

.features { padding: 120px 0; }

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

.feature-card {
    padding: 32px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(66, 133, 244, 0.2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ========================================
   HOW IT WORKS — NEW GRID & SIMULATOR
   ======================================== */

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
    padding: 24px;
    border-radius: var(--radius);
    transition: background var(--transition);
    cursor: pointer;
}

.step.active {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); /* Default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    transition: color var(--transition);
}
.step.active .step-content h3 { color: white; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; }

.step-connector {
    width: 2px;
    height: 32px;
    background: var(--border);
    margin-left: 51px;
}

/* Simulator Phone */
.demo-simulator {
    display: flex;
    justify-content: center;
}

.simulator-phone {
    width: 280px;
    height: 580px;
    position: relative;
}

.phone-case {
    width: 100%;
    height: 100%;
    background: #111;
    border: 8px solid #222;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0a0a14;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* App UI Inside Simulator */
.app-header {
    height: 60px;
    padding: 20px 16px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}
.app-mini-logo { width: 20px; height: 20px; border-radius: 5px; }

.header-icons { margin-left: auto; display: flex; gap: 4px; }
.icon-dot { width: 12px; height: 12px; background: rgba(255,255,255,0.1); border-radius: 50%; }

.simulator-state {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* State 1: Sign In */
.sign-in-box {
    margin-top: auto;
    margin-bottom: auto;
    background: white;
    color: #444;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}
.g-logo { color: var(--blue); font-weight: 900; }

/* State 2: Folders */
.folder-list h4 { font-size: 0.8rem; opacity: 0.5; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.active-folder {
    border: 1.5px solid var(--blue);
    background: rgba(66, 133, 244, 0.05);
}
.folder-check { margin-left: auto; color: var(--blue); font-weight: 800; }

/* State 3: Uploading */
.backup-btn-sim {
    height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.upload-progress-box {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}
.progress-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: #888; margin-bottom: 8px; }
.demo-progress-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.demo-progress-fill { width: 0%; height: 100%; background: var(--blue); border-radius: 3px; }

.photo-grid-sim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-dot { aspect-ratio: 1; background: rgba(255,255,255,0.03); border-radius: 4px; }

/* ========================================
   FAQ
   ======================================== */

.faq { padding: 120px 0; }

.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item[open] {
    border-color: rgba(66, 133, 244, 0.2);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--blue);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */

.cta { padding: 80px 0 120px; }

.cta-card {
    position: relative;
    padding: 80px 40px;
    text-align: center;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-orbs { position: absolute; inset: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; }
.cta-orb-1 { width: 300px; height: 300px; background: var(--blue); top: -100px; right: -50px; }
.cta-orb-2 { width: 250px; height: 250px; background: var(--purple); bottom: -80px; left: -50px; }

.cta-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.cta-card .btn { position: relative; z-index: 1; }

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo { 
    width: 28px; 
    height: 28px; 
    object-fit: contain;
    border-radius: 8px; 
}
.footer-name { font-weight: 700; font-size: 1.1rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}
.footer-brand-col { max-width: 300px; }
.footer-mission { 
    margin-top: 16px; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color var(--transition);
}
.footer-col a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.social-links { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.social-links span { cursor: pointer; transition: color var(--transition); }
.social-links span:hover { color: white; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 20px; }
    .floating-card { display: none; }
    
    .features-grid { grid-template-columns: 1fr 1fr; }

    /* How It Works Mobile Optimization */
    .how-it-works-grid {
        display: flex;
        flex-direction: column-reverse; /* Simulator on top */
        gap: 40px;
    }

    .demo-simulator {
        width: 100%;
        margin-bottom: 20px;
    }

    .steps {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 4px 24px;
        width: 100%;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
    }

    .step-connector { display: none; }
    
    .step-number { margin-bottom: 12px; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .cta-card { padding: 48px 24px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand-col { max-width: 100%; }
}
