@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ============================================================
   flexi-io.com — concept / disambiguation site for Fleksi.io
   Palette mirrors the Fleksi app design tokens.
   ============================================================ */
:root {
    --bg: #eef2ff;
    --paper: #f8fbff;
    --paper-strong: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --line: #d9e2f2;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: #dbeafe;
    --shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.12);
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-body: "Inter", "Noto Sans", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0b1527;
        --paper: #0f1a2f;
        --paper-strong: #14233f;
        --ink: #e2e8f0;
        --muted: #94a3b8;
        --line: #334155;
        --accent: #60a5fa;
        --accent-strong: #3b82f6;
        --accent-soft: #1e3a5f;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    z-index: 10;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.brand__name { font-weight: 700; font-size: 18px; }
.brand__name span { color: var(--muted); font-weight: 500; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .08s ease, background .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--accent-strong); border-color: var(--line); }
.btn--ghost:hover { background: var(--accent-soft); }

/* ---- Sections ---- */
section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; margin: 0 0 28px; }

/* ---- Hero ---- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero__note strong { color: var(--ink); }

/* ---- Cards ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.card {
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.card__icon {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 22px;
    margin-bottom: 14px;
}

/* ---- Panel (alt background) ---- */
.panel { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- FAQ ---- */
.faq { max-width: 720px; }
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn--primary { background: #fff; color: var(--accent-strong); }
.cta-band .btn--primary:hover { background: #f1f5ff; }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    color: var(--muted);
    font-size: .95rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); }
