/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --bg: #0a0a14;
  --bg-card: #12121f;
  --bg-elevated: #1a1a2e;
  --text: #ffffff;
  --text-60: rgba(255,255,255,0.6);
  --text-40: rgba(255,255,255,0.4);
  --text-20: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

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

.text-orange { color: var(--orange); }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-cta {
  background: var(--orange);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms;
}

.nav-cta:hover { background: var(--orange-dark); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-60);
  border: 1px solid var(--text-20);
}

.btn-ghost:hover { color: white; border-color: rgba(255,255,255,0.25); }

.btn-lg { padding: 18px 36px; font-size: 18px; }

.btn-disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

/* ─── Hero ─── */
.hero {
  padding: 160px 24px 80px;
  text-align: center;
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-60);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Demo ─── */
.demo {
  padding: 40px 24px 80px;
}

.demo-inner { max-width: 900px; margin: 0 auto; }

.demo-window {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot--red { background: #ef4444; }
.demo-dot--yellow { background: #eab308; }
.demo-dot--green { background: #22c55e; }

.demo-titlebar-text {
  font-size: 12px;
  color: var(--text-40);
  margin-left: 8px;
}

.demo-content {
  position: relative;
  padding: 0;
  min-height: 360px;
}

.demo-page {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Mock website elements */
.demo-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-logo-mock {
  width: 100px;
  height: 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.demo-nav-mock { display: flex; gap: 16px; }

.demo-nav-item {
  width: 50px;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.demo-body { padding: 24px 20px; }

.demo-hero-mock {
  position: relative;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.demo-hero-title {
  width: 260px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-bottom: 10px;
}

.demo-hero-text {
  width: 200px;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  margin-bottom: 14px;
}

.demo-hero-btn {
  width: 100px;
  height: 28px;
  background: var(--orange);
  border-radius: 6px;
  opacity: 0.6;
}

.demo-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.demo-card-mock {
  position: relative;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
}

.demo-card-img {
  height: 80px;
  background: rgba(255,255,255,0.05);
}

.demo-card-text {
  padding: 12px;
  height: 12px;
  margin: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

/* Annotation pins */
.demo-pin {
  position: absolute;
  z-index: 10;
  cursor: pointer;
}

.demo-pin-badge {
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  animation: pin-pulse 2s ease-in-out infinite;
}

@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 2px 20px rgba(249, 115, 22, 0.6); }
}

.demo-pin-tooltip {
  position: absolute;
  top: -8px;
  left: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 220px;
  font-size: 12px;
  color: var(--text-60);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.demo-pin-tooltip--left {
  left: auto;
  right: 32px;
}

.demo-pin-tooltip strong {
  color: white;
  font-weight: 600;
}

.demo-pin-tooltip span { color: var(--text-40); }

.demo-pin-body {
  display: block;
  margin-top: 4px;
  color: var(--text-60);
}

/* Sidebar mock */
.demo-sidebar-mock {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 220px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: 12px;
}

.demo-sidebar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.demo-sidebar-count {
  background: var(--orange);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
}

.demo-sidebar-card {
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-left: 2px solid var(--orange);
}

.demo-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 4px;
}

.demo-sidebar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-sidebar-dot--critical { background: #ef4444; }
.demo-sidebar-dot--high { background: #f97316; }
.demo-sidebar-dot--normal { background: #3b82f6; }

.demo-sidebar-time { color: var(--text-40); margin-left: auto; }

.demo-sidebar-body {
  font-size: 11px;
  color: var(--text-60);
}

/* FAB mock */
.demo-fab {
  position: absolute;
  bottom: 16px;
  right: 236px;
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.demo-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Features ─── */
.features {
  padding: 100px 24px;
}

.features-inner { max-width: 1100px; margin: 0 auto; }

.features h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms, transform 200ms;
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-60);
  line-height: 1.6;
}

/* ─── How it works ─── */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner { max-width: 800px; margin: 0 auto; }

.how-it-works h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-60);
  line-height: 1.6;
}

.step-arrow {
  padding-top: 12px;
  flex-shrink: 0;
}

/* ─── CTA ─── */
.cta {
  padding: 120px 24px;
  text-align: center;
}

.cta-inner { max-width: 600px; margin: 0 auto; }

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta p {
  font-size: 17px;
  color: var(--text-60);
  margin-bottom: 36px;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-40);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .demo-cards-row {
    grid-template-columns: 1fr;
  }

  .demo-sidebar-mock {
    display: none;
  }

  .demo-fab {
    right: 16px;
  }

  .demo-pin-tooltip {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
