/* Camera Controller Universal — website styles */

:root {
    --color-primary: #1a6fb5;
    --color-primary-dark: #145a94;
    --color-accent: #2a9d5c;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-text: #2c3e50;
    --color-text-light: #5a6b7d;
    --color-border: #e1e5eb;
    --max-width: 960px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* --- Navigation --- */

nav {
    background: var(--color-primary);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

nav .logo img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
}

nav .nav-links a:hover {
    color: #fff;
}

/* --- Sections --- */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-alt .section {
    padding: 3rem 1.5rem;
}

/* --- Hero --- */

.hero {
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.hero-icon {
    width: 360px;
    height: 360px;
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Before / After --- */

.before-after {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.before-after .frame {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    text-align: center;
}

.before-after .frame img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.before-after .frame .caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.arrow {
    font-size: 2rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* --- Flow steps (before / edit / after) --- */

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
}

.flow-step {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.flow-step img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.flow-step .caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* --- CTA button --- */

.cta {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s;
}

.cta:hover {
    background: var(--color-primary-dark);
}

.cta-row {
    text-align: center;
    margin: 2rem 0;
}

.cta-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --- Features grid --- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* --- Screenshots --- */

.screenshots {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    overflow-x: auto;
    padding: 1rem 1.5rem 1.5rem;
}

.screenshots img {
    max-height: 360px;
    width: auto;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* --- Content pages (story, support, privacy) --- */

.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.content p {
    margin-bottom: 1rem;
}

.content ul, .content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.4rem;
}

.content a {
    color: var(--color-primary);
}

/* --- Footer --- */

footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

footer a {
    color: var(--color-primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-layout {
        flex-direction: column;
    }

    .hero-icon {
        width: 200px;
        height: 200px;
    }

    .hero-text {
        text-align: center;
    }

    .before-after {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    nav .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
}
