:root {
  --bg: #07070f;
  --bg-card: #0e0d1a;
  --bg-line: #16152a;
  --text: #e8e6f0;
  --sub: #807ca0;
  --dim: #3a3860;
  --accent: #8b7fd4;
  --mono: "JetBrains Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --slnn: #4fb5ff;
  --pid: #ff6b5f;
  --live: #4ee083;
  --demo: #f5b041;
  --connecting: #93a5bd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at top, rgba(76, 20, 20, 0.26), transparent 28%),
    linear-gradient(180deg, #090910 0%, #07070f 55%, #06060c 100%);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #07070fd9;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-line);
}

.nav-inner,
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-contact {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #9490b0;
  border: 1px solid #504d70;
  padding: 0.45rem 1.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.nav-contact:hover {
  color: var(--text);
  border-color: var(--accent);
}

.logo-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: "Syne", var(--sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-sub {
  display: flex;
  justify-content: space-between;
  gap: 0.12rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.logo-gap { opacity: 0; }

.page-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 120px 0 40px;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.subtitle {
  max-width: 860px;
  margin: 1.1rem auto 0;
  color: #c9c6da;
  font-size: 1.04rem;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.badge.slnn {
  background: rgba(26, 58, 92, 0.8);
  color: var(--slnn);
  border: 1px solid rgba(79, 181, 255, 0.28);
}

.badge.pid {
  background: rgba(58, 26, 26, 0.8);
  color: var(--pid);
  border: 1px solid rgba(255, 107, 95, 0.28);
}

.badge.status { border: 1px solid transparent; }
.badge.status.connecting {
  background: rgba(90, 102, 120, 0.2);
  color: var(--connecting);
  border-color: rgba(147, 165, 189, 0.25);
}
.badge.status.live {
  background: rgba(38, 91, 48, 0.28);
  color: var(--live);
  border-color: rgba(78, 224, 131, 0.3);
}
.badge.status.demo {
  background: rgba(94, 68, 18, 0.28);
  color: var(--demo);
  border-color: rgba(245, 176, 65, 0.3);
}
.badge.status.error {
  background: rgba(85, 27, 27, 0.28);
  color: #ff8d8d;
  border-color: rgba(255, 141, 141, 0.3);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%);
}

.panel-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(8, 8, 10, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label.pid { color: var(--pid); }
.panel-label.slnn { color: var(--slnn); }

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 580 / 520;
  background: #050505;
}

.site-footer {
  border-top: 1px solid var(--bg-line);
  margin-top: 28px;
  color: #6a6488;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100vw - 20px, 860px);
    padding-top: 104px;
  }

  .nav-inner,
  .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .demo-grid { grid-template-columns: 1fr; }
  .subtitle br { display: none; }
}

@media (max-width: 640px) {
  .nav-contact { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
