/* ============================================================
   Rilovane marketing site — base stylesheet
   Edit the CSS custom properties below to match your brand.
   ============================================================ */

:root {
    --color-bg: #0f1115;
    --color-bg-alt: #161a21;
    --color-surface: #1d222b;
    --color-text: #e8eaed;
    --color-text-muted: #a0a6b0;
    --color-accent: #4f8cff;
    --color-accent-hover: #3a79f0;
    --color-border: #2a303a;

    --max-width: 1120px;
    --radius: 14px;
    --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    text-align: center;
}
.btn-sm  { padding: 8px 18px;  font-size: .9rem; }
.btn-lg  { padding: 14px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); font-weight: 700; }
.brand-logo { width: 28px; height: 28px; }
.brand-name { font-size: 1.15rem; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--color-text-muted); font-weight: 500; }
.site-nav a:hover { color: var(--color-text); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.lead { font-size: 1.2rem; color: var(--color-text-muted); max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero-meta { color: var(--color-text-muted); font-size: .95rem; }
.hero-art img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.section-subtitle { text-align: center; color: var(--color-text-muted); margin-top: -0.25em; }

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 36px;
}
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--color-text-muted); margin: 0; }

/* ---------- Modules ---------- */
.module-list {
    list-style: none;
    padding: 0;
    margin: 36px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.module-list li {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    color: var(--color-text-muted);
}

/* ---------- Download ---------- */
.download-block { text-align: center; }
.download-card {
    max-width: 480px;
    margin: 32px auto 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.download-info { display: flex; flex-direction: column; gap: 4px; }
.download-os { font-weight: 600; }
.download-version { color: var(--color-text-muted); font-size: .95rem; }
.download-note { color: var(--color-text-muted); font-size: .9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 16px 20px;
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { color: var(--color-text-muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 36px 0; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--color-text-muted); }
.footer-nav a:hover { color: var(--color-text); }
.footer-copy { color: var(--color-text-muted); font-size: .9rem; width: 100%; margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .site-nav { display: none; }
}
