:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-card: #1e293b;
  --dark-body: #0f172a;
  --light: #ffffff;
  --light-body: #f8fafc;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all .3s ease;
}

[data-bs-theme=dark] {
  --light: #0f172a;
  --light-body: #020617;
  --dark: #f8fafc;
  --dark-card: #1e293b;
  --gray-100: #1e293b;
  --gray-200: #334155;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--light-body);
  color: var(--gray-700);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--dark); }
.display-1, .display-2, .display-3, .display-4 { font-weight: 800; letter-spacing: -.02em; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Navbar ── */
.navbar { padding: 16px 0; transition: var(--transition); z-index: 1030; }
.navbar-scrolled { background: rgba(255,255,255,.95) !important; backdrop-filter: blur(20px); box-shadow: var(--shadow); padding: 10px 0; }
[data-bs-theme=dark] .navbar-scrolled { background: rgba(15,23,42,.95) !important; }
.navbar .nav-link { font-weight: 500; font-size: 15px; color: var(--gray-600) !important; padding: 8px 16px !important; border-radius: 8px; transition: var(--transition); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary) !important; background: rgba(79,70,229,.08); }
.navbar-brand { font-weight: 800; font-size: 22px; color: var(--primary) !important; letter-spacing: -.5px; }
.navbar-brand i { margin-right: 8px; }

/* ── Buttons ── */
.btn { font-weight: 600; padding: 12px 28px; border-radius: 10px; transition: var(--transition); font-size: 15px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,70,229,.35); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.btn-light { background: var(--light); border-color: var(--gray-200); color: var(--dark); }
.btn-light:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; color: #fff; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,70,229,.4); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Hero ── */
.hero-section { padding: 140px 0 80px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 20% 50%, rgba(79,70,229,.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(14,165,233,.1) 0%, transparent 50%); pointer-events: none; }
.hero-section * { color: #fff; }
.hero-section .display-3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hero-section .lead { font-size: 19px; opacity: .8; max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 500; margin-bottom: 24px; }

/* ── Dashboard Mockup ── */
.dashboard-mockup { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); overflow: hidden; backdrop-filter: blur(10px); }
.dashboard-mockup .mockup-header { background: rgba(255,255,255,.08); padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.dashboard-mockup .mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-mockup .mockup-body { padding: 20px; }
.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 16px; }
.stat-card .stat-value { font-size: 20px; font-weight: 700; }
.stat-card .stat-label { font-size: 12px; opacity: .6; text-transform: uppercase; letter-spacing: .5px; }
.chart-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.chart-bar .fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.incident-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.incident-item:last-child { border-bottom: none; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-up { background: rgba(16,185,129,.15); color: var(--success); }
.status-down { background: rgba(239,68,68,.15); color: var(--danger); }

/* ── Live Stats / Counters ── */
.counter-section { background: var(--light); padding: 60px 0; }
[data-bs-theme=dark] .counter-section { background: var(--dark-body); }
.counter-item { text-align: center; }
.counter-item .counter { font-size: 36px; font-weight: 800; color: var(--primary); }
.counter-item .counter-label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ── Section ── */
.section { padding: 100px 0; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: var(--gray-500); max-width: 600px; margin: 0 auto 48px; }

/* ── Feature Cards ── */
.feature-card { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px 24px; transition: var(--transition); position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: transparent; }
.feature-card .icon-box { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; background: rgba(79,70,229,.1); color: var(--primary); }
.feature-card h5 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); margin: 0; }

/* ── How It Works ── */
.step-card { text-align: center; padding: 32px 20px; position: relative; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 20px; }
.step-card h5 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-500); margin: 0; }
.step-connector { display: none; }
@media (min-width: 768px) {
  .step-connector { display: block; position: absolute; top: 28px; right: -30px; width: 60px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
}

/* ── Pricing ── */
.pricing-card { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 40px 32px; transition: var(--transition); position: relative; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-xl); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: 16px; right: 16px; background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.pricing-card .price { font-size: 44px; font-weight: 800; color: var(--dark); }
.pricing-card .price span { font-size: 18px; font-weight: 400; color: var(--gray-500); }
.pricing-card .plan-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pricing-card .plan-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--gray-600); display: flex; align-items: center; gap: 10px; }
.pricing-card ul li i { color: var(--success); font-size: 16px; }

/* ── Testimonials ── */
.testimonial-card { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; }
.testimonial-card .stars { color: #f59e0b; margin-bottom: 12px; }
.testimonial-card p { font-size: 15px; color: var(--gray-600); font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card .author .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.testimonial-card .author .name { font-weight: 600; font-size: 14px; }
.testimonial-card .author .role { font-size: 12px; color: var(--gray-500); }

/* ── FAQ ── */
.accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 16px; color: var(--dark); padding: 18px 24px; background: var(--light); box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: rgba(79,70,229,.05); color: var(--primary); }
.accordion-body { padding: 0 24px 20px; color: var(--gray-600); font-size: 15px; }

/* ── Monitor Types ── */
.monitor-type-card { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; text-align: center; transition: var(--transition); }
.monitor-type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.monitor-type-card .icon { font-size: 32px; margin-bottom: 8px; }
.monitor-type-card h6 { font-size: 14px; font-weight: 600; margin: 0; }

/* ── CTA Section ── */
.cta-section { padding: 100px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.cta-section * { color: #fff; }
.cta-section h2 { font-weight: 800; }

/* ── Footer ── */
.footer { background: var(--dark); color: var(--gray-400); padding: 60px 0 0; }
.footer h6 { color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer a { color: var(--gray-400); text-decoration: none; display: block; padding: 4px 0; font-size: 14px; transition: var(--transition); }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer .social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); align-items: center; justify-content: center; font-size: 16px; margin-right: 8px; transition: var(--transition); }
.footer .social a:hover { background: var(--primary); color: #fff; padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; margin-top: 40px; font-size: 13px; }

/* ── Animations ── */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos=fade-up] { transform: translateY(30px); }
[data-aos=fade-left] { transform: translateX(30px); }
[data-aos=fade-right] { transform: translateX(-30px); }
[data-aos].aos-animate { transform: translate(0); }

/* ── Glassmorphism ── */
.glass { background: rgba(255,255,255,.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); }

/* ── Alert Cards ── */
.alert-card { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.alert-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.alert-card .alert-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.alert-card .alert-info h6 { font-size: 15px; margin: 0 0 2px; }
.alert-card .alert-info p { font-size: 13px; color: var(--gray-500); margin: 0; }

/* ── Status Page Demo ── */
.status-demo { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 32px; }
.status-demo .status-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.status-demo .status-indicator { width: 12px; height: 12px; border-radius: 50%; }
.status-demo .status-indicator.all-operational { background: var(--success); box-shadow: 0 0 20px rgba(16,185,129,.4); }
.status-component { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.status-component:last-child { border-bottom: none; }
.status-component .name { font-weight: 500; font-size: 15px; }
.status-component .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Dashboard Preview ── */
.dash-preview { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.dash-preview .dash-sidebar { background: var(--dark); padding: 20px; min-height: 400px; }
.dash-preview .dash-sidebar .dash-logo { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 24px; }
.dash-preview .dash-sidebar .dash-nav-item { color: var(--gray-400); padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 4px; transition: var(--transition); }
.dash-preview .dash-sidebar .dash-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-preview .dash-sidebar .dash-nav-item.active { background: rgba(79,70,229,.2); color: var(--primary-light); }
.dash-preview .dash-main { padding: 20px; }
.dash-preview .dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-preview .dash-header h5 { margin: 0; }

/* ── Integration Cards ── */
.integration-card { background: var(--light); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; text-align: center; transition: var(--transition); }
.integration-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.integration-card .icon { font-size: 36px; margin-bottom: 12px; }
.integration-card h6 { font-size: 15px; font-weight: 600; margin: 0; }

/* ── Back to Top ── */
#back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow-lg); }
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(79,70,229,.4); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-section { padding: 100px 0 60px; text-align: center; }
  .hero-section .lead { margin: 0 auto; }
  .hero-section .d-flex { justify-content: center; }
  .dashboard-mockup { margin-top: 40px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .counter-item .counter { font-size: 28px; }
  .pricing-card { margin-bottom: 24px; }
  .step-connector { display: none; }
}

@media (max-width: 767px) {
  .navbar-brand { font-size: 18px; }
  .hero-section .display-3 { font-size: 32px; }
  .hero-section .lead { font-size: 16px; }
  .section-title { font-size: 24px; }
  .feature-card { padding: 24px 20px; }
  .pricing-card { padding: 28px 20px; }
  .pricing-card .price { font-size: 32px; }
  .footer { text-align: center; }
  .footer .social { justify-content: center; }
}

[data-bs-theme=dark] .feature-card,
[data-bs-theme=dark] .pricing-card,
[data-bs-theme=dark] .testimonial-card,
[data-bs-theme=dark] .alert-card,
[data-bs-theme=dark] .integration-card,
[data-bs-theme=dark] .monitor-type-card,
[data-bs-theme=dark] .dash-preview,
[data-bs-theme=dark] .status-demo { background: var(--dark-card); border-color: var(--gray-700); }

[data-bs-theme=dark] .accordion-button { background: var(--dark-card); color: var(--dark); }
[data-bs-theme=dark] .accordion-item { border-color: var(--gray-700); }
[data-bs-theme=dark] .navbar-scrolled { background: rgba(15,23,42,.95) !important; }
[data-bs-theme=dark] .counter-section { background: var(--dark-body); }
