/* ============================================================================
   RemoteSupport portal — premium dark design system (cohesive with the .NET
   tray app). One accent: neon cyan #3DE0FF. Dependency-light, responsive.
   Loaded AFTER style.css, so these rules win for portal/landing/join pages.
   ============================================================================ */

:root {
  --bg-0: #06090d;
  --bg-1: #0b0f14;
  --surface: #11161d;
  --surface-2: #171d26;
  --border: #222b36;
  --hairline: rgba(255, 255, 255, .06);
  --text: #eaf0f6;
  --text-2: #9aa5b2;
  --text-3: #5c6675;
  --accent: #3de0ff;
  --accent-2: #62e9ff;
  --accent-ink: #04222b;
  --accent-dim: rgba(61, 224, 255, .12);
  --success: #3ddc97;
  --warn: #ffb454;
  --danger: #ff5d5d;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* layered backdrop with subtle accent glows */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(61, 224, 255, .10), transparent 60%),
    radial-gradient(45% 40% at 0% 0%, rgba(61, 224, 255, .05), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--accent); }
::selection { background: rgba(61, 224, 255, .25); }

h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.12; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 64px; }

/* ---------------- nav ---------------- */
.pnav {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px; margin: 0 -22px 8px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 15, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.pnav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.pnav a:hover { color: var(--text); }
.pnav .brand {
  color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 9px;
}
.pnav .brand::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: url("/brand.png") center/contain no-repeat;
}
.pnav .spacer { flex: 1; }
.pnav .who { color: var(--text-3); font-size: 13px; }
.pnav .inline { display: inline; margin: 0; }

/* ---------------- buttons ---------------- */
button, .btn {
  font: inherit; font-weight: 600; font-size: 14.5px;
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: var(--r); padding: 11px 18px;
  cursor: pointer; transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), filter .2s;
}
button:hover, .btn:hover { background: var(--accent-2); box-shadow: 0 8px 26px -6px rgba(61, 224, 255, .5); }
button:active, .btn:active { transform: translateY(1px) scale(.99); }
button:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; box-shadow: none; }
button.secondary, .btn.secondary {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none;
}
button.secondary:hover { background: #1d2530; border-color: #2e3947; box-shadow: none; }
button.sm, .btn.sm { padding: 8px 14px; font-size: 13.5px; }
button.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); box-shadow: none; }

/* ---------------- panels / cards ---------------- */
.panel {
  background: linear-gradient(180deg, var(--surface), #0f141b);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; margin: 16px 0; box-shadow: var(--shadow);
}
.panel.narrow { max-width: 440px; margin: 40px auto; }
.panel h2 { margin: 0 0 6px; font-size: 1.35rem; }
.panel h3 { margin: 0 0 8px; font-size: 1.12rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.cards .panel { margin: 0; transition: transform .18s var(--ease), border-color .18s var(--ease); }
.cards .panel:hover { transform: translateY(-3px); border-color: #2c3a48; }

/* ---------------- headers / text ---------------- */
header h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 28px 0 6px; }
.muted { color: var(--text-2); }
.muted-pill, .badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; vertical-align: middle;
}
.ok-pill { color: var(--success); border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .1); }
.info-pill { color: var(--accent); border-color: rgba(61, 224, 255, .4); background: var(--accent-dim); }
.badge { color: var(--accent-ink); background: var(--accent); border: 0; }
.price { font-size: 2rem; font-weight: 700; margin: 6px 0; letter-spacing: -.02em; }

/* ---------------- forms ---------------- */
label { display: block; margin: 14px 0 0; font-size: 13px; color: var(--text-2); font-weight: 600; }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--bg-0); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
form button[type=submit], .panel form button { margin-top: 18px; width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row input { width: auto; flex: 1; min-width: 160px; margin-top: 0; }
.row button, .row .btn { margin-top: 0; width: auto; }
.inline { display: inline; }

/* ---------------- notices ---------------- */
.notice { padding: 11px 14px; border-radius: var(--r); margin: 14px 0; font-size: 14px; border: 1px solid; }
.notice.error { background: rgba(255, 93, 93, .1); border-color: rgba(255, 93, 93, .4); color: #ffb4b4; }
.notice.info { background: var(--accent-dim); border-color: rgba(61, 224, 255, .35); color: #bdeeff; }

/* ---------------- tables / logs / misc ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--hairline); color: var(--text); }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.log { background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; color: var(--text-2); font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; overflow-x: auto; }
.srow { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; background: var(--surface); }
.status { color: var(--text-2); font-size: 14px; }
.code-pill { font-family: "Cascadia Mono", Consolas, monospace; font-size: 1.2rem; letter-spacing: .15em; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(61, 224, 255, .35); padding: 4px 12px; border-radius: var(--r); }
.panel.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim), var(--shadow); }
video#remote, #preview { width: 100%; border-radius: var(--r); background: #000; border: 1px solid var(--border); margin-top: 12px; }
.video-wrap { position: relative; margin-top: 12px; }
details summary { cursor: pointer; }

/* ============================================================================
   LANDING PAGE
   ============================================================================ */
.lp { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.lp-section { padding: 76px 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(61, 224, 255, .3); padding: 6px 13px; border-radius: 999px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 16px 0 10px; }
.section-sub { color: var(--text-2); max-width: 620px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* hero */
.hero2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero2 h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); margin: 18px 0 18px; }
.hero2 h1 .grad { background: linear-gradient(100deg, var(--accent), #9b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 p.lead { font-size: 1.18rem; color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn { padding: 13px 22px; font-size: 15px; }
.hero-trust { margin-top: 22px; color: var(--text-3); font-size: 13.5px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(61, 224, 255, .08);
  overflow: hidden; background: var(--surface); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .5s var(--ease);
}
.hero-visual .frame:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.hero-visual .frame img { display: block; width: 100%; }
.hero-visual .glow { position: absolute; inset: -10% -10% -30% -10%; z-index: -1; background: radial-gradient(50% 50% at 60% 40%, rgba(61, 224, 255, .25), transparent 70%); filter: blur(20px); }
.hero-visual .float-pill { position: absolute; bottom: 18px; left: -18px; background: rgba(8, 11, 15, .9); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.hero-visual .float-pill b { color: var(--accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { background: linear-gradient(180deg, var(--surface), #0f141b); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; position: relative; }
.step .num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-dim); color: var(--accent); font-weight: 700; border: 1px solid rgba(61, 224, 255, .3); }
.step h3 { margin: 16px 0 6px; }
.step p { color: var(--text-2); margin: 0; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature { background: linear-gradient(180deg, var(--surface), #0f141b); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: transform .18s var(--ease), border-color .18s; }
.feature:hover { transform: translateY(-3px); border-color: #2c3a48; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-dim); border: 1px solid rgba(61, 224, 255, .25); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { color: var(--text-2); margin: 0; font-size: .96rem; }

/* why-different split */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why .cmp { display: grid; gap: 10px; }
.cmp-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.cmp-row.good { border-color: rgba(61, 224, 255, .3); background: var(--accent-dim); }
.cmp-row .mk { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.cmp-row.good .mk { background: var(--accent); color: var(--accent-ink); }
.cmp-row.bad .mk { background: #2a323d; color: var(--text-3); }
.cmp-row b { color: var(--text); }
.cmp-row span { color: var(--text-2); font-size: .95rem; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 36px auto 0; }
.plan { background: linear-gradient(180deg, var(--surface), #0f141b); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim), var(--shadow); position: relative; }
.plan.pro::after { content: "Recommended"; position: absolute; top: -11px; right: 18px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; margin: 0; }
.plan .price { margin: 10px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.plan li { color: var(--text-2); padding: 7px 0 7px 26px; position: relative; font-size: .96rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* security strip */
.sec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.sec .item h4 { margin: 0 0 4px; font-size: 1rem; }
.sec .item p { color: var(--text-2); margin: 0; font-size: .9rem; }

/* closing CTA */
.cta-band { text-align: center; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 56px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(61, 224, 255, .14), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }

/* footer */
.foot { border-top: 1px solid var(--hairline); margin-top: 40px; padding: 36px 0 10px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--text-3); font-size: 14px; }
.foot .brand { color: var(--text); font-weight: 700; display: inline-flex; gap: 9px; align-items: center; }
.foot .brand::before { content: ""; width: 20px; height: 20px; background: url("/brand.png") center/contain no-repeat; }
.foot .links { margin-left: auto; }
.foot .links a { color: var(--text-2); margin-left: 18px; }

/* ---------------- scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 20px; }
  .hero-visual .frame { transform: none; }
  .steps, .features, .why, .sec { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .pnav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .lp-section { padding: 52px 0; }
  .sec { grid-template-columns: 1fr 1fr; }
  .pnav { gap: 12px; }
  .hero-visual .float-pill { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-visual .frame { transform: none; }
}

/* ---- Billing: usage meters + plan cards (accounting/quota layer) ---- */
.meter { margin: 14px 0; }
.meter-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.meter-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.section-h { margin: 26px 0 12px; }
.plan-card { display: flex; flex-direction: column; }
.plan-card.current { outline: 2px solid var(--accent, #3ad29f); }
.plan-card .price .per { font-size: 13px; font-weight: 400; color: var(--muted, #9aa6b2); }
.plan-feats { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 7px; }
.plan-feats li { font-size: 14px; padding-left: 20px; position: relative; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, #3ad29f); }
.plan-card form, .plan-card .btn, .plan-card button { margin-top: auto; }
p.sm, .muted.sm { font-size: 13px; }

/* ---- Team: per-user credit limits table ---- */
.limits-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.limits-table th, .limits-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; vertical-align: middle; }
.limits-table th { color: var(--muted, #9aa6b2); font-weight: 600; }
.limits-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.limits-form .cap { width: 78px; padding: 6px 8px; }

/* ---- Enterprise SSO admin ---- */
.sso-form { display: grid; gap: 12px; max-width: 620px; }
.sso-form label { display: grid; gap: 5px; font-size: 14px; }
.sso-form input[type=text], .sso-form input:not([type]), .sso-form input[type=password] { padding: 9px 10px; }
.sso-form .row-check { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; }
.sso-steps { margin: 6px 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
code.copy { display: inline-block; padding: 8px 10px; background: rgba(255,255,255,0.06); border-radius: 8px; word-break: break-all; font-size: 13px; }
