/* =============================================
   AcalaStudio Marketing Site — Design System
   ============================================= */

:root {
    --brand-primary: #007bff;
    --brand-primary-dark: #0062cc;
    --brand-accent-soft: #e8f2ff;
    --brand-gradient-hero: linear-gradient(135deg, #0b3d78 0%, #007bff 55%, #4dabf7 100%);
    --brand-gradient-auth: linear-gradient(180deg, #3949ab, #2962ff);
    --brand-bg: #f5f6fa;
    --brand-text: #1f2937;
    --brand-muted: #6c757d;
    --brand-success: #198754;
    --brand-border: #e3e8ef;
    --brand-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --brand-radius: 14px;
    --nav-height: 72px;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--brand-text);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Buttons ---- */

.btn-brand {
    background: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    transition: all 0.25s ease;
}

.btn-brand:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.35);
}

.btn-outline-brand {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    transition: all 0.25s ease;
}

.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    transition: all 0.25s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--brand-primary);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    transition: all 0.25s ease;
}

.btn-light:hover {
    background: var(--brand-accent-soft);
    color: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* ---- Navbar ---- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-nav.scrolled .nav-wordmark {
    color: var(--brand-text);
}

.site-nav.scrolled .nav-link {
    color: var(--brand-muted);
}

.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.active {
    color: var(--brand-primary);
}

.site-nav.scrolled .nav-toggle span {
    background: var(--brand-text);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.nav-wordmark {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */

.hero {
    position: relative;
    background: var(--brand-gradient-hero);
    color: #fff;
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero-bg-circle--1 {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -5%;
}

.hero-bg-circle--2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -3%;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Visual Mockup */

.hero-visual {
    position: relative;
    height: 380px;
}

.hero-card {
    position: absolute;
    background: #fff;
    border-radius: var(--brand-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.hero-card--back {
    width: 85%;
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-3deg);
}

.hero-card--front {
    width: 75%;
    bottom: 0;
    right: 0;
    z-index: 2;
    transform: rotate(2deg);
}

.hero-card-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--brand-bg);
    border-bottom: 1px solid var(--brand-border);
}

.hero-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
}

.hero-card-dot:first-child { background: #ff5f57; }
.hero-card-dot:nth-child(2) { background: #febc2e; }
.hero-card-dot:nth-child(3) { background: #28c840; }

.hero-card-body {
    padding: 1.25rem;
}

.hero-stat-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-stat {
    flex: 1;
    background: var(--brand-bg);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}

.hero-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--brand-muted);
    font-weight: 500;
}

.hero-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.hero-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 0 0.5rem;
}

.hero-chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--brand-primary), #4dabf7);
    border-radius: 4px 4px 0 0;
    opacity: 0.85;
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px;
}

.hero-gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
}

.hero-gallery-item--1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.hero-gallery-item--2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.hero-gallery-item--3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.hero-gallery-item--4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.hero-gallery-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    background: var(--brand-bg);
    font-size: 0.8rem;
    color: var(--brand-muted);
    border-top: 1px solid var(--brand-border);
}

.hero-gallery-footer i {
    color: var(--brand-success);
}

/* ---- Trust Strip ---- */

.trust-strip {
    padding: 3rem 0;
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    font-size: 1.25rem;
    color: var(--brand-primary);
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-text);
}

.trust-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--brand-muted);
}

/* ---- Sections ---- */

.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--brand-bg);
}

.section-header {
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--brand-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Feature Cards ---- */

.feature-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-card-shadow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon i {
    font-size: 1.4rem;
    color: var(--brand-primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.65;
}

/* ---- Steps Timeline ---- */

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--brand-border);
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---- Gallery Mockup ---- */

.gallery-mockup {
    background: #fff;
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-card-shadow);
    overflow: hidden;
    border: 1px solid var(--brand-border);
}

.gallery-mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 16px;
    background: var(--brand-bg);
    border-bottom: 1px solid var(--brand-border);
}

.gallery-mockup-dots {
    display: flex;
    gap: 5px;
}

.gallery-mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
}

.gallery-mockup-dots span:first-child { background: #ff5f57; }
.gallery-mockup-dots span:nth-child(2) { background: #febc2e; }
.gallery-mockup-dots span:nth-child(3) { background: #28c840; }

.gallery-mockup-url {
    font-size: 0.75rem;
    color: var(--brand-muted);
    background: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--brand-border);
}

.gallery-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}

.gallery-mockup-photo {
    aspect-ratio: 1;
    border-radius: 4px;
}

.gallery-mockup-photo:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); }
.gallery-mockup-photo:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gallery-mockup-photo:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gallery-mockup-photo:nth-child(4) { background: linear-gradient(135deg, #fa709a, #fee140); }
.gallery-mockup-photo:nth-child(5) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.gallery-mockup-photo:nth-child(6) { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.gallery-mockup-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--brand-bg);
    border-top: 1px solid var(--brand-border);
    font-size: 0.8rem;
    color: var(--brand-muted);
}

.gallery-mockup-bar i {
    margin-right: 4px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--brand-text);
}

.check-list i {
    color: var(--brand-success);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ---- Report Pills ---- */

.report-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.report-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-text);
    transition: all 0.25s ease;
}

.report-pill:hover {
    border-color: var(--brand-primary);
    background: var(--brand-accent-soft);
    transform: translateY(-2px);
}

.report-pill i {
    color: var(--brand-primary);
    font-size: 1rem;
}

/* ---- FAQ ---- */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--brand-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--brand-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-text);
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--brand-primary);
}

.faq-question i {
    font-size: 1rem;
    color: var(--brand-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    font-size: 0.925rem;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.7;
}

/* ---- CTA Banner ---- */

.cta-banner {
    position: relative;
    background: var(--brand-gradient-hero);
    color: #fff;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-bg-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -30%;
    right: -5%;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ---- Footer ---- */

.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand .nav-wordmark {
    color: #fff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 360px;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Scroll Reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.85rem 0;
        color: var(--brand-text);
        font-size: 1.05rem;
        border-bottom: 1px solid var(--brand-border);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--brand-primary);
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .site-nav.scrolled .nav-wordmark {
        color: var(--brand-text);
    }

    .hero-visual {
        height: 320px;
        margin-top: 1rem;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .steps-timeline::before {
        display: none;
    }

    .step-item {
        display: flex;
        text-align: left;
        gap: 1.25rem;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding-bottom: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        height: 280px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
