:root {
  --ink: #0b1f3a;
  --ink-2: #132a4a;
  --indigo: #4f46e5;
  --indigo-2: #6366f1;
  --teal: #0d9488;
  --gold: #f5b942;
  --bg: #f4f6fb;
  --card: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --ok: #059669;
  --danger: #dc2626;
  --sidebar: #0b1f3a;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: #0f172a;
  letter-spacing: -.01em;
}

a { color: var(--indigo); text-decoration: none; }
.page-wrap { min-height: 100vh; }

/* Public marketing */
.pub-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 31, 58, .86);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pub-nav .navbar-brand { font-weight: 800; letter-spacing: -.04em; color: #fff !important; }
.pub-nav .nav-link { color: rgba(255,255,255,.78) !important; font-weight: 600; }
.pub-nav .nav-link:hover { color: #fff !important; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
}

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(99,102,241,.45), transparent 50%),
    radial-gradient(700px 360px at 90% 10%, rgba(13,148,136,.35), transparent 45%),
    linear-gradient(160deg, #071525 0%, #0b1f3a 55%, #123056 100%);
  padding: 88px 0 72px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 640px; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .4; pointer-events: none; }
.glass-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.feature-card, .stat-card, .app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: #eef2ff; color: var(--indigo); font-size: 1.2rem;
}
.btn-isk {
  background: linear-gradient(135deg, var(--indigo), #7c3aed);
  border: 0; color: #fff; font-weight: 700; border-radius: 12px; padding: .7rem 1.15rem;
}
.btn-isk:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 12px; font-weight: 700; }
.section { padding: 72px 0; }
.chip { display: inline-flex; gap: .4rem; align-items: center; background: #eef2ff; color: var(--indigo); border-radius: 999px; padding: .25rem .7rem; font-weight: 700; font-size: .8rem; }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 272px; background: var(--sidebar); color: #dbe7f5; position: sticky; top: 0; height: 100vh; overflow: auto;
  flex-shrink: 0;
}
.sidebar a { color: #c9d7ea; }
.sidebar .brand { padding: 1.1rem 1.15rem; font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: -.04em; }
.side-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7f93ad; padding: .8rem 1.15rem .2rem; }
.side-link {
  display: flex; gap: .65rem; align-items: center; padding: .48rem 1.15rem; border-radius: 10px; margin: 0 .55rem;
  font-size: .92rem; font-weight: 600;
}
.side-link:hover, .side-link.active { background: rgba(255,255,255,.08); color: #fff; }
.main { flex: 1; min-width: 0; }
.topbar {
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding: .75rem 1.25rem;
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 1rem; align-items: center;
}
.search-box { flex: 1; max-width: 420px; position: relative; }
.search-box input { border-radius: 12px; background: #f8fafc; border-color: var(--line); padding-left: 2.2rem; }
.content { padding: 1.25rem; }
.kpi { padding: 1.05rem 1.15rem; }
.kpi .label { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-card { overflow: hidden; }
.avatar {
  width: 36px; height: 36px; border-radius: 10px; background: #e0e7ff; color: var(--indigo);
  display: grid; place-items: center; font-weight: 800;
}

.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-left {
  background:
    radial-gradient(600px 280px at 20% 20%, rgba(99,102,241,.4), transparent 50%),
    linear-gradient(160deg, #071525, #0b1f3a);
  color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-right { display: grid; place-items: center; padding: 32px; background: #f8fafc; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }

.tt-cell { min-height: 64px; border: 1px dashed #c7d2fe; border-radius: 10px; padding: .35rem; font-size: .78rem; background: #fff; }
.tt-filled { border-style: solid; background: #eef2ff; }

@media (max-width: 992px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .sidebar { position: fixed; z-index: 40; transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; }
}

#searchResults {
  position: absolute; top: 110%; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); display: none; max-height: 360px; overflow: auto; z-index: 30;
}
#searchResults a { display: block; padding: .55rem .85rem; color: inherit; }
#searchResults a:hover { background: #f8fafc; }

.btn-wa {
  background: #25d366; border: 0; color: #fff !important; font-weight: 700;
  border-radius: 12px; padding: .7rem 1.15rem;
}
.btn-wa:hover { color: #fff !important; filter: brightness(1.05); }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
}
.wa-float:hover { color: #fff !important; transform: scale(1.06); }
.price-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow);
}
.demo-login-table code { font-size: .82rem; }
.auth-card-wide { width: min(720px, 100%); }
.how-list { padding-left: 1.2rem; }
.how-list li { margin-bottom: .75rem; }
.navbar-toggler { filter: invert(1); }
