:root {
  --bg: #08111f;
  --bg-soft: #0e1a2f;
  --card: rgba(13, 22, 40, 0.76);
  --card-border: rgba(122, 166, 255, 0.2);
  --text: #eff5ff;
  --muted: #a9b8d6;
  --primary: #4dd7ff;
  --primary-2: #7b61ff;
  --accent: #19e6a8;
  --warning: #ffb86b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(77, 215, 255, 0.12), transparent 22%),
    radial-gradient(circle at 80% 15%, rgba(123, 97, 255, 0.14), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(77, 215, 255, 0.04) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at right top, rgba(123, 97, 255, 0.18), transparent 26%),
    linear-gradient(160deg, #07101c 0%, #0b1526 55%, #050a12 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 14px 18px; border: 1px solid var(--card-border); border-radius: 999px;
  background: rgba(9, 16, 29, 0.72); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  position: sticky; top: 16px; z-index: 10;
}
.brand {
  display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px;
  border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.brand-mark {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #66e8ff 0%, #7b61ff 55%, #19e6a8 100%);
  color: #04111b; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(77, 215, 255, 0.28), 0 0 0 1px rgba(255,255,255,0.16) inset;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(135deg, transparent 35%, rgba(255,255,255,0.5), transparent 65%);
  transform: rotate(18deg);
  animation: logoShine 4.8s linear infinite;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
}
.brand strong, .brand small { display: block; }
.brand strong {
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
.brand small {
  color: #a9b8d6; font-size: 12px; margin-top: 3px; letter-spacing: 0.04em;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-link {
  padding: 10px 16px; border-radius: 999px; color: var(--muted); border: 1px solid transparent;
  transition: 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: #ffffff; border-color: rgba(77, 215, 255, 0.5); background: rgba(77, 215, 255, 0.14); }
.nav-link.active {
  position: relative;
  box-shadow: 0 0 0 1px rgba(77, 215, 255, 0.12) inset, 0 8px 20px rgba(77, 215, 255, 0.12);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
  padding: 48px 0 28px;
}
.hero-content, .hero-visual, .feature-card, .gallery-section, .panel, .glass-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-content { padding: 42px; }
.badge {
  display: inline-flex; padding: 8px 14px; border-radius: 999px; color: #c9f7ff;
  background: rgba(77, 215, 255, 0.1); border: 1px solid rgba(77, 215, 255, 0.16); font-size: 12px; letter-spacing: 0.08em;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.03; margin: 18px 0; }
.hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; max-width: 58ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.btn {
  padding: 14px 22px; border-radius: 999px; font-weight: 700; transition: 0.2s ease; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #04111b; }
.btn-secondary { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.btn:hover { transform: translateY(-1px); }

.float-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.float-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  border-color: rgba(77, 215, 255, 0.34);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  position: relative;
  overflow: hidden;
}

.hero-content::after {
  content: '';
  position: absolute;
  inset: auto -20% -35% 45%;
  height: 220px;
  background: radial-gradient(circle, rgba(77, 215, 255, 0.28), transparent 70%);
  filter: blur(12px);
  animation: pulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 215, 255, 0.08), transparent 42%, rgba(123, 97, 255, 0.14));
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-visual img {
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat-card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.04); }
.stat-card strong { display: block; font-size: 1.5rem; }
.stat-card span { color: var(--muted); font-size: 0.92rem; }
.hero-visual { padding: 16px; position: relative; overflow: hidden; }
.hero-visual::after {
  content: ''; position: absolute; inset: auto 18px 18px 18px; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.8)); border-radius: 0 0 18px 18px;
}
.hero-visual img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; border-radius: calc(var(--radius) - 10px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 24px; }
.feature-grid.compact { grid-template-columns: repeat(3, 1fr); margin: 0; }
.feature-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.feature-card { padding: 24px; }
.feature-card.soft { background: rgba(255,255,255,0.04); border-radius: 20px; }
.feature-card h3, .section-head h2 { margin-top: 0; }
.feature-card p, .section-head p { color: var(--muted); line-height: 1.7; }
.gallery-section { padding: 26px; }
.section-head { margin-bottom: 18px; }
.section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.spotlight { padding: 28px; }
.feature-aside { padding: 28px; display: grid; gap: 18px; }
.check-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }
.mini-highlight { padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(77, 215, 255, 0.12), rgba(123, 97, 255, 0.12)); }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery.gallery-wide img { height: 220px; }
.gallery img { height: 190px; width: 100%; object-fit: cover; border-radius: 18px; }

.monitor-screen {
  min-height: 520px;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(77, 215, 255, 0.15), transparent 35%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.92), rgba(8, 17, 31, 0.72));
  border: 1px solid rgba(77, 215, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.monitor-screen::before,
.monitor-screen::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(77, 215, 255, 0.12);
  animation: pulse 6s ease-in-out infinite;
}

.monitor-screen::after {
  inset: 34px;
  opacity: 0.55;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.screen-kicker {
  display: inline-block;
  color: #7fe8ff;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.screen-header h3 {
  margin: 6px 0 0;
  font-size: 1.4rem;
}

.screen-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(25, 230, 168, 0.12);
  border: 1px solid rgba(25, 230, 168, 0.3);
  color: #a9ffe9;
}

.screen-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.screen-center {
  min-height: 240px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    radial-gradient(circle at center, rgba(77, 215, 255, 0.12), transparent 50%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.screen-radar {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(77, 215, 255, 0.28);
  box-shadow: inset 0 0 30px rgba(77, 215, 255, 0.08);
}

.screen-radar::before,
.screen-radar::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(77, 215, 255, 0.25);
}

.screen-radar::after {
  inset: 42px;
}

.screen-radar {
  animation: radarSweep 5s linear infinite;
}

.screen-core {
  text-align: center;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(6, 12, 22, 0.7);
  border: 1px solid rgba(77, 215, 255, 0.2);
  backdrop-filter: blur(12px);
}

.screen-core strong {
  display: block;
  font-size: 1.35rem;
}

.screen-core span {
  color: var(--muted);
}

.screen-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.screen-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.screen-stat span { display: block; color: var(--muted); font-size: 0.88rem; }
.screen-stat strong { display: block; margin-top: 6px; font-size: 1.35rem; }

.screen-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screen-strip span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(77, 215, 255, 0.08);
  border: 1px solid rgba(77, 215, 255, 0.12);
  color: #c9f7ff;
  animation: chipPulse 3s ease-in-out infinite;
}

.dashboard-marquee {
  display: flex;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0 4px;
  color: #c9f7ff;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.dashboard-marquee span {
  animation: marquee 16s linear infinite;
  text-shadow: 0 0 12px rgba(77, 215, 255, 0.35);
}

@media (max-width: 980px) {
  .screen-stats { grid-template-columns: 1fr 1fr; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.home-dashboard-grid {
  align-items: start;
}

.home-dashboard-wide {
  grid-template-columns: 1.1fr 1fr;
}

.home-dashboard-wide > * {
  min-width: 0;
}

.home-dashboard-panel {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}

.home-status-panel,
.home-radar-panel {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.home-status-panel {
  align-content: start;
}

.home-radar-stage {
  min-height: 220px;
}

.home-ring {
  width: min(240px, 100%);
  margin: 12px auto;
}

.home-metrics-grid {
  margin-top: 18px;
}

.home-status-panel .screen-header,
.home-radar-panel .screen-stats,
.home-radar-panel .screen-strip,
.home-metrics-grid,
.risk-grid,
.metrics-grid {
  min-width: 0;
}

.home-status-panel .status-chips,
.home-radar-panel .screen-strip {
  justify-content: flex-start;
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
}

.alarm-ring {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 24px auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 18%, transparent 19%),
    radial-gradient(circle, rgba(77, 215, 255, 0.16), rgba(123, 97, 255, 0.1) 68%, transparent 69%);
  border: 1px solid rgba(77, 215, 255, 0.26);
  box-shadow: inset 0 0 60px rgba(77, 215, 255, 0.08), 0 0 40px rgba(77, 215, 255, 0.15);
  animation: pulse 4s ease-in-out infinite;
}

.ring-core {
  text-align: center;
}

.ring-core strong {
  display: block;
  font-size: 3.2rem;
  line-height: 1;
}

.ring-core span {
  color: var(--muted);
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.alarm-metrics .metric strong { font-size: 2rem; }

@media (max-width: 980px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
.page-hero { padding: 48px 0 18px; }
.panel { padding: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.timeline { display: grid; gap: 14px; }
.timeline-item { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 0; }
.metric {
  padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.metric strong { display: block; font-size: 1.25rem; margin-bottom: 6px; }
.metric span { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.risk-card {
  padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--primary);
}
.risk-card.warning { border-left-color: var(--warning); }
.risk-card.danger { border-left-color: #ff6b7a; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { padding: 8px 12px; border-radius: 999px; background: rgba(77, 215, 255, 0.08); color: #c9f7ff; border: 1px solid rgba(77, 215, 255, 0.14); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form { display: grid; gap: 12px; }
input, textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: var(--text); font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.map-card { padding: 22px; background: rgba(255,255,255,0.04); border-radius: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.04); color: var(--muted); }
@media (max-width: 980px) {
  .hero, .feature-grid, .gallery, .grid-2, .section-grid, .metrics-grid, .risk-grid, .form-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .feature-grid.compact, .feature-grid.two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .topbar { border-radius: 28px; flex-direction: column; align-items: flex-start; }
  .hero-visual img { min-height: 320px; }
  .brand { width: 100%; }
  .home-status-panel .status-chips,
  .home-radar-panel .screen-strip {
    justify-content: center;
  }
  .dashboard-marquee { font-size: 0.7rem; gap: 14px; }
  .home-dashboard-panel { grid-column: auto; }
}

@keyframes drift {
  from { transform: translate3d(-10px, -10px, 0) scale(1); }
  to { transform: translate3d(10px, 12px, 0) scale(1.04); }
}

@keyframes logoShine {
  0% { transform: translateX(-120%) rotate(18deg); }
  45% { transform: translateX(120%) rotate(18deg); }
  100% { transform: translateX(120%) rotate(18deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes chipPulse {
  0%, 100% { transform: translateY(0); opacity: 0.86; }
  50% { transform: translateY(-2px); opacity: 1; }
}
