/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg-alt: #0d1220;
  --bg-card: #111827;
  --bg-card-hover: #141e2e;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --teal: #06b6d4;
  --success: #10b981;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(59,130,246,0.25);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-dashboard-btn { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25); border-radius: 6px; padding: 0.35rem 0.875rem; color: var(--accent-light) !important; font-weight: 600; font-size: 0.8rem; transition: all 0.2s; }
.nav-dashboard-btn:hover { background: rgba(59,130,246,0.25); }

/* === HERO === */
.hero {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 460px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--fg-muted); line-height: 1.3; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* === DASHBOARD FRAME === */
.hero-visual { display: flex; justify-content: center; }
.dashboard-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
}
.frame-topbar {
  background: var(--bg-alt);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.frame-dots { display: flex; gap: 5px; }
.frame-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.frame-title { font-size: 0.7rem; color: var(--fg-muted); font-weight: 500; }
.frame-body { display: flex; height: 340px; }
.frame-sidebar {
  width: 140px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--fg-muted);
  cursor: pointer;
}
.sidebar-item.active {
  background: rgba(59,130,246,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.2);
}
.frame-main { flex: 1; padding: 0.875rem; display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden; }
.frame-header { display: flex; justify-content: space-between; align-items: flex-start; }
.frame-section-title { font-size: 0.65rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.3rem; }
.status-row { display: flex; align-items: center; gap: 0.4rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.status-dot.live { animation: pulse 2s ease-in-out infinite; }
.status-text { font-size: 0.7rem; color: var(--fg-muted); }
.mini-stat { text-align: right; }
.mini-val { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--accent-light); display: block; }
.mini-lab { font-size: 0.62rem; color: var(--fg-muted); }
.issue-feed { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; overflow: hidden; }
.issue-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.issue-row.resolved { opacity: 0.7; }
.issue-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.issue-icon.ok { background: rgba(16,185,129,0.15); color: var(--success); }
.issue-icon.processing { background: rgba(59,130,246,0.15); color: var(--accent); animation: spin 3s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.issue-text { font-size: 0.68rem; color: var(--fg); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-time { font-size: 0.62rem; color: var(--fg-muted); flex-shrink: 0; }
.frame-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.ai-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--success);
  font-weight: 600;
}
.response-time { font-size: 0.65rem; color: var(--fg-muted); }
.response-time strong { color: var(--fg); }

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}
.section-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}
.section-header p { color: var(--fg-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card-hover); }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
}

/* === HOW === */
.how {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}
.steps {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59,130,246,0.2);
  margin-bottom: 0.75rem;
  -webkit-text-stroke: 1px rgba(59,130,246,0.3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.step p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; }
.step-arrow { color: rgba(59,130,246,0.4); flex-shrink: 0; }

/* === DASHBOARD SECTION === */
.dashboard-section {
  padding: 6rem 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dash-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.dash-text h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.dash-text p { color: var(--fg-muted); font-size: 0.95rem; max-width: 520px; }
.metrics-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.metric-card {
  background: var(--bg-card);
  padding: 1.75rem 2rem;
}
.metric-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.metric-label { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 0.5rem; }
.metric-delta { font-size: 0.72rem; font-weight: 600; }
.metric-delta.positive { color: var(--success); }
.metric-delta.neutral { color: var(--fg-muted); }

/* === PRICING === */
.pricing {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}
.pricing-cards {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pricing-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  position: relative;
}
.pricing-card.featured {
  background: var(--bg-card-hover);
  border: 1px solid rgba(59,130,246,0.3);
}
.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 0 0 8px 8px;
}
.plan-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.plan-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.plan-price span { font-size: 1rem; color: var(--fg-muted); font-weight: 400; }
.plan-desc { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-features li {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='none' stroke='%233b82f6' stroke-width='1.5'/%3E%3Cpath d='M4 7l2 2 4-4' stroke='%233b82f6' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
}

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--success);
  margin-bottom: 1.75rem;
}
.closing h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.closing p { color: var(--fg-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.cta-note { font-size: 0.875rem; color: var(--fg-muted); }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.7; max-width: 260px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; font-size: 0.8rem; color: var(--fg-muted); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.75rem; color: var(--fg-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .dashboard-frame { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stat-divider { display: none; }
}