:root {
  --bg: #050816;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f8fbff;
  --muted: #9ea8bd;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --success: #2ee59d;
  --warning: #facc15;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.28), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.22), transparent 26%),
    linear-gradient(135deg, #050816 0%, #071022 46%, #050816 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  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: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.32;
  pointer-events: none;
}

.orb-one { background: var(--accent); left: -110px; top: 160px; }
.orb-two { background: var(--accent-2); right: -140px; bottom: 120px; }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(6,182,212,0.8));
  box-shadow: 0 0 28px rgba(124,58,237,0.28);
  font-weight: 800;
}

.brand-title { font-weight: 800; letter-spacing: -0.03em; }
.brand-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }

.status-pill {
  border: 1px solid rgba(46,229,157,0.28);
  background: rgba(46,229,157,0.1);
  color: #b8ffe0;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(46,229,157,0.7);
  animation: pulse 1.8s infinite;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 46px;
  align-items: center;
  padding: 56px clamp(20px, 5vw, 72px) 42px;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin: 0 0 24px;
  max-width: 900px;
}

.hero-copy p {
  color: #c4ccdb;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  max-width: 690px;
  margin: 0 0 30px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
}

.system-card,
.dashboard-preview,
.features article {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 70px rgba(0,0,0,0.28);
}

.small-card {
  border-radius: 18px;
  padding: 16px;
}

.small-card span,
.metric-card span,
.muted,
.chart-top small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.small-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.dashboard-preview {
  border-radius: 30px;
  padding: 22px;
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}

.preview-header,
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-header h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -0.04em; }

.live-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(46,229,157,0.1);
  color: #b8ffe0;
  font-size: 12px;
  font-weight: 800;
}

.live-dot span { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  padding: 17px;
}

.metric-card strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.05em;
  margin: 9px 0 6px;
}

.metric-card small { color: #a7f3d0; }

.chart-card,
.stream-card {
  border-radius: 24px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px;
  margin-top: 12px;
}

.bars {
  height: 140px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.bars i {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 30px rgba(6,182,212,0.22);
  animation: grow 1.1s ease both;
}

.stream-card { display: grid; gap: 12px; }
.stream-row { color: #d3daea; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.stream-row span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 15px rgba(6,182,212,0.7); }

.features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px) 60px;
}

.features article {
  border-radius: 26px;
  padding: 26px;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124,58,237,0.2);
  color: #ddd6fe;
  font-weight: 800;
  margin-bottom: 18px;
}

.features h3 { margin: 0 0 10px; font-size: 20px; }
.features p { margin: 0; color: var(--muted); line-height: 1.7; }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 13px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,229,157,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46,229,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); }
}

@keyframes grow {
  from { transform: scaleY(0.2); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .dashboard-preview { transform: none; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { align-items: flex-start; gap: 18px; flex-direction: column; }
  .hero-actions { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
