/* Public landing (Views/Home/Index.cshtml + wwwroot/js/home-agent.js).
   The page tells the Agent Center story and looks like it: the same robot-on-a-stage,
   lanes and command bar. Every colour is a token on .lp; dark mode redefines them. */
.lp {
    --bg: #f6fafc; --surface: #ffffff; --soft: #eef5f8; --border: #dde8ee; --text: #102a35; --muted: #587482;
    --primary: #00b3c9; --primary-strong: #008497; --on-primary: #fff;
    --stage-a: #e9f7fa; --stage-b: #f8fcfd; --grid: rgba(0, 132, 151, .07); --wire: rgba(0, 150, 170, .28);
    --shadow: 0 18px 50px rgba(16, 60, 80, .12);
    --lead: #1e88e5; --intent: #8b5cf6; --research: #0ea5a4; --linkedin: #0a66c2; --email: #f59e0b;
    --content: #10b981; --life: #e11d48; --reply: #ec4899; --meet: #d97706;
    margin: 0; background: var(--bg); color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] .lp {
    --bg: #081319; --surface: #0f1d24; --soft: #13252e; --border: #1f3742; --text: #e2eff4; --muted: #8fa9b4;
    --primary-strong: #3fd6e8;
    --stage-a: #0a1d25; --stage-b: #06131a; --grid: rgba(63, 214, 232, .06); --wire: rgba(63, 214, 232, .3);
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { color: inherit; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lp h1, .lp h2, .lp h3 { margin: 0; letter-spacing: -.02em; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: .04em; text-decoration: none; }
.lp-brand img { width: 30px; height: 30px; }
.lp-nav-links { display: flex; gap: 22px; flex: 1; }
.lp-nav-links a, .lp-drawer a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.lp-nav-links a:hover { color: var(--text); }
.lp-nav-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lp-link-strong { font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 8px 6px; }
.lp-icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 15px; }
.lp-icon-btn:hover { color: var(--text); }
.lp-icon-btn:focus { outline: none; }
.lp-icon-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lp-burger { display: none; }
.lp-drawer { display: none; flex-direction: column; padding: 6px 20px 16px; gap: 2px; border-top: 1px solid var(--border); background: var(--surface); }
.lp-drawer a { padding: 11px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.lp-nav.open .lp-drawer { display: flex; }

.lp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 0; background: var(--primary); color: var(--on-primary) !important; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 179, 201, .28); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 179, 201, .36); }
.lp-btn.ghost { background: var(--surface); color: var(--text) !important; border: 1px solid var(--border); box-shadow: none; }
.lp-btn.big { padding: 15px 26px; font-size: 16px; border-radius: 14px; }

/* Hero */
.lp-hero { padding: 36px 0 30px; text-align: center; background: radial-gradient(900px 420px at 50% -80px, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 12px; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: lp-pulse 2s infinite; }
.lp-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; font-weight: 800; }
.lp-hero h1 span { background: linear-gradient(90deg, var(--primary), #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { max-width: 700px; margin: 14px auto 0; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; color: var(--muted); }

/* Stage - the Agent Center, as a preview */
.lp-stage-wrap { margin-top: 22px; position: relative; }
.lp-stage { position: relative; height: 440px; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
    background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 34px 34px, radial-gradient(ellipse at 50% 55%, var(--stage-a), var(--stage-b) 75%); }
.lp-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-wires path { fill: none; stroke: var(--wire); stroke-width: 1.4; stroke-dasharray: 4 6; }
.lp-wires path.hot { stroke: var(--c); stroke-width: 2.2; stroke-dasharray: none; opacity: .9; }
.lp-wires circle { filter: drop-shadow(0 0 6px var(--c)); }
.lp-node { position: absolute; transform: translate(-50%, -50%); text-align: center; width: 120px; pointer-events: none; }
.lp-node .ic { width: 50px; height: 50px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; position: relative;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 16%, transparent), 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .25s ease; }
.lp-node .n { position: absolute; top: -5px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 18px; background: var(--surface); color: var(--c); border: 1.5px solid var(--c); }
.lp-node .n:empty { display: none; }
.lp-node b { display: block; font-size: 12.5px; }
.lp-node small { display: block; font-size: 11px; color: var(--muted); }
.lp-node.hot .ic { transform: scale(1.14); box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 22%, transparent), 0 10px 26px color-mix(in srgb, var(--c) 50%, transparent); }
.lp-core { position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%); width: 230px; text-align: center; }
.lp-bot { width: 130px; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 18px 26px rgba(0, 80, 100, .25)); animation: lp-float 5s ease-in-out infinite; user-select: none; }
.lp-rings { position: absolute; left: 50%; top: 78%; transform: translate(-50%, -50%) rotateX(68deg); width: 260px; height: 260px; }
.lp-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--wire); animation: lp-ring 6s linear infinite; }
.lp-rings i:nth-child(2) { inset: 34px; border-style: dashed; animation-duration: 9s; animation-direction: reverse; }
.lp-rings i:nth-child(3) { inset: 70px; animation-duration: 12s; }
.lp-status { position: relative; z-index: 2; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lp-status b { color: var(--primary-strong); }
.lp-speech { position: absolute; right: 16px; top: 16px; max-width: 290px; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; text-align: left; transition: opacity .25s ease; }
.lp-speech.fade { opacity: 0; }
.lp-hud { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 60%; }
.lp-hud span { padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.lp-hud span b { color: var(--text); margin-right: 3px; }
.lp-hud span.sim { border-style: dashed; font-weight: 500; }
.lp-ticker { position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 400px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; text-align: left; box-shadow: var(--shadow); }
/* The speech bubble tells the same story; the shorter stage has no room for both. */
.lp-ticker { display: none; }
.lp-ticker i { color: var(--c, var(--primary)); }
.lp-ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Command bar - overlaps the stage like it does in the app */
.lp-command { position: relative; z-index: 3; max-width: 900px; margin: -36px auto 0; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; }
.lp-command-row { display: flex; gap: 10px; }
.lp-goal { flex: 1; display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--soft); cursor: text; }
.lp-goal:focus-within { border-color: var(--primary); }
.lp-goal i { color: var(--primary); margin-top: 3px; }
.lp-goal textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; font: inherit; font-size: 15.5px; color: var(--text); line-height: 1.45; max-height: 150px; }
.lp-launch { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #0891b2); color: #fff; font-weight: 700; font-size: 15.5px; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 179, 201, .3); }
.lp-launch:hover { filter: brightness(1.06); }
.lp-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lp-examples button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.lp-examples button:hover { color: var(--text); border-color: var(--primary); }
.lp-note { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }
.lp-note i { color: #10b981; margin-right: 4px; }

/* Sections */
.lp-sec { padding: 84px 0; }
.lp-alt { background: var(--surface); }
.lp-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.lp-head h2, .lp-ext h2, .lp-final h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 800; }
.lp-head p, .lp-ext p, .lp-final p { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 14px 0 0; }

.lp-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lp-steps li { display: flex; gap: 16px; }
.lp-steps li > b { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-strong); }
.lp-steps h3 { font-size: 17px; margin-bottom: 4px; }
.lp-steps p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.lp-plan { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lp-plan-top small { color: var(--muted); font-size: 12px; }
.lp-plan h3 { font-size: 18px; line-height: 1.3; }
.lp-plan-icp { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.lp-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-strong); }
.lp-pill.live { background: rgba(16, 185, 129, .14); color: #059669; }
.lp-plays { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-plays li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; transition: background .3s ease; }
.lp-plays li i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.lp-plays li span { flex: 1; }
.lp-plays li em { font-style: normal; font-size: 12px; color: var(--muted); }
.lp-plays li.hot { background: color-mix(in srgb, var(--c) 14%, var(--soft)); }
.lp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.lp-kpis span { text-align: center; font-size: 11.5px; color: var(--muted); padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border); }
.lp-kpis b { display: block; font-size: 20px; color: var(--text); }

[data-lane="lead"] { --c: var(--lead); } [data-lane="intent"] { --c: var(--intent); } [data-lane="research"] { --c: var(--research); }
[data-lane="linkedin"] { --c: var(--linkedin); } [data-lane="email"] { --c: var(--email); } [data-lane="content"] { --c: var(--content); }
[data-lane="life"] { --c: var(--life); } [data-lane="reply"] { --c: var(--reply); } [data-lane="meet"] { --c: var(--meet); }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-grid article, .lp-modes article { position: relative; padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); }
.lp-grid article > i { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 14px; }
.lp-grid h3, .lp-modes h3 { font-size: 17px; margin-bottom: 6px; }
.lp-grid p, .lp-modes p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.lp-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-modes article { background: var(--surface); }
.lp-modes article > i { font-size: 22px; color: var(--primary-strong); margin-bottom: 12px; display: block; }
.lp-modes article.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.lp-modes .lp-pill { position: absolute; top: 18px; right: 18px; }
.lp-guard { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.lp-guard li { font-size: 14.5px; color: var(--muted); }
.lp-guard i { width: 22px; color: var(--primary-strong); }

.lp-ext { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.lp-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.lp-ext-bot { width: 220px; justify-self: center; animation: lp-float 6s ease-in-out infinite; }

.lp-final { padding: 90px 0; text-align: center; background: radial-gradient(700px 300px at 50% 100%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); }
.lp-final .lp-btn { margin-top: 26px; }

.lp-foot { padding: 48px 0 26px; font-size: 14px; }
.lp-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.lp-foot p { color: var(--muted); line-height: 1.55; max-width: 320px; }
.lp-foot h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.lp-foot a:not(.lp-brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.lp-foot a:hover { color: var(--text); }
.lp-foot-bottom { margin-top: 30px; padding-top: 18px; color: var(--muted); font-size: 13px; }

.lp-goal textarea.lp-shake { animation: lp-shake .35s ease; }
@keyframes lp-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Who it's for */
.lp-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-who article { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.lp-who article:hover, .lp-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-grid article { transition: transform .2s ease, box-shadow .2s ease; }
.lp-who article > i { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--primary-strong); background: color-mix(in srgb, var(--primary) 14%, transparent); margin-bottom: 14px; }
.lp-who h3 { font-size: 17px; margin-bottom: 6px; }
.lp-who p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Scroll reveal: hidden only when JS is live (html.js is set before paint). */
.js .lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .lp-reveal.lp-from-right { transform: translateX(34px); }
.js .lp-reveal.in { opacity: 1; transform: none; }
.js .lp-grid article.lp-reveal.in:hover, .js .lp-who article.lp-reveal.in:hover { transform: translateY(-3px); transition-delay: 0s; }

@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-ring { to { transform: rotate(360deg); } }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }

@media (max-width: 960px) {
    .lp-nav-links { display: none; }
    .lp-burger { display: inline-block; }
    .lp-flow, .lp-ext { grid-template-columns: 1fr; }
    .lp-grid, .lp-modes, .lp-who { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .lp-hero { padding-top: 24px; }
    .lp-nav-act .lp-link-strong { display: none; }
    .lp-stage { height: 430px; border-radius: 20px; }
    .lp-node { width: 76px; }
    .lp-node .ic { width: 40px; height: 40px; font-size: 15px; }
    .lp-node small { display: none; }
    .lp-node b { font-size: 11px; }
    .lp-core { width: 150px; top: 54%; }
    .lp-bot { width: 104px; }
    .lp-rings { width: 170px; height: 170px; }
    .lp-hud, .lp-ticker { display: none; }
    .lp-speech { top: 12px; left: 12px; right: 12px; max-width: none; font-size: 12.5px; }
    .lp-command { margin-top: -20px; padding: 12px; }
    .lp-command-row { flex-direction: column; }
    .lp-launch { justify-content: center; padding: 14px; }
    .lp-grid, .lp-modes, .lp-guard, .lp-who { grid-template-columns: 1fr; }
    .lp-foot-grid { grid-template-columns: 1fr 1fr; }
    .lp-foot-grid > div:first-child { grid-column: 1 / -1; }
    .lp-examples { flex-wrap: nowrap; overflow-x: auto; margin: 12px -12px 0; padding: 0 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .lp-examples::-webkit-scrollbar { display: none; }
    .lp-examples button { flex: 0 0 auto; white-space: nowrap; }
    .lp-wrap { padding: 0 16px; }
    .lp-sub { font-size: 15.5px; }
    .lp-head { margin-bottom: 30px; }
    .lp-who article, .lp-grid article, .lp-modes article, .lp-plan { padding: 18px; }
    .lp-plays li { font-size: 13.5px; padding: 9px 10px; }
    .lp-steps li > b { width: 34px; height: 34px; }
    .lp-final { padding: 64px 0; }
    .lp-btn.big { width: 100%; justify-content: center; }
    .lp-nav-act { gap: 6px; }
    .lp-nav-act .lp-btn { padding: 9px 13px; }
    .js .lp-reveal.lp-from-right { transform: translateY(26px); }
    .lp-kpis { grid-template-columns: repeat(2, 1fr); }
    .lp-sec { padding: 60px 0; }
    .lp-ext-bot { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-bot, .lp-rings i, .lp-dot, .lp-ext-bot { animation: none; }
    .js .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* No outlines: cards, panels and the nav separate by shadow and surface colour only
   (the user asked for the border lines to go). Form controls keep their borders. */
.lp { --card-shadow: 0 8px 28px rgba(16, 60, 80, .08); }
[data-theme="dark"] .lp { --card-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.lp-nav { border-bottom: 0; box-shadow: 0 1px 12px rgba(16, 60, 80, .06); }
.lp-stage, .lp-command, .lp-plan, .lp-kpis span, .lp-hud span, .lp-speech,
.lp-grid article, .lp-modes article, .lp-who article { border: 0; }
.lp-grid article, .lp-modes article, .lp-who article { background: var(--surface); box-shadow: var(--card-shadow); }
.lp-kpis span { background: var(--soft); }
.lp-hud span, .lp-speech { box-shadow: 0 4px 14px rgba(16, 60, 80, .08); }
.lp-modes article.on { box-shadow: 0 0 0 2px var(--primary), var(--card-shadow); }
.lp-icon-btn { border: 0; background: var(--soft); }

/* Phone nav: logo left, actions right; the menu button matches the theme button. */
@media (max-width: 640px) {
    .lp-nav-in { gap: 10px; height: 60px; }
    .lp-brand span { font-size: 17px; }
    .lp-icon-btn { width: 40px; height: 40px; font-size: 16px; }
    .lp-burger { color: var(--text); }
}
