/* 
  FredCam - Website Design System & Core Styles
  Aesthetic: Premium Light & Minimalistic
*/

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

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F0F2F5;
    
    --text-primary: #1A1D20;
    --text-secondary: #5C646C;
    --text-muted: #8E98A2;
    
    --accent-color: #2F3E46; /* Minimalist charcoal slate */
    --accent-gold: #D4AF37;  /* High-end camera amber/gold accent */
    --accent-light: rgba(47, 62, 70, 0.05);
    
    --border-color: rgba(0, 0, 0, 0.06);
    --border-color-hover: rgba(0, 0, 0, 0.12);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Layout */
    --max-width: 1100px;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    border: 1px solid var(--text-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

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

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

/* Mockup Display */
.viewfinder-mockup {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.viewfinder-mockup:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.mockup-inner {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #0E0F11;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Viewfinder Graphic Components (Light Minimal Mockup) */
.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: saturate(1.05) contrast(1.02);
}

.viewfinder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    font-family: var(--font-body);
    color: #FFFFFF;
}

.top-bar-overlay {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    opacity: 0.9;
}

.overlay-badge {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.focus-box {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 1.5px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    opacity: 0.85;
}

.focus-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.bottom-bar-overlay {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.camera-stats {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-family: monospace;
    opacity: 0.95;
}

.active-preset-badge {
    background: rgba(212, 175, 55, 0.85);
    color: #0E0F11;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

/* Feature Grid */
.features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

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

/* Interactive Split Showcase */
.showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-content h2 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.showcase-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bullet-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bullet-icon {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.bullet-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.bullet-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Interactive Presets Carousel */
.slider-showcase {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: 4rem;
}

.slider-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.slider-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.slider-group {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slider-row {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    align-items: center;
    gap: 1.5rem;
}

.slider-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    outline: none;
    transition: var(--transition-fast);
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    font-family: monospace;
    font-size: 0.9rem;
    text-align: right;
    color: var(--text-primary);
}

/* Legal & Text Layouts (Imprint, Privacy, Support) */
.text-layout {
    padding-top: 10rem;
    padding-bottom: 8rem;
    max-width: 800px;
    margin: 0 auto;
}

.text-layout h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

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

.text-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.text-content li {
    margin-bottom: 0.5rem;
}

.privacy-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

/* Support Page Layout */
.support-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--text-primary);
    background-color: var(--bg-secondary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    display: none;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    display: block;
    border-top-color: var(--border-color);
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--text-primary);
}

/* Status Messages */
.form-status {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
}

.form-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: block;
}

.form-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: block;
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 250px;
    color: var(--text-secondary);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.footer-link:hover {
    color: var(--text-primary);
    padding-left: 2px;
}

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

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    
    .section { padding: 5rem 0; }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .nav-menu {
        display: none; /* Mobile navigation toggle logic in JS */
        flex-direction: column;
        position: absolute;
        top: 72px; /* Positioned directly below the header */
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
        gap: 1.5rem;
        align-items: center;
        box-shadow: var(--shadow-md);
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
}
