:root {
  --bg: #02040a;
  --bg2: #07111d;
  --panel: rgba(5, 18, 32, 0.72);
  --panel2: rgba(2, 8, 16, 0.88);
  --cyan: #72f7ff;
  --blue: #4b8dff;
  --violet: #9b6cff;
  --green: #b7ffd2;
  --white: #f4fdff;
  --muted: #85b5c9;
  --line: rgba(114, 247, 255, 0.28);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 42px rgba(114, 247, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: Rajdhani, Bahnschrift, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 16%, rgba(114, 247, 255, 0.18), transparent 23%),
    radial-gradient(circle at 80% 30%, rgba(155, 108, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #03050d, #07111d 48%, #010207);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(114, 247, 255, 0.055) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(114, 247, 255, 0.045) 0 1px, transparent 1px 72px),
    linear-gradient(110deg, transparent 0 20%, rgba(114, 247, 255, 0.1) 24%, transparent 31% 64%, rgba(155, 108, 255, 0.08) 70%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0 68%, transparent 92%);
  animation: gridMove 16s linear infinite;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.particle-field, .scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.particle-field { z-index: 1; }
.scanlines {
  z-index: 70;
  opacity: 0.14;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  z-index: 90;
  inset: 0 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 3vw, 52px);
  background: linear-gradient(180deg, rgba(2, 4, 10, .9), rgba(2, 4, 10, .2));
  border-bottom: 1px solid rgba(114, 247, 255, .14);
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled {
  background: rgba(2, 5, 12, .88);
  box-shadow: 0 0 28px rgba(114, 247, 255, .14);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 900;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(114, 247, 255, .56);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,247,255,.22), rgba(3,12,22,.95) 70%);
  box-shadow: 0 0 24px rgba(114,247,255,.24);
}
.main-nav, .secure-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  color: #e8fbff;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
.main-nav a, .secure-badges span {
  padding: 9px 0;
}
.secure-badges span {
  border: 1px solid rgba(183,255,210,.3);
  padding: 8px 12px;
  color: var(--green);
  background: rgba(3, 18, 20, .46);
  clip-path: polygon(10% 0,100% 0,90% 100%,0 100%);
}

.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(114, 247, 255, .55);
  color: #fff;
  background: linear-gradient(90deg, rgba(114,247,255,.16), rgba(183,255,210,.1), rgba(155,108,255,.12)), rgba(2,9,18,.8);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(12% 0,100% 0,88% 100%,0 100%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn-secondary { background: rgba(8, 12, 30, .62); border-color: rgba(155,108,255,.45); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(114,247,255,.28); }

.public-home, .login-page, .app-shell {
  position: relative;
  z-index: 5;
}
.public-hero {
  min-height: 100vh;
  width: min(1500px, 94vw);
  margin: 0 auto;
  padding: 110px 0 40px;
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(520px, 1.1fr);
  gap: clamp(24px, 5vw, 90px);
  align-items: center;
  perspective: 1400px;
}
.public-copy {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(6,20,34,.74), rgba(2,5,13,.82));
  box-shadow: var(--shadow);
  clip-path: polygon(0 0,92% 0,100% 18%,100% 100%,8% 100%,0 84%);
  backdrop-filter: blur(16px);
  animation: panelIn .85s cubic-bezier(.2,.82,.2,1) both, panelFloat 6s ease-in-out 1s infinite;
}
.eyebrow {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 12px;
  font-weight: 900;
}
.public-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(92px, 12vw, 190px);
  line-height: .82;
  color: transparent;
  background: linear-gradient(100deg, #fff, var(--cyan), var(--green), #fff);
  -webkit-background-clip: text;
  background-clip: text;
}
.public-copy h2, .login-card h1, .module-hero h1 {
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}
.public-copy p:not(.eyebrow), .public-about p, .login-hint, .module-hero p {
  color: #dff6fb;
  font-size: 19px;
  line-height: 1.35;
}
.hero-actions, .module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.public-eva, .core-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 760px;
  transform-style: preserve-3d;
}
.eva-image, .eva-placeholder {
  position: relative;
  z-index: 12;
  width: min(650px, 100%);
  max-height: 820px;
  object-fit: contain;
  filter: contrast(1.12) brightness(1.08) saturate(1.1) drop-shadow(0 45px 55px rgba(0,0,0,.78)) drop-shadow(0 0 52px rgba(114,247,255,.38));
  animation: evaFloat 4.8s ease-in-out infinite, holoGlitch 8s steps(1,end) infinite;
}
.eva-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: .72;
  border: 1px solid rgba(114,247,255,.42);
  color: var(--cyan);
  background: radial-gradient(circle, rgba(114,247,255,.18), rgba(2,8,16,.9));
  font-size: 42px;
  letter-spacing: .22em;
}
.eva-halo, .eva-ring, .eva-scan, .eva-platform, .core-ring, .core-scan {
  position: absolute;
  pointer-events: none;
}
.eva-halo {
  width: 720px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 36%, rgba(183,255,210,.36), transparent 30%), radial-gradient(ellipse at 50% 55%, rgba(114,247,255,.28), transparent 52%);
  filter: blur(18px);
  animation: auraPulse 3.2s ease-in-out infinite;
}
.eva-ring, .core-ring {
  border-radius: 50%;
  border: 1px solid rgba(114,247,255,.28);
  box-shadow: 0 0 44px rgba(114,247,255,.12), inset 0 0 36px rgba(114,247,255,.08);
}
.ring-a, .core-ring.r1 { width: 720px; height: 720px; animation: spin 18s linear infinite; }
.ring-b, .core-ring.r2 { width: 960px; height: 370px; transform: rotateX(72deg); animation: spinReverse 15s linear infinite; }
.core-ring.r3 { width: 460px; height: 840px; transform: rotateY(68deg); animation: spin 12s linear infinite; border-color: rgba(155,108,255,.24); }
.eva-scan, .core-scan {
  z-index: 14;
  width: 520px;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(114,247,255,.32), rgba(183,255,210,.22), transparent);
  filter: blur(8px);
  animation: scanPass 3s ease-in-out infinite;
}
.eva-platform {
  z-index: 8;
  bottom: 13%;
  width: 620px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(114,247,255,.32), transparent 70%);
  filter: blur(6px);
  animation: platformPulse 2.4s ease-in-out infinite;
}
.public-about {
  width: min(900px, 90vw);
  margin: 0 auto;
  padding: 80px 0 120px;
  text-align: center;
}
.public-about h2 {
  margin: 10px 0;
  font-size: clamp(34px, 4vw, 66px);
  line-height: .95;
  text-transform: uppercase;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 20px 50px;
}
.login-shell {
  position: relative;
  width: min(520px, 94vw);
}
.security-scan {
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  border: 1px solid rgba(114,247,255,.24);
  background: conic-gradient(from 0deg, rgba(183,255,210,.26), transparent 20%, transparent);
  animation: spin 4s linear infinite;
}
.login-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(6,20,34,.8), rgba(2,5,13,.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  clip-path: polygon(8% 0,100% 0,92% 100%,0 100%);
}
.login-card label span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.login-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(114,247,255,.24);
  background: rgba(0,0,0,.38);
  color: #fff;
  outline: none;
}
.login-card input:focus { border-color: rgba(183,255,210,.78); box-shadow: 0 0 20px rgba(114,247,255,.18); }
.form-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 95, 140, .4);
  color: #ffd4df;
  background: rgba(80, 10, 30, .32);
}
.back-link { color: var(--muted); text-align: center; }

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
  padding-top: 70px;
}
.eva-sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  z-index: 20;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 14px;
  border-right: 1px solid rgba(114,247,255,.16);
  background: rgba(2, 6, 14, .62);
  backdrop-filter: blur(16px);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  color: #dff8ff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  border: 1px solid transparent;
  background: rgba(6, 20, 34, .32);
  clip-path: polygon(8% 0,100% 0,92% 100%,0 100%);
}
.side-link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(114,247,255,.34);
  color: var(--cyan);
  font-size: 11px;
}
.side-link:hover, .side-link.is-active {
  border-color: rgba(183,255,210,.54);
  box-shadow: 0 0 24px rgba(114,247,255,.16);
  color: #fff;
}
.app-main {
  position: relative;
  z-index: 5;
  padding: 28px clamp(18px, 3vw, 44px) 60px;
}
.breadcrumb {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 18px;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(430px, 1.2fr) minmax(260px, .75fr);
  gap: 18px;
  align-items: center;
  min-height: 720px;
  perspective: 1500px;
}
.system-status-panel, .monitoring-panel, .core-eva, .private-module-card, .eva-terminal, .radar-panel, .module-state, .module-main-panel, .integration-zone {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(6,20,34,.72), rgba(2,5,13,.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  clip-path: polygon(7% 0,100% 0,93% 100%,0 100%);
}
.system-status-panel, .monitoring-panel {
  padding: 22px;
}
.system-status-panel ul { margin: 16px 0 0; padding: 0; list-style: none; color: #dff8ff; }
.system-status-panel li { padding: 9px 0; border-bottom: 1px solid rgba(114,247,255,.12); }
.system-status-panel strong { color: var(--green); }
.core-eva {
  position: relative;
  min-height: 680px;
  padding: 22px;
  text-align: center;
}
.core-eva h1 {
  margin: 4px 0;
  font-size: clamp(58px, 6vw, 112px);
  line-height: .85;
  color: transparent;
  background: linear-gradient(100deg, #fff, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
}
.terminal-line { color: var(--green); text-transform: uppercase; letter-spacing: .12em; min-height: 24px; }
.core-visual {
  min-height: 510px;
}
.dashboard-eva-img { width: min(430px, 100%); }
.monitor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: #e9fbff;
}
.monitor-row i, .module-gauge {
  grid-column: 1 / -1;
  height: 8px;
  border: 1px solid rgba(114,247,255,.22);
  background: rgba(0,0,0,.34);
  overflow: hidden;
}
.monitor-row i::before, .module-gauge i {
  content: "";
  display: block;
  width: var(--level, 72%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--violet));
  box-shadow: 0 0 16px rgba(114,247,255,.32);
}
.private-modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.private-module-card {
  position: relative;
  min-height: 245px;
  padding: 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: cardIn .6s cubic-bezier(.2,.82,.2,1) both;
}
.private-module-card:hover {
  transform: translateY(-10px) rotateX(5deg) translateZ(40px);
  border-color: rgba(183,255,210,.7);
}
.module-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(183,255,210,.44);
  background: radial-gradient(circle, rgba(183,255,210,.18), rgba(2,8,16,.96) 70%);
  font-weight: 900;
}
.private-module-card h2 { margin: 14px 0 8px; font-size: 22px; text-transform: uppercase; }
.private-module-card p { color: #d9f4fb; line-height: 1.25; }
.module-status {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}
.module-gauge { margin: 10px 0 14px; }
.module-gauge i { width: 76%; animation: gaugePulse 2s ease-in-out infinite; }
.dashboard-lower, .module-workspace {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 20px;
}
.eva-terminal, .radar-panel, .module-main-panel, .integration-zone {
  padding: 22px;
}
.eva-terminal h2, .radar-panel h2, .module-main-panel h2, .integration-zone h2 {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
}
.eva-terminal code {
  display: block;
  min-height: 220px;
  color: var(--green);
  line-height: 1.55;
  white-space: pre-line;
}
.radar {
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 12px auto 0;
  border-radius: 50%;
  border: 1px solid rgba(114,247,255,.34);
  background: radial-gradient(circle, rgba(183,255,210,.12), transparent 52%), conic-gradient(from 0deg, rgba(183,255,210,.42), transparent 18%, transparent 100%);
  animation: spin 2.5s linear infinite;
}
.module-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  align-items: stretch;
}
.module-hero > div, .module-state {
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(6,20,34,.72), rgba(2,5,13,.84));
  box-shadow: var(--shadow);
  clip-path: polygon(7% 0,100% 0,93% 100%,0 100%);
}
.module-state {
  display: grid;
  place-items: center;
  text-align: center;
}
.module-state span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(183,255,210,.44);
  color: var(--cyan);
  font-weight: 900;
}
.module-state strong { font-size: 30px; color: var(--green); }
.module-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.feature-tile {
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(114,247,255,.18);
  background: rgba(4, 16, 28, .54);
}
.feature-tile span {
  display: block;
  width: 44px;
  height: 8px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.feature-tile strong { display: block; color: #fff; text-transform: uppercase; }
.feature-tile small, .integration-zone p { color: var(--muted); }
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 30px clamp(18px,4vw,64px);
  border-top: 1px solid rgba(114,247,255,.16);
  color: var(--muted);
  background: rgba(1,3,8,.72);
}
.site-footer strong { color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; }

@keyframes gridMove { to { background-position: 220px 0, 0 180px, 0 0; } }
@keyframes panelIn { from { opacity: 0; transform: translate3d(-60px, 28px, 0) rotateY(12deg); } to { opacity: 1; } }
@keyframes panelFloat { 50% { translate: 0 -10px; } }
@keyframes evaFloat { 0%,100% { translate: 0 0; scale: 1; } 50% { translate: 0 -24px; scale: 1.018; } }
@keyframes holoGlitch { 0%,92%,100% { transform: translateX(0); opacity: 1; } 93% { transform: translateX(2px); opacity: .94; } 94% { transform: translateX(-3px); opacity: 1; } }
@keyframes auraPulse { 50% { opacity: 1; transform: scale(1.08); filter: blur(22px); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes spinReverse { to { rotate: -360deg; } }
@keyframes scanPass { 0%,100% { opacity: 0; translate: 0 -230px; } 18%,72% { opacity: .72; } 52% { translate: 0 140px; } }
@keyframes platformPulse { 50% { opacity: .55; transform: scale(1.16); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; } }
@keyframes gaugePulse { 50% { filter: brightness(1.35); } }

@media (max-width: 1320px) {
  .app-shell { grid-template-columns: 1fr; }
  .eva-sidebar { position: relative; top: auto; height: auto; grid-template-columns: repeat(2, 1fr); }
  .dashboard-hero, .dashboard-lower, .module-workspace, .module-hero { grid-template-columns: 1fr; }
  .private-modules { grid-template-columns: repeat(2, 1fr); }
  .public-hero { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .public-hero, .login-page { padding-top: 140px; }
  .public-eva, .core-visual { min-height: 520px; }
  .eva-image, .eva-placeholder, .dashboard-eva-img { width: min(420px, 94vw); }
  .ring-a, .core-ring.r1 { width: 460px; height: 460px; }
  .ring-b, .core-ring.r2 { width: 580px; height: 220px; }
  .core-ring.r3 { width: 290px; height: 520px; }
  .private-modules, .eva-sidebar, .module-feature-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
