/* ── CSS Custom Properties ── */
:root {
  --dark-bg: #0f1628;
  --dark-bg-alt: #1a1040;
  --light-bg: #ffffff;
  --light-bg-alt: #f8fafc;
  --accent: #6366f1;
  --accent-end: #8b5cf6;
  --text-dark-heading: #ffffff;
  --text-dark-body: #8892b0;
  --text-dark-secondary: #a5b4fc;
  --text-light-heading: #1e293b;
  --text-light-body: #64748b;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.logo-icon {
  color: var(--accent);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dark-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark-secondary);
  border: 1px solid rgba(165, 180, 252, 0.3);
}

.btn-ghost:hover {
  border-color: rgba(165, 180, 252, 0.6);
  color: white;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dark-body);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 56px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark-secondary);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-dark-body);
  margin-top: 4px;
}

/* Browser frame for screenshots */
.browser-frame {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.15);
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-dots span:first-child { background: rgba(255, 99, 99, 0.6); }
.browser-dots span:nth-child(2) { background: rgba(255, 199, 0, 0.6); }
.browser-dots span:last-child { background: rgba(0, 199, 99, 0.6); }

.browser-frame img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.hero-screenshot {
  margin-top: 0;
}

/* ── Section Typography ── */
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-light-heading);
  text-align: center;
  margin: 0 0 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light-body);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Features Grid ── */
.features {
  background: var(--light-bg);
  padding: 80px 0;
}

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

.feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light-heading);
  margin: 0 0 8px;
}

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

/* ── Deep Dive Sections ── */
.platform {
  padding: 0;
}

.deep-dive {
  background: var(--light-bg);
  padding: 80px 0;
}

.deep-dive-alt {
  background: var(--light-bg-alt);
}

.deep-dive-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.deep-dive-reverse .deep-dive-screenshot {
  order: -1;
}

.deep-dive-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.deep-dive-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-light-heading);
  margin: 0 0 20px;
  line-height: 1.25;
}

.deep-dive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deep-dive-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-light-body);
  line-height: 1.6;
}

.deep-dive-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
}

.browser-frame-light {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.deep-dive-screenshot {
  transition: transform 0.3s ease;
}

.deep-dive-screenshot:hover {
  transform: scale(1.02);
}

/* ── MSP Section ── */
.msps {
  background: linear-gradient(135deg, #0f1628 0%, #1a1040 60%, #1e1145 100%);
  padding: 80px 0;
}

.msps-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin: 0 0 16px;
}

.msps-subtitle {
  font-size: 18px;
  color: var(--text-dark-body);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

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

.msps-feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.msps-feature:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(165, 180, 252, 0.2);
}

.msps-feature svg {
  color: var(--text-dark-secondary);
  margin-bottom: 16px;
}

.msps-feature h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px;
}

.msps-feature p {
  font-size: 13px;
  color: var(--text-dark-body);
  margin: 0;
  line-height: 1.6;
}

/* ── Contact CTA ── */
.contact {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
  padding: 80px 0;
}

.contact-inner {
  text-align: center;
}

.contact-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
}

.contact-subtitle {
  font-size: 18px;
  color: var(--text-dark-body);
  margin: 0 0 32px;
}

.contact-email {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: white;
}

/* ── Footer ── */
.footer {
  background: #0a0f1e;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-dark-body);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-logo-text {
  font-size: 16px;
  letter-spacing: 2px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(136, 146, 176, 0.6);
}

/* ── Focus Styles ── */
.btn:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.contact-email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1199px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .deep-dive-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .deep-dive-reverse .deep-dive-screenshot {
    order: 0;
  }

  .hero-title {
    font-size: 36px;
  }

  .deep-dive-title {
    font-size: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 22, 40, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar.menu-open .nav-menu {
    display: flex;
  }

  .navbar.menu-open .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .navbar.menu-open .nav-cta {
    text-align: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 48px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .msps-title,
  .contact-title {
    font-size: 28px;
  }

  .msps-grid {
    grid-template-columns: 1fr;
  }

  .contact-email {
    font-size: 18px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .deep-dive {
    padding: 48px 0;
  }

  .features,
  .msps,
  .contact {
    padding: 48px 0;
  }
}
