:root {
  --bg: #0b1020;
  --bg-soft: #111936;
  --surface: #151d33;
  --surface-light: #1f2a47;
  --text: #f7f8fb;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59, 130, 246, 0.42); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover { background: var(--surface-light); border-color: rgba(255, 255, 255, 0.2); }

.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(139, 92, 246, 0.12), transparent 45%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Dashboard preview */
.hero-visual {
  position: relative;
}

.dashboard-card {
  background: rgba(21, 29, 51, 0.85);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: var(--danger); }
.dot.yellow { background: var(--warning); }
.dot.green { background: var(--success); }

.dashboard-title { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.dashboard-card-body { padding: 22px; }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dash-kpi {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-kpi.alert { border-color: rgba(239, 68, 68, 0.2); background: rgba(239, 68, 68, 0.06); }

.dash-kpi strong { display: block; font-size: 24px; font-weight: 800; color: var(--text); }
.dash-kpi.alert strong { color: var(--danger); }
.dash-kpi span { font-size: 11px; color: var(--text-muted); }

.dash-devices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.dash-device {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.dash-device .dash-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash-device.ok .dash-status { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dash-device.alarm .dash-status { background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: pulse 1.6s infinite; }
.dash-device.disabled .dash-status { background: var(--text-muted); }

.dash-time { margin-left: auto; font-size: 11px; color: var(--text-muted); }

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

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
  padding-top: 10px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  min-height: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent), #8b5cf6);
  opacity: 0.85;
  animation: grow 1.2s ease-out both;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes grow {
  from { height: 0; opacity: 0; }
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(21, 29, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.map-badge { top: 10%; left: -18px; color: var(--accent-light); animation: float 5s ease-in-out infinite 0.5s; }
.alert-badge { bottom: 18%; right: -14px; color: var(--danger); animation: float 5.5s ease-in-out infinite 1s; }

/* Trust */
.trust { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.trust-inner { text-align: center; color: var(--text-muted); font-size: 14px; }
.trust-inner p { margin: 0; }

/* Sections */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* Features */
.features { padding: 90px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* Usecases */
.usecases { padding: 90px 0; background: rgba(255, 255, 255, 0.02); }

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--hue), 70%, 60%, 0.4);
}

.usecase-icon {
  --hue: 217;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(var(--hue), 70%, 55%, 0.12);
  color: hsl(var(--hue), 80%, 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.usecase-icon svg { width: 24px; height: 24px; }

.usecase-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.usecase-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* How it works */
.how-it-works { padding: 90px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.step h3 { font-size: 17px; margin: 0 0 10px; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* Why */
.why { padding: 90px 0; background: rgba(255, 255, 255, 0.02); }

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.why-content h2 { font-size: 34px; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }

.why-lead {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.why-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--success);
}

.why-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 5px;
  height: 8px;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.why-list strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}

.why-visual {
  display: flex;
  justify-content: center;
}

.why-card {
  width: 100%;
  max-width: 360px;
  background: rgba(21, 29, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.why-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.why-card-row:last-child { border-bottom: none; }

.why-label { font-size: 14px; color: var(--text-muted); }
.why-value { font-size: 20px; font-weight: 800; color: var(--accent-light); }

/* Instructions */
.instructions { padding: 90px 0; }

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.instruction-card {
  display: block;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.instruction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.instruction-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.instruction-icon svg { width: 22px; height: 22px; }

.instruction-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.instruction-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* FAQ */
.faq { padding: 90px 0; background: rgba(255, 255, 255, 0.02); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: rgba(255, 255, 255, 0.12); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  display: block;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -14px;
  font-size: 22px;
  color: var(--accent-light);
  transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.faq-item a { color: var(--accent-light); text-decoration: underline; }

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08), transparent 50%);
}

.cta h2 { font-size: 34px; font-weight: 800; margin: 0 auto 12px; max-width: 620px; }
.cta p { color: var(--text-muted); margin-bottom: 28px; }

/* Footer */
.footer {
  padding: 44px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Screenshot helpers (used in instructions) */
.screenshot-grid {
  display: grid;
  gap: 20px;
  margin: 18px 0;
  align-items: start;
}

.screenshot-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.screenshot-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.screenshot-figure {
  margin: 0;
}

.screenshot-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 280px;
}

.screenshot-frame.desktop { aspect-ratio: 16/10; }
.screenshot-frame.tablet { aspect-ratio: 3/4; }
.screenshot-frame.mobile { aspect-ratio: 9/19; }

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.screenshot-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.screenshot-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .screenshot-grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { order: -1; }
  .nav { gap: 18px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(11, 16, 32, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav a:last-child { border-bottom: none; margin-top: 8px; }

  .features-grid, .usecases-grid, .instructions-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .screenshot-grid.three, .screenshot-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .section-head h2, .why-content h2, .cta h2 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
