/* I Want Your Service — public/brand stylesheet
 * Light theme, modern sans, violet accent.
 * Distinct from intelligent-party's editorial ochre — this reads as a tools brand.
 */

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

:root {
    --bg: #FAFAFA;
    --bg-alt: #F4F4F5;
    --bg-card: #FFFFFF;
    --border: #E4E4E7;
    --border-strong: #D4D4D8;

    --text: #0A0A0A;
    --text-muted: #52525B;
    --text-subtle: #71717A;

    --accent: #6D28D9;
    --accent-hover: #5B21B6;
    --accent-soft: #EDE9FE;
    --accent-text: #4C1D95;

    --positive: #047857;
    --warn: #B45309;

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    --font-sans: "Inter", -apple-system, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.container { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header ------------------------------------------------------- */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(140%) blur(8px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
}
.nav-links { display: flex; gap: 1.4rem; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 120ms ease;
    text-decoration: none;
    line-height: 1;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; text-decoration: none; }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--text-muted); text-decoration: none; }

/* ---- Hero --------------------------------------------------------- */
.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1.2rem;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.55;
}
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---- Section ------------------------------------------------------ */
section { padding: 3rem 0; }
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1.2rem;
}

/* ---- Product cards ----------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 150ms, transform 150ms;
}
.product:hover { border-color: var(--accent); }
.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.product h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.product .status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
}
.product .status.coming { background: var(--bg-alt); color: var(--text-subtle); }
.product p { color: var(--text-muted); margin: 0.3rem 0 1rem; font-size: 0.95rem; }

/* ---- Privacy callout ---------------------------------------------- */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin: 2rem 0;
}
.callout strong { font-weight: 600; }

/* ---- Code block --------------------------------------------------- */
pre.code {
    background: #18181B;
    color: #F4F4F5;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.5;
}
pre.code .tag { color: #C4B5FD; }
pre.code .attr { color: #93C5FD; }
pre.code .str { color: #FCD34D; }

/* ---- Footer ------------------------------------------------------- */
.site-footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 0.88rem;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- Auth form ---------------------------------------------------- */
.auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.4rem; margin: 0 0 1.4rem; font-weight: 700; }
.auth-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0.9rem 0 0.35rem;
}
.auth-card input[type="text"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 100ms;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-card .btn-primary { width: 100%; justify-content: center; margin-top: 1.4rem; }
.auth-card .errornote, .auth-card .errorlist {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    list-style: none;
}
