/* ============================================
   SnapShot — Layout System
   Header, navigation, hero, sections, footer,
   download, product shots, how-it-works, utils
   ============================================ */

/* ============================================
   Header
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.site-logo-image {
    width: 36px;
    height: 36px;
}

.site-logo-text {
    font-size: 1.375rem;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

.nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-primary a:not(.nav-cta) {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 150ms;
}

.nav-primary a:not(.nav-cta):hover {
    color: #f5f5f5;
}

.nav-primary a.active {
    color: #f5f5f5;
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--duration-base) var(--ease);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: var(--space-3);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mobile-menu .btn {
    justify-content: center;
    margin-top: var(--space-2);
}

@media (max-width: 768px) {
    .nav-primary {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    padding: var(--space-12) 0 var(--space-9);
    text-align: center;
    position: relative;
}

/* Remove trailing margin when subtitle is last element in hero (no badges etc.) */
.hero-section .hero-subtitle:last-child {
    margin-bottom: 0;
}

/* Uniform hero → content section transition across all pages */
.hero-section + .section {
    padding-top: var(--space-8);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    color: #60a5fa;
    font-size: 0.6875rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-6);
}

.hero-title {
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.375rem;
    line-height: var(--leading-normal);
    margin-bottom: var(--space-12);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}

.compliance-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

.compliance-badges img {
    height: 48px;
    width: auto;
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-8) 0 var(--space-6);
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .compliance-badges {
        gap: var(--space-4);
    }

    .compliance-badges img {
        height: 40px;
    }
}

/* ============================================
   Section Backgrounds
   ============================================ */

.section-bg-secondary {
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-bg-elevated {
    background: var(--color-bg-elevated);
}

.section-bg-gradient {
    background: var(--color-bg-inverse);
    color: var(--color-text-inverse);
}

/* ============================================
   Product Screenshot Sections
   ============================================ */

.product-shot-section {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.product-shot-section:nth-child(even) {
    flex-direction: row-reverse;
}

.product-shot-content {
    flex: 1;
    min-width: 0;
}

.product-shot-content h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.product-shot-content p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: var(--leading-relaxed);
}

.product-shot-image {
    flex: 1;
    min-width: 0;
}

.product-shot-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
    .product-shot-section,
    .product-shot-section:nth-child(even) {
        flex-direction: column;
        gap: var(--space-8);
    }
}

/* ============================================
   How It Works Flow
   ============================================ */

.how-it-works-flow {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
}

.flow-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
}

.flow-step-content {
    flex: 1;
    min-width: 0;
}

.flow-step-content h3 {
    font-size: var(--text-h4);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.flow-step-content p {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* ============================================
   Download Section
   ============================================ */

.download-section {
    text-align: center;
    padding: var(--space-12) 0;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-10);
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-9) var(--space-7);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.download-card-icon {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-5);
}

.download-card-icon img {
    width: 100%;
    height: 100%;
}

.download-card h3 {
    font-size: var(--text-h3);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.download-card p {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.download-card-status {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.download-card-status.available {
    background: rgba(16, 185, 129, 0.10);
    color: #34d399;
}

.download-card-status.coming-soon {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-tertiary);
}

/* ============================================
   Screenshot Window Frame
   ============================================ */

.screenshot-window {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-screenshot);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-window:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.10);
}

.screenshot-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.screenshot-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.screenshot-window-dot.dot-red    { background: #ff5f57; }
.screenshot-window-dot.dot-yellow { background: #febc2e; }
.screenshot-window-dot.dot-green  { background: #28c840; }

.screenshot-window img {
    width: 100%;
    height: auto;
    display: block;
}

.download-card .btn {
    width: 100%;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-10) 0 var(--space-6);
    color: var(--color-text-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-section h4 {
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: var(--text-small);
    transition: color var(--duration-fast) var(--ease);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.90);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.30);
    font-size: var(--text-small);
    margin: var(--space-1) 0;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* ============================================
   CTA Button Groups
   ============================================ */

.cta-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.mt-sm  { margin-top: var(--space-2); }
.mt-md  { margin-top: var(--space-4); }
.mt-lg  { margin-top: var(--space-6); }
.mt-xl  { margin-top: var(--space-8); }
.mt-2xl { margin-top: var(--space-10); }
.mt-3xl { margin-top: var(--space-12); }

.mb-sm  { margin-bottom: var(--space-2); }
.mb-md  { margin-bottom: var(--space-4); }
.mb-lg  { margin-bottom: var(--space-6); }
.mb-xl  { margin-bottom: var(--space-8); }
.mb-2xl { margin-bottom: var(--space-10); }
.mb-3xl { margin-bottom: var(--space-12); }

.mb-0   { margin-bottom: 0; }

.opacity-60    { opacity: 0.6; }
.w-full        { width: 100%; }
.block         { display: block; }
.hidden        { display: none; }
.not-italic    { font-style: normal; }
.leading-relaxed { line-height: 1.75; }

.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.mx-auto   { margin-left: auto; margin-right: auto; }

.text-success { color: var(--color-success); }
.text-danger  { color: var(--color-danger); }
.text-error   { color: var(--color-danger); }

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-bold { font-weight: var(--weight-semibold); }

.bg-elevated { background: var(--color-bg-elevated); }
.border      { border: 1px solid var(--color-border); }

.text-white { color: rgba(255, 255, 255, 0.92); }
.bg-white   { background: var(--color-bg-primary); }

.text-white-bordered {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.15);
}

.final-cta-title {
    font-size: var(--text-h1);
    margin-bottom: var(--space-4);
}

.final-cta-description {
    margin-bottom: var(--space-8);
}

.download-note {
    margin-top: var(--space-10);
    color: var(--color-text-secondary);
}
