/* ============================================================
   luca.click — shared design system
   Dark · subtle blue · minimalist & typographic · mono accents
   ============================================================ */

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

:root {
    /* surfaces */
    --bg:        #0a0b0d;
    --bg-1:      #0f1115;
    --bg-2:      #14171c;
    --bg-3:      #1a1e24;

    /* lines */
    --line:      rgba(255, 255, 255, 0.07);
    --line-2:    rgba(255, 255, 255, 0.12);
    --line-3:    rgba(255, 255, 255, 0.18);

    /* text */
    --fg:        #e9ebee;
    --fg-1:      #9ca1aa;
    --fg-2:      #686d77;

    /* accent — subtle blue */
    --accent:        #5b8cff;
    --accent-hi:     #7ba2ff;
    --accent-soft:   rgba(91, 140, 255, 0.10);
    --accent-line:   rgba(91, 140, 255, 0.35);

    /* status */
    --ok:        #46c98a;
    --warn:      #e0a448;
    --bad:       #e8645f;

    /* type */
    --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* shape */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;

    /* layout */
    --maxw: 1080px;
    --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* faint static texture — no animation, no orbs */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); color: var(--accent-hi); }

/* ---------- layout helpers ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 1px;
    background: var(--accent);
    display: inline-block;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }

.muted { color: var(--fg-1); }
.dim   { color: var(--fg-2); }
.mono  { font-family: var(--mono); }

/* ---------- navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 13, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-in {
    max-width: var(--maxw);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.brand .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 2px;
}
.brand .slash { color: var(--fg-2); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--fg-1);
    padding: 0.45rem 0.7rem;
    border-radius: var(--r-sm);
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--fg);
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #0a0b0d; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,0.03); }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    margin: 0.8rem 0 0.6rem;
}
.section-head p { color: var(--fg-1); font-size: 1.05rem; }

/* ---------- card ---------- */
.card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.18s ease, background 0.18s ease;
}
.card:hover { border-color: var(--line-2); background: var(--bg-2); }

/* ---------- forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-1);
    margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    padding: 0.75rem 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-2); }
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    margin-top: 32px;
}
.footer-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-copy { color: var(--fg-2); font-size: 0.8rem; font-family: var(--mono); }
.socials { display: flex; gap: 0.4rem; }
.socials a {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--fg-1);
    transition: all 0.15s ease;
}
.socials a:hover { color: var(--fg); border-color: var(--line-3); background: rgba(255,255,255,0.03); }
.socials svg { width: 16px; height: 16px; }
.socials svg:not(.lucide) { fill: currentColor; }
.socials svg.lucide { fill: none; stroke: currentColor; }

/* ---------- badges / pills ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: var(--fg-1);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
}
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }

/* ---------- brand mark + shared shell bits ---------- */
.brand-mark { width: 27px; height: 27px; display: block; flex-shrink: 0; }
.brand-word { display: inline-flex; }
.admin-tag {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    border: 1px solid var(--accent-line);
    border-radius: 6px;
    padding: 0.12rem 0.42rem;
    margin-left: 0.2rem;
}
.nav-links a.logout { color: var(--bad); }
.nav-links a.logout:hover { color: var(--bad); background: rgba(232,100,95,0.10); }
.nav-cta svg { width: 14px; height: 14px; }
/* default lucide icon: stroke, not fill */
svg.lucide { stroke-width: 2; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
    .nav-links { gap: 0.1rem; }
    .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
    .nav-cta { display: none; }
    .section { padding: 64px 0; }
    .wrap { padding: 0 20px; }
}
