/* Simple, modern landing CSS for RuiCam */
:root {
    --bg: #0b0b0b;
    --panel: #0f1720;
    --accent: #00d1b2;
    --muted: rgba(255, 255, 255, 0.75);
}
* {
    box-sizing: border-box;
}
html,
body {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #050608 0%, #0b0b0b 60%);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}
.hero {
    padding: 64px 20px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.05)
    );
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    margin-left: auto;
}
.logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #0066ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
h1 {
    margin: 0;
    font-size: 28px;
}
.tag {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.lead {
    margin: 18px 0 24px;
    color: var(--muted);
    max-width: 750px;
}
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.btn.primary {
    background: var(--accent);
    color: #021;
    display: inline-block;
}
.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}
.quick-info {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}
.section {
    padding: 56px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.features article {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 18px;
    border-radius: 10px;
}
.features h3 {
    margin: 0 0 8px;
}
.screenshot-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}
.phone-mock {
    width: 600px;
    flex: 0 0 600px;
}
.camera-frame {
    background: linear-gradient(180deg, #0b1220, #061018);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}
.cam-placeholder {
    height: 360px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b1420, #002233);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    overflow: hidden;
}
.cam-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.text {
    max-width: 560px;
}
.text h3 {
    margin-top: 0;
}
.faq details {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}
.site-footer {
    padding: 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 13px;
    /* position: relative; */
    z-index: 0;
}

/* Footer link styling for dark background */
.site-footer a {
    color: #ffffff;
    text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
    opacity: 0.95;
}
.section.opinions {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    padding: 32px 20px;
    border-radius: 12px;
    margin-top: 28px;
    margin-bottom: 32px;
}
.section.opinions h2 {
    margin-top: 0;
    font-size: 22px;
}
.btn.primary {
    background: var(--accent);
    color: #021;
}

.support-row {
    margin-top: 24px;
}
.support-text {
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 14px;
}
.comment-form {
    max-width: 700px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.01)
    );
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    color: #fff;
}
.comment-form-container {
    /* position: relative; */
    z-index: 0;
}
.comment-form div {
    margin-bottom: 10px;
}
.comment-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--muted);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-size: 14px;
}
.comment-form textarea {
    resize: vertical;
}
.comment-form .btn {
    padding: 10px 14px;
    border-radius: 8px;
}
.comment-success {
    max-width: 700px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
    padding: 14px;
    border-radius: 10px;
    color: #bfeee0;
}

@media (max-width: 700px) {
    .comment-form,
    .comment-success {
        width: 100%;
    }
}
@media (max-width: 800px) {
    .screenshot-inner {
        flex-direction: column;
    }
    .phone-mock {
        width: 300px;
    }
    h1 {
        font-size: 22px;
    }
}

/* Improved responsive adjustments */
@media (max-width: 700px) {
    .hero {
        padding: 32px 12px;
    }
    .hero-inner,
    .section {
        padding: 0;
        margin: 0 12px;
    }
    .logo {
        width: 48px;
        height: 48px;
    }
    .lead {
        font-size: 15px;
    }
    .cta-row {
        flex-direction: column;
        gap: 10px;
    }
    .cta-row .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .phone-mock {
        width: 300px;
        flex: 0 0 300px;
    }
    .cam-placeholder {
        height: 180px;
    }
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    .tag {
        font-size: 13px;
    }
    .lead {
        font-size: 14px;
    }
    .features .grid {
        grid-template-columns: 1fr;
    }
    .phone-mock {
        width: 180px;
        flex: 0 0 180px;
    }
    .cam-placeholder {
        height: 140px;
    }
}
