/* ============================================================
   GENSET PILOT — Landing / Public Pages
   ============================================================ */
:root {
    --brand:        #0DA5F1;
    --brand-dark:   #0a86c4;
    --brand-glow:   rgba(13,165,241,0.35);
    --bg:           #0a0d12;
    --bg-2:         #0f141c;
    --panel:        #141a24;
    --panel-2:      #1a2130;
    --border:       #223044;
    --text:         #eaeef6;
    --muted:        #8896ac;
    --ok:           #2fd483;
    --err:          #ff5c5c;
    --warn:         #ffb547;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Background aurora ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 15% -10%, rgba(13,165,241,0.18), transparent 60%),
        radial-gradient(ellipse 900px 600px at 90% 10%, rgba(13,165,241,0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10,13,18,0.7);
    border-bottom: 1px solid rgba(34,48,68,0.6);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-brand img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 9px 16px; border-radius: 8px; font-size: 0.92rem; color: var(--muted); transition: all 0.15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.cta {
    background: var(--brand); color: white; font-weight: 600;
    box-shadow: 0 4px 20px var(--brand-glow);
}
.nav-links a.cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
@media (max-width: 640px) {
    .nav-links a:not(.cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 10px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.18s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--brand); color: white;
    box-shadow: 0 8px 30px var(--brand-glow);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 36px var(--brand-glow); }
.btn-ghost {
    background: rgba(255,255,255,0.04); color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #2d3c52; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; text-align: center; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: rgba(13,165,241,0.1);
    border: 1px solid rgba(13,165,241,0.3);
    color: var(--brand); font-size: 0.82rem; font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}
.hero-badge .dot-pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 var(--brand-glow);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 var(--brand-glow); }
    70%  { box-shadow: 0 0 0 10px rgba(13,165,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,165,241,0); }
}
.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #b8c4d8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
    background: linear-gradient(180deg, var(--brand) 0%, #0678b8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--muted);
    max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Feature grid ---------- */
.features { padding: 60px 0 80px; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-title p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(13,165,241,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(13,165,241,0.1);
}
.feature-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13,165,241,0.2), rgba(13,165,241,0.05));
    border: 1px solid rgba(13,165,241,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ---------- How it works ---------- */
.how { padding: 60px 0 80px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step {
    text-align: center;
    padding: 32px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand); color: white;
    font-weight: 700; font-size: 1.05rem;
    margin-bottom: 18px;
    box-shadow: 0 0 0 6px rgba(13,165,241,0.15);
}
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
    margin: 40px 0 80px;
    padding: 56px 40px;
    text-align: center;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 600px 300px at 50% 0%, rgba(13,165,241,0.25), transparent 70%),
        linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
}
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-strip p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer a:hover { color: var(--brand); }

/* ---------- Forms (shared by signup/login/reset) ---------- */
.auth-wrap {
    min-height: calc(100vh - 68px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    font-family: inherit; font-size: 0.95rem;
    transition: all 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13,165,241,0.15);
}
.field textarea { min-height: 96px; resize: vertical; }

.btn-block { width: 100%; justify-content: center; }

.auth-footer {
    text-align: center; margin-top: 22px;
    font-size: 0.88rem; color: var(--muted);
}
.auth-footer a { color: var(--brand); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Alerts / flash ---------- */
.alert {
    padding: 14px 16px; border-radius: 10px;
    margin-bottom: 20px; font-size: 0.92rem;
    border: 1px solid;
}
.alert-info    { background: rgba(13,165,241,0.08);  border-color: rgba(13,165,241,0.3);  color: #7fc9f0; }
.alert-ok      { background: rgba(47,212,131,0.08);  border-color: rgba(47,212,131,0.3);  color: #7ee0ac; }
.alert-warn    { background: rgba(255,181,71,0.08);  border-color: rgba(255,181,71,0.3);  color: #ffce85; }
.alert-err     { background: rgba(255,92,92,0.08);   border-color: rgba(255,92,92,0.3);   color: #ff9b9b; }