:root {
  --polar: #f8fafc;
  --white: #ffffff;
  --pearl: #e9eef5;
  --mist: #d7dfea;
  --ink: #0e1525;
  --ink-2: #15213a;
  --text: #18243a;
  --muted: #66738a;
  --blue: #2f6bff;
  --blue-2: #5b91ff;
  --violet: #8b5cff;
  --cyan: #3bcbff;
  --success: #16a66a;
  --warning: #f49b29;
  --danger: #e14b5a;
  --shadow-sm: 0 8px 22px rgba(14, 21, 37, 0.06);
  --shadow-md: 0 20px 60px rgba(14, 21, 37, 0.10);
  --shadow-lg: 0 30px 90px rgba(14, 21, 37, 0.16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--polar);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shared brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .16em; color: var(--ink); }
.brand img { width: 44px; height: 41px; object-fit: contain; filter: drop-shadow(0 7px 14px rgba(47,107,255,.18)); }
.brand span { font-size: 1.04rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 28px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.light-eyebrow { color: #b8c9ff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 750; font-size: .9rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(47,107,255,.25); outline-offset: 2px; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--blue), #4579ff 55%, var(--violet)); box-shadow: 0 12px 28px rgba(47,107,255,.23); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(47,107,255,.32); }
.btn-secondary { color: var(--ink); background: rgba(255,255,255,.76); border-color: var(--mist); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--ink); background: transparent; border-color: transparent; }
.btn-light { color: var(--ink); background: white; box-shadow: 0 18px 40px rgba(1,8,25,.18); }
.btn-lg { min-height: 52px; padding-inline: 24px; border-radius: 14px; }
.btn-block { width: 100%; }
.muted { color: var(--muted); }

/* Marketing */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: rgba(248,250,252,.76); border-bottom: 1px solid rgba(215,223,234,.6); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: .88rem; font-weight: 650; color: #425069; }
.main-nav > a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.hero { position: relative; overflow: hidden; padding: 155px 0 94px; background: radial-gradient(circle at 87% 10%, rgba(139,92,255,.10), transparent 25%), radial-gradient(circle at 10% 30%, rgba(59,203,255,.10), transparent 28%), linear-gradient(180deg, #fff 0%, #f7f9fd 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(14,21,37,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(14,21,37,.025) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 78%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(12px); pointer-events: none; }
.hero-orb-one { width: 380px; height: 380px; right: -180px; top: 100px; background: rgba(47,107,255,.08); }
.hero-orb-two { width: 280px; height: 280px; left: -140px; bottom: 0; background: rgba(139,92,255,.08); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 74px; }
.hero-copy h1 { margin: 22px 0 24px; color: var(--ink); font-size: clamp(3rem, 6vw, 5.55rem); line-height: .99; letter-spacing: -.057em; font-weight: 820; }
.hero-copy h1 span { background: linear-gradient(100deg, var(--blue), #587bff 42%, var(--violet) 84%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 660px; margin: 0; font-size: 1.13rem; color: #5c6980; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--pearl); color: #5d6a80; font-size: .8rem; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row b { color: var(--blue); font-size: .68rem; letter-spacing: .09em; }
.hero-visual { position: relative; padding: 35px 8px; }
.visual-window { position: relative; border: 1px solid rgba(201,211,225,.88); background: rgba(255,255,255,.85); border-radius: 26px; box-shadow: 0 45px 100px rgba(22,35,64,.18), 0 0 0 10px rgba(255,255,255,.45); overflow: hidden; transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); }
.window-top { height: 45px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #e7ebf2; background: #fbfcfe; }
.window-top span { width: 8px; height: 8px; border-radius: 50%; background: #d6deea; }
.window-top span:first-child { background: #ff7c8d; }
.window-top span:nth-child(2) { background: #ffc25b; }
.window-top span:nth-child(3) { background: #35d28d; }
.window-top em { margin-left: auto; margin-right: auto; padding: 5px 36px; border-radius: 8px; background: #f0f3f8; color: #8490a3; font-style: normal; font-size: .59rem; }
.window-body { min-height: 405px; display: grid; grid-template-columns: 64px 1fr; background: #f6f8fc; }
.mini-sidebar { padding: 15px 10px; display: flex; flex-direction: column; align-items: center; gap: 18px; background: linear-gradient(180deg, #0c1730, #101e39); }
.mini-sidebar img { width: 32px; height: 30px; object-fit: contain; margin-bottom: 14px; }
.mini-sidebar i { width: 24px; height: 7px; border-radius: 5px; background: rgba(255,255,255,.17); }
.mini-sidebar i.active { height: 26px; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 0 20px rgba(93,106,255,.5); }
.mini-content { padding: 24px 22px; }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; color: var(--ink); }
.mini-head strong { font-size: .85rem; }
.mini-head span { width: 90px; height: 17px; border: 1px solid #e0e6ee; border-radius: 7px; background: white; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-kpis article, .mini-panels article { border: 1px solid #e4e9f1; background: white; border-radius: 12px; padding: 13px; box-shadow: 0 8px 18px rgba(20,32,55,.04); }
.mini-kpis small, .mini-panels small { display: block; color: #8a95a7; font-size: .54rem; }
.mini-kpis b { display: block; margin: 4px 0 3px; font-size: .92rem; color: var(--ink); }
.mini-kpis em { color: var(--success); font-size: .5rem; font-style: normal; }
.mini-panels { display: grid; grid-template-columns: 1fr 132px; gap: 10px; margin-top: 12px; }
.mini-chart svg { width: 100%; margin-top: 20px; overflow: visible; }
.mini-status { display: flex; flex-direction: column; align-items: center; }
.status-ring { width: 72px; height: 72px; margin: 25px 0 12px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) 0 72%, var(--violet) 72% 99.9%, #e9eef5 99.9%); position: relative; }
.status-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: white; }
.status-ring b { z-index: 1; font-size: .7rem; }
.mini-status > span { color: var(--success); font-size: .57rem; }
.floating-pill { position: absolute; z-index: 2; padding: 11px 15px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; background: rgba(255,255,255,.86); box-shadow: 0 15px 35px rgba(20,34,62,.14); backdrop-filter: blur(12px); font-size: .67rem; font-weight: 750; color: #48576e; }
.floating-pill::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,166,106,.12); }
.pill-one { top: 7px; right: -15px; }
.pill-two { bottom: 14px; left: -22px; }

.section { padding: 100px 0; }
.section-heading { margin-bottom: 48px; }
.section-heading h2, .security-copy h2, .vision-card h2, .cta-card h2 { margin: 13px 0 16px; color: var(--ink); font-size: clamp(2.1rem, 4vw, 3.55rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading p, .vision-card p { color: var(--muted); font-size: 1.02rem; max-width: 700px; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.platform-section { background: white; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.experience-card { position: relative; min-height: 370px; padding: 38px; border: 1px solid var(--pearl); border-radius: var(--radius-lg); background: linear-gradient(160deg, #fff, #f7f9fd); overflow: hidden; box-shadow: var(--shadow-sm); }
.experience-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -85px; bottom: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,255,.17), transparent 68%); }
.card-number { position: absolute; right: 28px; top: 22px; color: #dfe5ef; font-size: 4.2rem; line-height: 1; font-weight: 850; }
.icon-box { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(139,92,255,.11)); color: var(--blue); font-size: 1.55rem; box-shadow: inset 0 0 0 1px rgba(47,107,255,.10); }
.experience-card h3 { margin: 28px 0 12px; font-size: 1.55rem; color: var(--ink); }
.experience-card p { max-width: 500px; color: var(--muted); }
.experience-card ul { margin: 25px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #48566d; font-size: .9rem; }
.experience-card li::before { content: "✓"; color: var(--blue); font-weight: 900; margin-right: 9px; }
.dark-card { color: white; border-color: #202d47; background: radial-gradient(circle at 80% 15%, rgba(139,92,255,.18), transparent 28%), linear-gradient(145deg, #0d172b, #111f3b); box-shadow: 0 28px 60px rgba(8,17,35,.22); }
.dark-card .card-number { color: rgba(255,255,255,.06); }
.dark-card .icon-box { color: #d8deff; background: linear-gradient(135deg, rgba(47,107,255,.25), rgba(139,92,255,.25)); }
.dark-card h3 { color: white; }
.dark-card p, .dark-card ul { color: #aebbd1; }
.dark-card li::before { color: var(--cyan); }

.modules-section { background: linear-gradient(180deg, #f4f7fb, #f8fafc); }
.split-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 65px; align-items: end; }
.split-heading p { margin: 0 0 9px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.module-card { min-height: 235px; padding: 24px; border: 1px solid #e0e6ef; border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 10px 30px rgba(17,31,57,.04); transition: .22s ease; }
.module-card:hover { transform: translateY(-5px); border-color: rgba(47,107,255,.32); box-shadow: 0 20px 45px rgba(31,53,93,.10); }
.module-top { display: flex; align-items: center; justify-content: space-between; }
.module-top > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eff3f9; color: #657189; font-weight: 850; font-size: .72rem; }
.module-top small { color: #9aa4b6; font-size: .56rem; font-weight: 800; letter-spacing: .13em; }
.module-card h3 { margin: 24px 0 9px; color: var(--ink); font-size: 1.03rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.module-active { background: linear-gradient(155deg, #fff, #f5f8ff); border-color: rgba(47,107,255,.22); }
.module-active .module-top > span { color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 8px 20px rgba(47,107,255,.24); }
.module-active .module-top small { color: var(--blue); }

.security-section { color: white; background: radial-gradient(circle at 7% 90%, rgba(47,107,255,.18), transparent 30%), radial-gradient(circle at 90% 10%, rgba(139,92,255,.20), transparent 29%), #0b1427; }
.security-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.security-copy h2 { color: white; }
.security-copy > p { color: #aab8cf; font-size: 1.03rem; }
.security-stats { display: grid; gap: 13px; margin-top: 34px; }
.security-stats span { display: flex; gap: 13px; align-items: baseline; color: #aebbd0; font-size: .87rem; }
.security-stats b { min-width: 51px; color: var(--cyan); font-size: 1.2rem; }
.security-list { display: grid; gap: 12px; }
.security-list article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px; border: 1px solid rgba(174,192,222,.13); border-radius: 16px; background: rgba(255,255,255,.035); backdrop-filter: blur(10px); }
.security-list article > span { color: #7692ff; font-weight: 850; font-size: .73rem; }
.security-list h3 { margin: 0 0 5px; font-size: .96rem; }
.security-list p { margin: 0; color: #98a8c0; font-size: .82rem; }

.vision-section { background: white; }
.vision-card { min-height: 390px; display: grid; grid-template-columns: 1fr 350px; align-items: center; gap: 50px; padding: 65px 70px; border: 1px solid var(--pearl); border-radius: 32px; background: linear-gradient(125deg, #f9fbfe 0%, #f2f6ff 55%, #f8f4ff 100%); overflow: hidden; position: relative; }
.vision-card > div:first-child { position: relative; z-index: 2; }
.vision-orbit { position: relative; width: 270px; height: 270px; margin: auto; display: grid; place-items: center; border: 1px solid rgba(47,107,255,.16); border-radius: 50%; box-shadow: inset 0 0 70px rgba(47,107,255,.08); }
.vision-orbit::before, .vision-orbit::after { content: ""; position: absolute; border: 1px solid rgba(139,92,255,.14); border-radius: 50%; }
.vision-orbit::before { inset: 28px; }
.vision-orbit::after { inset: 63px; }
.vision-orbit span { position: relative; z-index: 2; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 25px; color: white; font-size: 3.2rem; font-weight: 850; background: linear-gradient(145deg, var(--blue), var(--violet)); box-shadow: 0 25px 50px rgba(63,83,211,.28); }
.vision-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 7px rgba(59,203,255,.12); }
.vision-orbit i:nth-child(2) { top: 20px; left: 76px; }
.vision-orbit i:nth-child(3) { right: 28px; bottom: 65px; background: var(--violet); }
.vision-orbit i:nth-child(4) { left: 14px; bottom: 92px; background: var(--blue); }

.cta-section { padding-top: 15px; background: white; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 52px 58px; border-radius: 28px; color: white; background: radial-gradient(circle at 85% 15%, rgba(139,92,255,.55), transparent 32%), linear-gradient(130deg, #123476, #244ee8 58%, #5d3dd1); box-shadow: 0 30px 70px rgba(28,61,155,.22); }
.cta-card .eyebrow { color: #dbe6ff; }
.cta-card h2 { margin-bottom: 9px; color: white; font-size: clamp(1.9rem,3.7vw,3rem); }
.cta-card p { margin: 0; color: #d5def2; }
.site-footer { padding: 42px 0; background: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-top: 1px solid var(--pearl); padding-top: 36px; color: #758197; font-size: .8rem; }
.footer-grid p { margin: 0; }
.footer-grid > div { display: flex; justify-content: flex-end; gap: 20px; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand img { width: 38px; }

/* Authentication */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, .85fr) 1.15fr; background: white; }
.auth-brand-panel { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(35px,5vw,78px); color: white; background: radial-gradient(circle at 15% 75%, rgba(47,107,255,.32), transparent 30%), radial-gradient(circle at 80% 15%, rgba(139,92,255,.25), transparent 31%), linear-gradient(145deg, #091328, #101d38 54%, #131d35); overflow: hidden; position: relative; }
.auth-brand-panel::after { content: ""; position: absolute; width: 500px; height: 500px; left: -220px; bottom: -280px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 145px rgba(255,255,255,.015); }
.auth-brand { color: white; position: relative; z-index: 1; }
.auth-brand img { width: 54px; height: 50px; }
.auth-message { position: relative; z-index: 1; max-width: 530px; }
.auth-message h1 { margin: 20px 0; font-size: clamp(3rem,5vw,5.2rem); line-height: 1.02; letter-spacing: -.055em; }
.auth-message p { max-width: 520px; color: #aab8ce; font-size: 1rem; line-height: 1.75; }
.auth-points { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 13px 24px; color: #b9c5d8; font-size: .78rem; }
.auth-points span::first-letter { color: var(--cyan); }
.auth-form-panel { display: grid; place-items: center; padding: 48px 30px; }
.auth-form-wrap { width: min(100%, 440px); }
.mobile-auth-logo { display: none; }
.auth-form-wrap h2 { margin: 13px 0 8px; color: var(--ink); font-size: 2.25rem; letter-spacing: -.04em; }
.auth-form-wrap > p { margin: 0 0 28px; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 8px; color: #344258; font-size: .8rem; font-weight: 750; }
.auth-form input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #dbe2ec; border-radius: 12px; color: var(--ink); background: #fbfcfe; transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-form input:focus { border-color: rgba(47,107,255,.65); background: white; box-shadow: 0 0 0 4px rgba(47,107,255,.09); outline: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }
.password-wrap button { position: absolute; right: 8px; top: 8px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #edf2f9; color: #55647a; font-size: .73rem; font-weight: 750; }
.auth-form .btn { margin-top: 16px; }
.auth-help { margin-top: 25px !important; text-align: center; font-size: .79rem; color: #778399; }
.auth-help a { color: var(--blue); font-weight: 750; }
.alert { margin: 17px 0; padding: 13px 15px; border-radius: 11px; font-size: .82rem; }
.alert-error { color: #8b2331; border: 1px solid #f3c3c9; background: #fff3f4; }
.alert-success { color: #116c49; border: 1px solid #bdebd7; background: #effbf6; }

/* App shell */
.app-shell-body { min-height: 100vh; background: #f4f7fb; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 252px; display: flex; flex-direction: column; padding: 18px 15px; color: white; background: radial-gradient(circle at 20% 15%, rgba(47,107,255,.20), transparent 27%), linear-gradient(180deg, #0a1428, #101d36); border-right: 1px solid rgba(255,255,255,.06); overflow-y: auto; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.sidebar-brand { color: white; }
.sidebar-brand img { width: 42px; height: 39px; }
.sidebar-brand span { font-size: .92rem; }
.sidebar-close { display: none; border: 0; background: transparent; color: white; font-size: 1.8rem; }
.workspace { margin: 18px 0 14px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.035); }
.workspace small { display: block; color: #7386a7; font-size: .55rem; letter-spacing: .13em; }
.workspace strong { display: block; margin: 4px 0 2px; color: #edf3ff; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace span { color: #7990b4; font-size: .65rem; text-transform: capitalize; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border-radius: 10px; color: #a8b7cd; font-size: .79rem; font-weight: 620; transition: .17s; }
.sidebar-nav a span { width: 18px; text-align: center; color: #7f93b6; }
.sidebar-nav a:hover { color: white; background: rgba(255,255,255,.05); }
.sidebar-nav a.active { color: white; background: linear-gradient(115deg, rgba(47,107,255,.92), rgba(75,92,247,.82), rgba(139,92,255,.88)); box-shadow: 0 12px 30px rgba(40,71,210,.22); }
.sidebar-nav a.active span { color: white; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.user-chip { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); font-weight: 850; font-size: .75rem; }
.user-chip strong, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { color: #edf3ff; font-size: .73rem; }
.user-chip small { color: #7487a7; font-size: .6rem; }
.logout-btn { width: 100%; margin-top: 12px; padding: 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; color: #9eacc2; background: transparent; font-size: .68rem; }
.logout-btn:hover { color: white; background: rgba(255,255,255,.05); }
.sidebar-scrim { display: none; }
.app-main { grid-column: 2; min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid #e1e6ef; background: rgba(248,250,252,.88); backdrop-filter: blur(18px); }
.mobile-menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--pearl); border-radius: 10px; background: white; }
.app-search { width: min(500px, 50vw); height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #e0e6ee; border-radius: 11px; background: white; box-shadow: 0 5px 15px rgba(18,30,51,.025); }
.app-search span { color: #8190a5; }
.app-search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .78rem; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-actions button { position: relative; width: 38px; height: 38px; border: 1px solid #e0e6ee; border-radius: 10px; background: white; color: #536177; }
.topbar-actions button i { position: absolute; width: 6px; height: 6px; right: 8px; top: 7px; border-radius: 50%; background: var(--danger); border: 1px solid white; }
.profile-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, #edf4ff, #f5efff); border: 1px solid #dbe2f5; font-size: .72rem; font-weight: 850; }
.app-content { padding: 30px 28px 50px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.dashboard-heading h1 { margin: 6px 0 3px; color: var(--ink); font-size: 2rem; line-height: 1.1; letter-spacing: -.045em; }
.dashboard-heading p { margin: 0; color: #7a8698; font-size: .82rem; }
.heading-actions { display: flex; gap: 9px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi-card { position: relative; min-height: 130px; display: grid; grid-template-columns: 43px 1fr; gap: 12px; align-items: start; padding: 19px; border: 1px solid #e0e6ef; border-radius: 15px; background: white; box-shadow: 0 9px 28px rgba(16,30,54,.04); overflow: hidden; }
.kpi-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-size: 1rem; font-weight: 800; }
.kpi-icon.blue { color: var(--blue); background: rgba(47,107,255,.10); }
.kpi-icon.violet { color: var(--violet); background: rgba(139,92,255,.10); }
.kpi-icon.cyan { color: #008fc0; background: rgba(59,203,255,.13); }
.kpi-icon.navy { color: var(--ink); background: #edf1f7; }
.kpi-card small { display: block; color: #748197; font-size: .66rem; }
.kpi-card strong { display: block; margin: 3px 0 5px; color: var(--ink); font-size: 1.55rem; line-height: 1.1; }
.trend { font-size: .57rem; font-weight: 700; }
.trend.positive { color: var(--success); }
.trend.neutral { color: #718099; }
.kpi-card svg { position: absolute; right: 12px; bottom: 12px; width: 76px; height: 36px; overflow: visible; }
.kpi-card svg path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.kpi-card:nth-child(2) svg path, .kpi-card:nth-child(3) svg path { stroke: var(--violet); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); gap: 14px; margin-top: 14px; }
.panel { border: 1px solid #e0e6ef; border-radius: 17px; background: white; box-shadow: 0 10px 30px rgba(16,30,54,.035); }
.panel-wide { padding: 22px; min-height: 420px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-head h2 { margin: 0 0 3px; color: var(--ink); font-size: .95rem; }
.panel-head p { margin: 0; color: #8692a4; font-size: .65rem; }
.panel-head a { color: var(--blue); font-size: .66rem; font-weight: 750; }
.panel-head select { height: 32px; padding: 0 9px; border: 1px solid #e0e6ef; border-radius: 8px; color: #637188; background: white; font-size: .65rem; }
.large-chart { position: relative; margin-top: 20px; padding-left: 43px; }
.large-chart svg { width: 100%; height: 285px; overflow: visible; }
.grid-lines line { stroke: #e8edf4; stroke-width: 1; }
.area-blue { fill: url(#areaBlue); }
.line-blue { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 4px 8px rgba(47,107,255,.18)); }
.area-violet { fill: url(#areaViolet); }
.line-violet { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; }
.chart-y { position: absolute; left: 0; top: 0; bottom: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #98a3b4; font-size: .55rem; }
.chart-labels { display: flex; justify-content: space-between; color: #98a3b4; font-size: .55rem; }
.chart-legend { display: flex; gap: 18px; margin-top: 13px; color: #66748a; font-size: .62rem; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.blue-dot { background: var(--blue); }
.violet-dot { background: var(--violet); }
.activity-panel { padding: 20px; min-height: 420px; }
.activity-list { margin-top: 20px; display: grid; gap: 0; }
.activity-item { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf1f6; }
.activity-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.10); }
.activity-dot.warning { background: var(--warning); box-shadow: 0 0 0 4px rgba(244,155,41,.10); }
.activity-dot.error { background: var(--danger); box-shadow: 0 0 0 4px rgba(225,75,90,.10); }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { color: #3c4a60; font-size: .68rem; }
.activity-item small { margin-top: 3px; color: #97a2b2; font-size: .57rem; }
.empty-state { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: rgba(47,107,255,.08); font-size: 1.3rem; }
.empty-state h3 { margin: 13px 0 5px; color: var(--ink); font-size: .84rem; }
.empty-state p { max-width: 220px; margin: 0; color: #909bad; font-size: .65rem; }
.modules-panel { padding: 20px; }
.dashboard-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 18px; }
.dashboard-module { min-width: 0; display: grid; grid-template-columns: 32px 1fr 8px; gap: 9px; align-items: center; padding: 11px; border: 1px solid #edf1f6; border-radius: 11px; background: #fbfcfe; }
.dashboard-module > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: rgba(47,107,255,.08); font-size: .68rem; font-weight: 850; }
.dashboard-module strong, .dashboard-module small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-module strong { color: #405068; font-size: .65rem; }
.dashboard-module small { color: #94a0b1; font-size: .54rem; }
.dashboard-module i { width: 7px; height: 7px; border-radius: 50%; background: #b9c3d2; }
.dashboard-module i.active { background: var(--success); box-shadow: 0 0 0 4px rgba(22,166,106,.1); }
.health-panel { padding: 20px; }
.status-live { padding: 5px 8px; border-radius: 999px; color: var(--success); background: rgba(22,166,106,.08); font-size: .58rem; font-weight: 750; }
.health-score { display: grid; place-items: center; padding: 22px 0; }
.health-ring { width: 128px; height: 128px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle at center, white 60%, transparent 61%), conic-gradient(var(--blue) 0 76%, var(--violet) 76% 99.9%, #e9eef5 99.9%); box-shadow: inset 0 0 0 10px white, 0 12px 30px rgba(47,107,255,.09); }
.health-ring strong { color: var(--ink); font-size: 1.35rem; }
.health-ring small { color: #8b97a9; font-size: .55rem; }
.health-list { display: grid; gap: 9px; }
.health-list span { display: flex; justify-content: space-between; gap: 10px; color: #738097; font-size: .62rem; }
.health-list b { color: #3f4e64; font-size: .59rem; }

/* Error pages */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 0, rgba(47,107,255,.10), transparent 35%), #f7f9fc; }
.error-card { width: min(100%, 480px); padding: 45px; text-align: center; border: 1px solid var(--pearl); border-radius: 24px; background: white; box-shadow: var(--shadow-md); }
.error-card img { width: 74px; margin: 0 auto 17px; }
.error-card > span { color: var(--blue); font-weight: 850; letter-spacing: .15em; }
.error-card h1 { margin: 10px 0; color: var(--ink); font-size: 1.7rem; }
.error-card p { margin: 0 0 24px; color: var(--muted); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { width: min(100%, 700px); margin-inline: auto; }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .security-grid { gap: 45px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-panel { min-height: auto; }
}

@media (max-width: 850px) {
  .main-nav { position: fixed; inset: 76px 18px auto; display: none; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px; border: 1px solid var(--pearl); border-radius: 17px; background: rgba(255,255,255,.97); box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .nav-toggle { display: block; }
  .experience-grid, .security-grid, .split-heading, .vision-card { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-orbit { width: 230px; height: 230px; }
  .cta-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .brand, .footer-grid > div { justify-content: center; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .mobile-auth-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 35px; color: var(--ink); letter-spacing: .14em; }
  .mobile-auth-logo img { width: 44px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 25px 0 70px rgba(5,12,26,.25); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5,12,26,.55); backdrop-filter: blur(3px); }
  .sidebar-scrim.is-open { display: block; }
  .app-main { grid-column: auto; }
  .mobile-menu-btn { display: block; }
  .app-search { width: min(460px, 58vw); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 26px, var(--container)); }
  .hero { padding-top: 125px; padding-bottom: 68px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-actions .btn { width: 100%; }
  .trust-row { flex-direction: column; align-items: center; gap: 10px; }
  .hero-visual { padding-inline: 0; }
  .visual-window { transform: none; border-radius: 17px; }
  .window-body { min-height: 315px; grid-template-columns: 48px 1fr; }
  .mini-content { padding: 15px 11px; }
  .mini-kpis { grid-template-columns: 1fr 1fr; }
  .mini-kpis article:nth-child(3) { display: none; }
  .mini-panels { grid-template-columns: 1fr; }
  .mini-status { display: none !important; }
  .floating-pill { display: none; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 32px; }
  .experience-card { min-height: auto; padding: 28px; }
  .module-grid { grid-template-columns: 1fr; }
  .security-list article { padding: 18px; }
  .vision-card { padding: 38px 25px; }
  .vision-orbit { width: 190px; height: 190px; }
  .vision-orbit span { width: 74px; height: 74px; font-size: 2.4rem; }
  .cta-card { padding: 36px 27px; }
  .auth-form-panel { padding: 30px 20px; }
  .app-topbar { height: 64px; padding: 0 14px; }
  .app-search { width: auto; flex: 1; }
  .topbar-actions button { display: none; }
  .app-content { padding: 22px 14px 40px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; padding-inline: 10px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .panel-wide { padding: 17px; min-height: 350px; }
  .large-chart { padding-left: 32px; }
  .large-chart svg { height: 220px; }
  .dashboard-modules { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Functional module pages */
.page-heading { margin-bottom: 20px; }
.data-panel { padding: 20px; }
.data-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.filter-form { flex: 1; }
.search-box { max-width: 610px; height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 13px; border: 1px solid #dfe6ef; border-radius: 12px; background: #fbfcfe; }
.search-box > span { color: #8491a5; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .78rem; }
.search-box .btn { min-height: 36px; margin-right: 4px; }
.record-count { color: #8995a6; font-size: .68rem; white-space: nowrap; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #edf1f6; border-radius: 13px; }
.data-table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; }
.data-table th { padding: 12px 14px; color: #7c899d; background: #f7f9fc; border-bottom: 1px solid #e8edf4; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 14px; color: #526078; border-bottom: 1px solid #edf1f6; font-size: .7rem; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcff; }
.entity-cell { min-width: 220px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.entity-cell > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); font-size: .72rem; font-weight: 850; }
.entity-cell strong, .entity-cell small, .table-primary, .table-secondary { display: block; }
.entity-cell strong, .table-primary { color: #334158; font-size: .71rem; }
.entity-cell small, .table-secondary { margin-top: 2px; color: #929dac; font-size: .59rem; font-weight: 500; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: .56rem; font-weight: 800; text-transform: capitalize; }
.badge-success { color: #10754e; background: rgba(22,166,106,.10); }
.badge-status { color: #445470; background: #eef2f7; }
.badge-low { color: #417395; background: rgba(59,203,255,.12); }
.badge-normal { color: #315fd2; background: rgba(47,107,255,.10); }
.badge-high { color: #9a5b0b; background: rgba(244,155,41,.13); }
.badge-urgent { color: #a72d3c; background: rgba(225,75,90,.12); }
.large-empty { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.large-empty > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: var(--blue); background: linear-gradient(135deg, rgba(47,107,255,.10), rgba(139,92,255,.10)); font-size: 1.6rem; }
.large-empty h2 { margin: 17px 0 7px; color: var(--ink); font-size: 1.1rem; }
.large-empty p { max-width: 430px; margin: 0 0 20px; color: #8995a7; font-size: .76rem; }
.form-panel { padding: 25px; }
.entity-form { display: grid; gap: 0; }
.form-section { display: grid; grid-template-columns: minmax(180px,.38fr) 1fr; gap: 40px; padding: 27px 0; border-bottom: 1px solid #e9edf3; }
.form-section:first-of-type { padding-top: 5px; }
.form-section > div:first-child h2 { margin: 0 0 5px; color: var(--ink); font-size: .94rem; }
.form-section > div:first-child p { margin: 0; color: #8b97a8; font-size: .66rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; color: #45536a; font-size: .68rem; font-weight: 720; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce3ed; border-radius: 11px; color: var(--ink); background: #fbfcfe; outline: 0; transition: border-color .18s, box-shadow .18s, background .18s; }
.field input, .field select { height: 46px; padding: 0 13px; }
.field textarea { padding: 12px 13px; resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(47,107,255,.6); background: white; box-shadow: 0 0 0 4px rgba(47,107,255,.08); }
.inline-field { display: flex; align-items: center; gap: 10px; }
.inline-field select { width: 180px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; }
.control-kpis { margin-bottom: 14px; }
.control-table { margin-top: 14px; }
.control-table .panel-head { margin-bottom: 17px; }

@media (max-width: 740px) {
  .data-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .record-count { padding-left: 2px; }
  .form-section { grid-template-columns: 1fr; gap: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-panel, .data-panel { padding: 16px; }
  .inline-field { align-items: stretch; flex-direction: column; }
  .inline-field select { width: 100%; }
}
