/* AndhraTwin - federation design system (sign-in, landing, dashboard).
   Dark glass command-centre look shared with MahaTwin. Only the three
   federation pages load this file; the consoles keep css/console.css. */
:root {
  --bg: #050914; --bg2: #0a1224; --panel: rgba(12, 19, 36, .74); --panel-hi: rgba(22, 33, 58, .8);
  --line: rgba(148, 163, 184, .13); --line-hi: rgba(148, 163, 184, .26);
  --text: #e6edf7; --muted: #8b9bb7; --dim: #5d6c88;
  --accent: #22d3ee; --accent-2: #a78bfa;
  --ok: #34d399; --warn: #fbbf24; --crit: #fb4467; --info: #60a5fa;
  --r: 14px;
  --f-ui: 'Space Grotesk', system-ui, sans-serif; --f-display: 'Marcellus SC', 'Space Grotesk', serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(148,163,184,.18); border-radius: 8px; }

.glass { background: var(--panel); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); border-radius: var(--r); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; transition: .2s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #6366f1)); color: #031018; box-shadow: 0 8px 28px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-hi); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-hi); color: var(--muted); white-space: nowrap; }
.chip.live { color: var(--ok); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.chip.down { color: var(--crit); border-color: rgba(251,68,103,.35); background: rgba(251,68,103,.08); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.eyebrow { font: 600 11px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.st-ok { color: var(--ok); } .st-warn { color: var(--warn); } .st-crit { color: var(--crit); } .st-info { color: var(--info); }

/* brand: a Godavari-wave mark on the federation's gradient */
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-display); letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: conic-gradient(from 210deg, #22d3ee, #a78bfa, #fb7185, #f59e0b, #22d3ee); box-shadow: 0 0 22px -4px rgba(34,211,238,.7); }
.brand-mark svg { width: 17px; height: 17px; stroke: #04101a; stroke-width: 2.4; }
.brand small { display: block; font: 500 10.5px/1.2 var(--f-ui); color: var(--muted); letter-spacing: .06em; margin-top: 3px; }

/* ═════════════ SIGN-IN — glass + holographic twin carousel ═════════════ */
@property --lg-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.login-body { background: #04070f; }
.login { --tc: #22d3ee; min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(400px, 480px); position: relative; overflow: hidden; isolation: isolate; }
#login-bg { position: absolute; inset: 0; z-index: 0; }
#login-bg canvas { display: block; }
.lg-aurora { position: absolute; inset: -10%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .55; filter: blur(70px); }
.lg-aurora i { position: absolute; border-radius: 50%; animation: lg-drift 22s ease-in-out infinite alternate; }
.lg-aurora i:nth-child(1) { width: 42vw; height: 42vw; left: -8vw; top: -14vw; background: radial-gradient(circle, rgba(34,211,238,.45), transparent 65%); }
.lg-aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 4vw; top: -10vw; background: radial-gradient(circle, rgba(167,139,250,.42), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.lg-aurora i:nth-child(3) { width: 46vw; height: 30vw; left: 18vw; bottom: -16vw; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 40%, transparent), transparent 65%); animation-duration: 25s; animation-delay: -12s; transition: background 1.2s; }
@keyframes lg-drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, 3vw) scale(1.12); } 100% { transform: translate(-3vw, 5vw) scale(.94); } }
.lg-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.twin-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.twin-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 999px; white-space: nowrap;
  font: 600 10.5px/1 var(--f-ui); letter-spacing: .04em; color: #dbe7f7; background: rgba(8,14,30,.45); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); transition: opacity .4s, background .4s, border-color .4s, box-shadow .4s; will-change: transform, opacity; }
.twin-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.twin-tag.on { background: color-mix(in srgb, var(--c) 22%, rgba(8,14,30,.6)); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 24px -4px color-mix(in srgb, var(--c) 70%, transparent); font-size: 11.5px; }
.login-hero { position: relative; z-index: 3; padding: 40px 52px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,7,15,.75) 0%, rgba(4,7,15,.15) 34%, transparent 55%, rgba(4,7,15,.55) 82%, rgba(4,7,15,.8) 100%); }
.login-hero > * { pointer-events: auto; }
.lg-headline { max-width: 440px; }
.lg-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 11px; border-radius: 999px; font: 600 10.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: #a5f3fc;
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); backdrop-filter: blur(10px); }
.lg-badge .pulse { color: var(--accent); }
.login-hero h1 { font: 700 clamp(32px, 3.2vw, 50px)/1.04 var(--f-display); letter-spacing: -.035em; margin: 18px 0 14px; max-width: 13ch; text-shadow: 0 2px 30px rgba(4,7,15,.6); }
.login-hero h1 em { font-style: normal; background: linear-gradient(90deg, #22d3ee, #a78bfa 40%, #fb7185 70%, #22d3ee); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lg-shine 8s linear infinite; }
@keyframes lg-shine { to { background-position: -200% 0; } }
.login-hero p { color: #9fb0cc; font-size: 14.5px; line-height: 1.6; max-width: 42ch; margin: 0; text-shadow: 0 1px 12px rgba(4,7,15,.9); }
.spotlight, .twin-dock, .login-card {
  background: linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 38%, rgba(12,20,40,.30));
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.03), 0 30px 70px -30px rgba(0,0,0,.85); }
.lg-bottom { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.spotlight { --tc: #22d3ee; position: relative; padding: 16px 18px 14px; border-radius: 18px; overflow: hidden; transition: border-color .6s; border-color: color-mix(in srgb, var(--tc) 30%, rgba(255,255,255,.1)); }
.spotlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 60%); pointer-events: none; }
.sp-head { position: relative; display: flex; align-items: center; gap: 12px; }
.sp-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); box-shadow: 0 0 22px -6px var(--tc); transition: .6s; }
.sp-ico svg { width: 19px; height: 19px; }
.sp-title { display: flex; flex-direction: column; min-width: 0; }
.sp-domain { font: 600 10px/1.2 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--tc); transition: color .6s; }
.sp-title b { font: 600 16.5px/1.3 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-kind { margin-left: auto; flex: none; white-space: nowrap; font: 600 10px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: #cbd5e1; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.spotlight p { position: relative; margin: 10px 0 12px; color: #a8b6cf; font-size: 13px; line-height: 1.5; min-height: 2.9em; }
.sp-stats { position: relative; display: grid; grid-template-columns: repeat(3, auto); gap: 22px; }
.sp-stats b { display: block; font: 600 17px/1.1 var(--f-display); font-feature-settings: "tnum"; }
.sp-stats span { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.sp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.05); }
.sp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, transparent, var(--tc)); box-shadow: 0 0 10px var(--tc); }
.spotlight.swap .sp-title, .spotlight.swap p, .spotlight.swap .sp-stats { animation: lg-swap .55s cubic-bezier(.2,.8,.2,1); }
@keyframes lg-swap { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.twin-dock { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 5px; border-radius: 16px; width: max-content; max-width: 100%; }
.dock-btn { display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 7px; border-radius: 10px; flex: none; font-size: 12px; font-weight: 600; white-space: nowrap; color: #9fb0cc; border: 1px solid transparent; transition: color .25s, background .25s, border-color .25s, box-shadow .25s, gap .3s; }
.dock-btn span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .4s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dock-btn.on { gap: 7px; } .dock-btn.on span { max-width: 140px; opacity: 1; }
.dock-btn svg { width: 15px; height: 15px; color: var(--tc); opacity: .8; }
.dock-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.dock-btn.on { color: #fff; background: color-mix(in srgb, var(--tc) 18%, transparent); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 0 20px -6px var(--tc), inset 0 1px 0 rgba(255,255,255,.12); }
.dock-btn:focus-visible { outline: 2px solid var(--tc); outline-offset: 1px; }
.login-side { position: relative; z-index: 3; display: flex; align-items: center; padding: 32px 40px 32px 8px; }
.login-card { position: relative; width: 100%; padding: 32px 30px 24px; border-radius: 26px; }
.login-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lg-ang), transparent 0 55%, rgba(34,211,238,.9) 70%, rgba(167,139,250,.9) 80%, rgba(251,113,133,.7) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lg-spin 7s linear infinite; opacity: .75; }
@keyframes lg-spin { to { --lg-ang: 360deg; } }
.lc-glow { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.lc-glow::before { content: ""; position: absolute; width: 70%; height: 55%; left: -15%; top: -20%; background: radial-gradient(circle, rgba(34,211,238,.20), transparent 70%); filter: blur(10px); }
.lc-glow::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.07) 50%, transparent); transform: skewX(-18deg); animation: lg-sheen 9s ease-in-out 1.5s infinite; }
@keyframes lg-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.lc-head { position: relative; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.lc-lock { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #a5f3fc;
  background: linear-gradient(145deg, rgba(34,211,238,.25), rgba(167,139,250,.18)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 30px -10px rgba(34,211,238,.6); }
.login-card h2 { font: 700 25px/1.15 var(--f-display); margin: 0 0 5px; letter-spacing: -.025em; }
.login-card .sub { color: #94a3bf; margin: 0; font-size: 13px; line-height: 1.5; }
.login-card form, .login-card .demo, .login-card .secure, .login-card .err, .login-card .note { position: relative; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11.5px; font-weight: 600; color: #9fb0cc; margin-bottom: 7px; letter-spacing: .06em; text-transform: uppercase; }
.input { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; height: 48px; border-radius: 13px; background: rgba(2,6,16,.42); border: 1px solid rgba(255,255,255,.10); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); transition: .25s; }
.input:hover { border-color: rgba(255,255,255,.18); }
.input:focus-within { border-color: rgba(34,211,238,.7); background: rgba(2,6,16,.6); box-shadow: 0 0 0 4px rgba(34,211,238,.14), 0 0 26px -8px rgba(34,211,238,.6); }
.input svg { color: var(--dim); transition: color .25s; } .input:focus-within > svg { color: var(--accent); }
.input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; font-size: 14.5px; }
.input input::placeholder { color: #4b5a76; }
.pw-toggle { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--dim); transition: .2s; }
.pw-toggle:hover { color: var(--text); background: rgba(255,255,255,.06); }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.lc-submit { position: relative; overflow: hidden; width: 100%; justify-content: center; height: 50px; margin-top: 8px; font-size: 14.5px; border-radius: 13px;
  background: linear-gradient(110deg, #22d3ee, #6f8bff 55%, #a78bfa); color: #04101a; box-shadow: 0 14px 34px -12px rgba(34,211,238,.75), inset 0 1px 0 rgba(255,255,255,.4); }
.lc-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.lc-submit:hover::after { transform: translateX(100%); }
.lc-submit svg { transition: transform .25s; } .lc-submit:hover svg { transform: translateX(3px); }
.lc-submit.busy { pointer-events: none; filter: saturate(.7); }
.lc-submit.busy svg { animation: lg-nudge .8s ease-in-out infinite; }
@keyframes lg-nudge { 50% { transform: translateX(5px); } }
.err { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(251,68,103,.12); border: 1px solid rgba(251,68,103,.35); color: #fda4b6; font-size: 13px; margin-bottom: 16px; animation: lg-shake .4s; }
.err[hidden], .note[hidden] { display: none; }
.note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.28); color: #a5f3fc; font-size: 13px; margin-bottom: 16px; }
@keyframes lg-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.demo { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.demo h4 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.demo h4 em { font-style: normal; letter-spacing: .04em; text-transform: none; color: #4b5a76; }
.demo-user { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; transition: .2s; }
.demo-user:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); transform: translateX(2px); }
.demo-user.on { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.3); }
.demo-user .av { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 12px var(--f-display); background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(167,139,250,.3)); border: 1px solid rgba(255,255,255,.1); }
.demo-user b { display: block; font-size: 13px; } .demo-user span { font-size: 11.5px; color: var(--muted); }
.demo-user code { margin-left: auto; font: 11px var(--f-mono); color: var(--dim); padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.04); }
.secure { display: flex; align-items: center; gap: 7px; justify-content: center; color: var(--dim); font-size: 11.5px; margin-top: 16px; text-align: center; }
.secure svg { width: 14px; height: 14px; }
.lg-in { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: lg-rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes lg-rise { to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 1280px) { .login-hero { padding: 32px 36px 28px; } }
@media (min-width: 1001px) and (max-height: 720px) { .login-hero p { display: none; } .login-hero h1 { font-size: 34px; margin-bottom: 0; } .spotlight p { min-height: 0; } }
@media (max-width: 1000px) {
  .login { grid-template-columns: 1fr; }
  .login-hero, .twin-tags { display: none; }
  .login-side { padding: 24px 16px; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse at center, rgba(4,7,15,.2), rgba(4,7,15,.7)); }
  .login-card { max-width: 440px; }
}
@media (max-width: 420px) { .login-card { padding: 26px 18px 20px; border-radius: 22px; } .lc-lock { display: none; } .demo-user code { display: none; } }
@media (prefers-reduced-motion: reduce) { .lg-aurora i, .login-card::before, .lc-glow::after, .login-hero h1 em { animation: none; } .lg-in { animation-duration: .01s; animation-delay: 0s; } }

/* ═════════════ TOPBAR ═════════════ */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px 28px; background: rgba(5,9,20,.78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topnav { display: flex; gap: 2px; margin-left: 10px; flex-wrap: wrap; }
.topnav a { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); border: 1px solid transparent; transition: .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line); }
.top-clock { font: 500 12px var(--f-mono); color: var(--muted); }
@media (max-width: 1100px) { .topnav { display: none; } }

/* ═════════════ LANDING ═════════════ */
.landing { background: radial-gradient(1200px 600px at 75% -10%, rgba(34,211,238,.10), transparent 60%), radial-gradient(900px 600px at 0% 20%, rgba(167,139,250,.08), transparent 60%), var(--bg); min-height: 100vh; }
.landing .topbar { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(3,6,14,.82), rgba(3,6,14,0)); border-bottom: 0; backdrop-filter: none; }
.hero2 { position: relative; height: 100vh; min-height: 660px; overflow: hidden; background: #02050c; }
.hero-scene { position: absolute; inset: 0; }
.hero-scene .cesium-viewer-bottom, .hero-scene .cesium-widget-credits { display: none !important; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(2,5,12,.9) 0%, rgba(2,5,12,.64) 28%, rgba(2,5,12,0) 55%), linear-gradient(0deg, rgba(2,5,12,.92) 0%, rgba(2,5,12,0) 28%), linear-gradient(180deg, rgba(2,5,12,.55) 0%, rgba(2,5,12,0) 18%); }
.hero2-copy { position: absolute; left: clamp(20px, 4.5vw, 72px); top: 50%; transform: translateY(-58%); max-width: 580px; z-index: 3; }
.hero2-copy h1 { font: 700 clamp(36px, 4vw, 62px)/1.02 var(--f-display); letter-spacing: -.04em; margin: 16px 0 18px; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero2-copy h1 em { font-style: normal; background: linear-gradient(90deg, #67e8f9, #c4b5fd 55%, #fda4af); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2-copy p { color: #b6c2d4; font-size: 15.5px; line-height: 1.6; max-width: 52ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-greet { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 12.5px; color: #94a3b8; }
.hero-greet b { color: #e2e8f0; font-weight: 600; }
.hero2-stats { position: absolute; left: clamp(20px, 4.5vw, 72px); bottom: 34px; z-index: 3; display: flex; }
.hero2-stats > div { padding: 0 24px; border-left: 1px solid rgba(148,163,184,.22); }
.hero2-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero2-stats b { display: block; font: 600 26px/1.05 var(--f-display); letter-spacing: -.02em; color: #f8fafc; font-feature-settings: "tnum"; }
.hero2-stats span { font: 500 10.5px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: #8a97ab; }
.hero2-stats .crit b { color: #fb7185; } .hero2-stats .ok b { color: #34d399; }
.hero2-legend { position: absolute; right: clamp(20px, 3vw, 44px); bottom: 34px; z-index: 3; text-align: right; max-width: 460px; }
.hero2-legend p { margin: 8px 0 8px; font-size: 12px; color: #94a3b8; }
.fed-key { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.fed-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: 5px; }
.fed-tip { position: absolute; z-index: 6; pointer-events: none; padding: 10px 12px; min-width: 220px; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.fed-tip.show { opacity: 1; transform: none; }
.fed-tip b { display: block; font-size: 13px; } .fed-tip span { display: block; color: var(--muted); font-size: 11.5px; }
.hero-zoom { position: absolute; right: clamp(20px, 3vw, 44px); top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 600 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
.scroll-cue svg { width: 14px; height: 14px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }
.block { padding: 64px clamp(16px, 3vw, 32px) 0; max-width: 1560px; margin: 0 auto; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.block-head h2 { font: 700 26px/1.15 var(--f-display); letter-spacing: -.02em; margin: 8px 0 0; }
.block-head p { color: var(--muted); margin: 6px 0 0; max-width: 72ch; }
.filters { display: flex; gap: 6px; }
.filters button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.filters button.on { color: var(--text); border-color: var(--line-hi); background: rgba(255,255,255,.06); }
.twin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.twin-card { --tc: var(--accent); position: relative; padding: 18px 18px 16px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 14px;
  border-radius: 16px; background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(8,13,26,.82)); }
.twin-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 160px at 100% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%); pointer-events: none; }
.twin-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--tc) 55%, transparent); }
.tc-head { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.tc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); flex: none; }
.tc-icon svg { width: 21px; height: 21px; }
.tc-title b { display: block; font: 600 15.5px/1.25 var(--f-display); }
.tc-title span { font-size: 12px; color: var(--muted); }
.tc-ring { margin-left: auto; position: relative; width: 48px; height: 48px; flex: none; }
.tc-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.tc-ring circle.hr { transition: stroke-dashoffset .9s ease; }
.tc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px var(--f-mono); }
.tc-tag { position: relative; font-size: 12.5px; color: var(--muted); margin: 0; min-height: 38px; }
.tc-kpis { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-kpi { padding: 8px 10px; border-radius: 10px; background: rgba(2,6,16,.45); border: 1px solid var(--line); min-width: 0; }
.tc-kpi span { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-kpi b { font: 600 14.5px/1.3 var(--f-mono); white-space: nowrap; }
.tc-kpi small { color: var(--dim); font-size: 10.5px; margin-left: 2px; }
.tc-alert { position: relative; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); min-height: 18px; }
.tc-alert svg { width: 15px; height: 15px; }
.tc-foot { position: relative; display: flex; align-items: center; gap: 8px; margin-top: auto; }
.tc-foot .btn { margin-left: auto; }
/* Living glass (as MahaTwin): a light traces each card's border in the twin's own
   colour, a sheen crosses the glass, and cards rise in one after another on scroll. */
@property --trace { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes trace-spin { to { --trace: 360deg; } }
@keyframes glass-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 60%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes card-rise { from { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kpi-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kpi-bump { 0% { color: var(--tc); text-shadow: 0 0 12px var(--tc); } 100% { color: inherit; text-shadow: none; } }
.twin-card, .console-card { isolation: isolate; }
.twin-card::after, .console-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--trace), rgba(255,255,255,.05) 0deg, rgba(255,255,255,.05) 180deg,
    color-mix(in srgb, var(--tc, #22d3ee) 35%, transparent) 240deg, var(--tc, #22d3ee) 296deg, #ffffff 320deg, #a78bfa 338deg, rgba(255,255,255,.05) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: trace-spin 6s linear infinite; animation-delay: calc(var(--i, 0) * -0.67s); opacity: .9; }
.twin-card:hover::after { animation-duration: 2.4s; }
.twin-card .sheen, .console-card .sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 1; }
.twin-card .sheen::before, .console-card .sheen::before { content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: glass-sheen 8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .9s); }
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: card-rise .7s cubic-bezier(.22,.8,.24,1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
.twin-card.in .tc-kpi { animation: kpi-rise .5s ease backwards; animation-delay: calc(var(--i, 0) * 80ms + 280ms + var(--k, 0) * 90ms); }
.tc-kpi b.bump { animation: kpi-bump 1.1s ease-out; }
.twin-card.locked::after { opacity: .25; animation-duration: 14s; }
.twin-card.locked { opacity: .45; filter: saturate(.3); }
.twin-card.locked.in { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  .twin-card::after, .console-card::after, .twin-card .sheen::before, .console-card .sheen::before { animation: none; }
  .reveal { opacity: 1; } .reveal.in, .twin-card.in .tc-kpi { animation: none; }
}
.twin-card.locked .tc-foot .btn { pointer-events: none; }
.console-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.console-card { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 8px; border-radius: 16px; transition: .25s; }
.console-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.4); }
.console-card .ci { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); }
.console-card b { font: 600 16px var(--f-display); }
.console-card p { margin: 0; color: var(--muted); font-size: 12.5px; }
.console-card .go { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 600; font-size: 12.5px; }
.ticker-wrap { overflow: hidden; border-radius: 14px; padding: 10px 0; }
.ticker { display: flex; gap: 48px; width: max-content; white-space: nowrap; font-size: 12.5px; color: var(--muted); animation: tick 60s linear infinite; padding-left: 20px; }
.ticker span b { color: var(--text); font-weight: 600; }
@keyframes tick { to { transform: translateX(-50%); } }
.footer { padding: 48px 32px 34px; color: var(--dim); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1560px; margin: 0 auto; }
@media (max-width: 1280px) { .hero2-legend { display: none; } }
@media (max-width: 900px) {
  .hero2-copy { top: 104px; transform: none; }
  .hero2-stats { flex-wrap: wrap; row-gap: 14px; bottom: 120px; }
  .hero2-stats > div { padding: 0 14px; }
  .hero2-legend { left: 16px; right: 16px; text-align: left; } .fed-key { justify-content: flex-start; }
  .hero-zoom { display: none; }
}

/* ═════════════ DASHBOARD ═════════════ */
.dash { background: radial-gradient(1100px 520px at 85% -12%, rgba(34,211,238,.09), transparent 60%), radial-gradient(800px 520px at -5% 30%, rgba(167,139,250,.07), transparent 60%), var(--bg); min-height: 100vh; }
.dash-main { max-width: 1600px; margin: 0 auto; padding: 22px clamp(16px, 2.5vw, 32px) 40px; display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font: 700 30px/1.1 var(--f-display); letter-spacing: -.02em; margin: 8px 0 4px; }
.dash-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dash-head .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpi-tile { position: relative; padding: 14px 16px 12px; border-radius: 16px; overflow: hidden; min-height: 108px; display: flex; flex-direction: column; }
.kpi-tile::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k, var(--accent)); opacity: .85; }
.kpi-tile .l { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 6px; align-items: center; }
.kpi-tile .l svg { width: 14px; height: 14px; color: var(--k, var(--accent)); }
.kpi-tile .v { font: 600 27px/1.15 var(--f-display); margin-top: 8px; font-feature-settings: "tnum"; }
.kpi-tile .v small { font: 500 12px var(--f-ui); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi-tile .s { font-size: 11.5px; color: var(--dim); margin-top: auto; padding-top: 4px; }
.kpi-tile .spark { position: absolute; right: 10px; top: 12px; width: 76px; height: 28px; opacity: .9; }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.panel { padding: 16px 18px; border-radius: 16px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-h h3 { margin: 0; font: 600 15.5px var(--f-display); letter-spacing: .01em; }
.panel-h span { font-size: 11.5px; color: var(--dim); }
.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; }
@media (max-width: 1200px) { .span-8, .span-4, .span-6, .span-5, .span-7 { grid-column: span 12; } }
.vrow { display: grid; grid-template-columns: 180px 1fr 56px; gap: 12px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.vrow .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; }
.vrow .bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.05); gap: 2px; }
.vrow .bar i { display: block; height: 100%; }
.vrow .h { font: 600 12px var(--f-mono); text-align: right; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ghat { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(2,6,16,.4); border: 1px solid var(--line); }
.ghat b { font-size: 13px; } .ghat .r { font: 600 10.5px var(--f-ui); text-transform: uppercase; letter-spacing: .08em; }
.ghat .gb { grid-column: span 2; height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.ghat .gb i { display: block; height: 100%; border-radius: inherit; }
.ghat .m { grid-column: span 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; font: 500 11px var(--f-mono); color: var(--muted); }
.ghat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.trend { width: 100%; height: 190px; }
.trend text { font: 500 10.5px var(--f-mono); fill: var(--dim); }
.feed { display: flex; flex-direction: column; gap: 2px; max-height: 330px; overflow: auto; }
.feed-row { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.feed-row time { font: 500 11px var(--f-mono); color: var(--dim); }
.feed-row .sev { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.stat-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-pair > div { padding: 10px 12px; border-radius: 12px; background: rgba(2,6,16,.4); border: 1px solid var(--line); }
.stat-pair span { display: block; font-size: 11px; color: var(--muted); }
.stat-pair b { font: 600 17px/1.3 var(--f-mono); }
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fleet > div { padding: 12px; border-radius: 12px; background: rgba(2,6,16,.4); border: 1px solid var(--line); text-align: center; }
.fleet img { width: 52px; height: 52px; display: block; margin: 0 auto 4px; }
.fleet b { display: block; font: 600 18px var(--f-mono); } .fleet span { font-size: 11px; color: var(--muted); }
.sess-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sess-table th { text-align: left; font: 600 10.5px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sess-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sess-table tr.cur td { background: rgba(34,211,238,.05); }
.sess-table .who { display: flex; gap: 9px; align-items: center; }
.sess-table .av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 11px var(--f-ui); color: #04101a; background: linear-gradient(135deg, #22d3ee, #a78bfa); flex: none; }
.sess-table .tag { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #67e8f9; margin-left: 6px; }
.sess-table .exp { font: 500 11.5px var(--f-mono); color: var(--muted); }
.empty { padding: 16px; text-align: center; color: var(--dim); font-size: 12.5px; }
