/* ============================================
   PEPPER - Private Photo Vault
   Dark Theme | Primary: #8B008B
   ============================================ */

/* CSS Variables */
:root {
    --color-bg-primary: #0a0a0c;
    --color-bg-secondary: #121215;
    --color-bg-tertiary: #1a1a1f;
    --color-bg-card: #16161a;
    --color-accent: #8B008B;
    --color-accent-light: #a020a0;
    --color-accent-glow: rgba(139, 0, 139, 0.3);
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-text-muted: #6e6e73;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-glow: 0 0 60px var(--color-accent-glow);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, var(--color-bg-primary) 0%, transparent 100%);
    transition: background var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

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

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

.logo__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

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

.nav__link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-text-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__text {
    max-width: 540px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero__title {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

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

.hero__description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero__visual {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    color: var(--color-bg-primary);
}

.app-store-btn svg {
    width: 24px;
    height: 24px;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a30 0%, #1a1a1f 100%);
    border-radius: 44px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0a0a0c;
    border-radius: 20px;
    z-index: 10;
}

.phone-mockup__screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-mockup__placeholder {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
}

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

.features__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.features__header h2 {
    margin-bottom: 16px;
}

/* Star Rating */
.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.stars svg {
    width: 24px;
    height: 24px;
    color: #FFD700;
}

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

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    background: var(--color-bg-secondary);
    overflow: hidden;
}

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

.screenshots__header h2 {
    margin-bottom: 16px;
}

.screenshots__carousel {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px;
}

.screenshot {
    width: 220px;
    height: 440px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.screenshot:hover {
    transform: scale(1.02);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    gap: 8px;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.cta__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer__link:hover {
    color: var(--color-text-primary);
}

.footer__copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Legal Pages */
.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-page__header {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.legal-page__header h1 {
    margin-bottom: 12px;
}

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

.legal-content {
    max-width: 100%;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--color-text-secondary);
}

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

.legal-content a {
    color: var(--color-accent-light);
}

.legal-content a:hover {
    text-decoration: underline;
}

.placeholder-notice {
    background: var(--color-bg-tertiary);
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 40px;
    text-align: center;
}

.placeholder-notice p {
    color: var(--color-accent-light);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero__text {
        max-width: 100%;
    }
    
    .hero__badge {
        justify-content: center;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .features, .screenshots, .cta {
        padding: 80px 0;
    }
    
    .screenshots__carousel {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    
    .screenshot {
        scroll-snap-align: center;
        width: 200px;
        height: 400px;
    }
    
    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 420px;
        border-radius: 36px;
    }
    
    .phone-mockup__screen {
        border-radius: 28px;
    }
    
    .phone-mockup::before {
        width: 80px;
        height: 24px;
    }
}