/* Public marketing landing. Self-contained light palette, independent of the
   in-app MudBlazor theme. Scoped under .nw-landing so it never leaks into the app. */
.nw-landing {
    --bg: #ffffff;
    --surface: #f7f8fb;
    --surface-2: #eef0f5;
    --text: #15181f;
    --muted: #586073;
    --faint: #9aa1ad;
    --border: #e7e9ef;
    --accent: #4f46e5;
    --accent-2: #6366f1;
    --accent-soft: #eef0ff;
    --green: #16a34a;
    --amber: #c2780c;
    --blue: #2563eb;
    --purple: #7c3aed;
    --pink: #db2777;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
    --shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);

    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.nw-landing *, .nw-landing *::before, .nw-landing *::after { box-sizing: border-box; }
.nw-landing a { text-decoration: none; color: inherit; }
.nw-landing ::selection { background: var(--accent-soft); }
.nw-mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- nav ---------- */
.nw-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nw-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 30px; }
.nw-brand { display: flex; align-items: center; gap: 10px; }
.nw-logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; }
.nw-brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.nw-nav-links { display: flex; align-items: center; gap: 26px; margin-left: 10px; }
.nw-nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nw-nav-links a:hover { color: var(--text); }
.nw-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nw-login { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 6px; }
.nw-login:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.nw-btn-primary { background: var(--accent); color: #fff; font-weight: 600; border-radius: 9px; box-shadow: var(--shadow); border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nw-btn-primary:hover { background: var(--accent-2); }
.nw-btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nw-btn-secondary:hover { background: var(--surface-2); }
.nw-nav-cta { padding: 10px 16px; font-size: 14px; border-radius: 9px; }

/* ---------- hero ---------- */
.nw-hero { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, var(--accent-soft), transparent 60%); }
.nw-hero-inner { max-width: 1080px; margin: 0 auto; padding: 78px 28px 40px; text-align: center; }
.nw-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.nw-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nw-hero h1 { margin: 0 auto; font-size: 54px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; max-width: 820px; }
.nw-hero-sub { margin: 22px auto 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.nw-hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.nw-hero-actions .nw-btn-primary { font-size: 15px; padding: 13px 24px; border-radius: 11px; }
.nw-hero-actions .nw-btn-secondary { font-size: 15px; padding: 13px 22px; }
.nw-hero-fine { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* product mock */
.nw-mock-wrap { max-width: 1000px; margin: 14px auto 0; padding: 0 28px; }
.nw-mock { border-radius: 16px 16px 0 0; border: 1px solid var(--border); border-bottom: 0; background: var(--bg); box-shadow: var(--shadow-lg); overflow: hidden; }
.nw-mock-bar { height: 38px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.nw-dot { width: 11px; height: 11px; border-radius: 50%; }
.nw-mock-url { margin-left: 14px; font-size: 12px; color: var(--faint); }
.nw-mock-body { display: flex; height: 300px; }
.nw-mock-side { width: 150px; background: var(--surface); border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.nw-bar { border-radius: 5px; background: var(--surface-2); height: 8px; }
.nw-mock-cols { flex: 1; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--surface); }
.nw-mock-col { display: flex; flex-direction: column; gap: 10px; }
.nw-mock-card { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 11px; box-shadow: var(--shadow); }

/* ---------- section heads ---------- */
.nw-section { max-width: 1180px; margin: 0 auto; padding: 84px 28px 30px; }
.nw-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.nw-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.nw-head h2 { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.nw-head p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- features ---------- */
.nw-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nw-feature { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 24px; }
.nw-feature-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.nw-feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.nw-feature p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- assistant ---------- */
.nw-assistant { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 50px; }
.nw-assistant-inner { max-width: 1180px; margin: 0 auto; padding: 84px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.nw-assistant-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.nw-assistant h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.18; }
.nw-assistant-lead { margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.nw-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.nw-bullet { display: flex; gap: 12px; align-items: flex-start; }
.nw-bullet-check { width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nw-bullet-text { font-size: 15px; line-height: 1.5; }
.nw-plan-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px; }
.nw-plan-source { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.nw-plan-avatar { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.nw-plan-source-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.nw-plan-source-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-plan-action { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; margin-bottom: 9px; }
.nw-plan-action-check { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nw-plan-action-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nw-plan-action-kind { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nw-plan-action-title { font-size: 13px; font-weight: 500; }
.nw-plan-run { width: 100%; margin-top: 7px; padding: 11px; font-size: 14px; }

/* ---------- plans ---------- */
.nw-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.nw-plans-note { text-align: center; max-width: 640px; margin: 0 auto 30px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.nw-plan { background: var(--bg); border: 1.5px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); position: relative; }
.nw-plan.highlight { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.nw-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.nw-plan-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.nw-plan-desc { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 38px; }
.nw-plan-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.nw-plan-price { font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.nw-plan-unit { font-size: 13px; color: var(--faint); }
.nw-plan-per { font-size: 12px; color: var(--faint); margin-bottom: 20px; }
.nw-plan-cta { display: block; text-align: center; font-size: 14px; font-weight: 600; padding: 11px; border-radius: 10px; margin-bottom: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.nw-plan-cta.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.nw-plan-cta:hover { opacity: .92; }
.nw-plan-features { display: flex; flex-direction: column; gap: 11px; }
.nw-plan-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }

/* ---------- cta ---------- */
.nw-cta-wrap { max-width: 1180px; margin: 0 auto 70px; padding: 0 28px; }
.nw-cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 20px; padding: 56px 40px; text-align: center; color: #fff; }
.nw-cta h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.nw-cta p { margin: 14px auto 0; max-width: 520px; font-size: 16px; line-height: 1.6; opacity: .9; }
.nw-cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.nw-cta-primary { background: #fff; color: var(--accent); font-size: 15px; font-weight: 700; padding: 13px 26px; border-radius: 11px; }
.nw-cta-primary:hover { opacity: .92; }
.nw-cta-ghost { background: rgba(255, 255, 255, .16); color: #fff; font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .3); }
.nw-cta-ghost:hover { background: rgba(255, 255, 255, .24); }

/* ---------- footer ---------- */
.nw-footer { border-top: 1px solid var(--border); background: var(--surface); }
.nw-footer-inner { max-width: 1180px; margin: 0 auto; padding: 44px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.nw-footer-about { max-width: 280px; }
.nw-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nw-footer-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; }
.nw-footer-about p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.nw-footer-cols { display: flex; gap: 54px; flex-wrap: wrap; }
.nw-footer-col { display: flex; flex-direction: column; gap: 10px; }
.nw-footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 2px; }
.nw-footer-col a { font-size: 13px; color: var(--muted); }
.nw-footer-col a:hover { color: var(--text); }
.nw-footer-bottom { border-top: 1px solid var(--border); }
.nw-footer-bottom-inner { max-width: 1180px; margin: 0 auto; padding: 18px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .nw-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nw-nav-links { display: none; }
    .nw-hero h1 { font-size: 38px; }
    .nw-features, .nw-plans { grid-template-columns: 1fr; }
    .nw-assistant-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- sign-in ---------- */
.auth {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: var(--text);
    background: radial-gradient(120% 80% at 50% -10%, var(--accent-soft), transparent 60%), var(--bg);
}
.auth * { box-sizing: border-box; }
.auth-card {
    width: 100%; max-width: 400px; text-align: center;
    background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
    padding: 40px 32px 28px; box-shadow: var(--shadow-lg);
}
.auth-logo {
    width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
}
.auth-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { margin: 10px 0 28px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.auth-provider {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 12px 16px; margin-bottom: 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.auth-provider:hover { border-color: var(--accent); background: var(--bg); }
.auth-foot { margin-top: 18px; font-size: 13px; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--accent); }
