
/* ============================================
   88MPH Design System - Clean & Modern
   Inspired by browserbase.com aesthetic
   ============================================ */

:root {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-dark: #0a0a0a;
  --bg-card: #ffffff;

  /* Text */
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;

  /* Accent Colors - Vibrant product colors like browserbase */
  --accent-red: #ef4444;
  --accent-yellow: #eab308;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-cyan: #06b6d4;

  /* Brand gradient */
  --gradient-brand: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #eab308 100%);

  /* Borders */
  --border-light: #e5e5e5;
  --border-dashed: #d4d4d4;
  --border-dark: #262626;

  /* Typography */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', Consolas, monospace;

  /* Bootstrap overrides */
  --bs-body-bg: #ffffff;
  --bs-body-color: #0a0a0a;
  --bs-secondary-color: #525252;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-red);
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Brand accent text */
.brand-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Navigation
   ============================================ */

.navbar-custom {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.875rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-custom .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.navbar-custom .nav-link:hover {
  color: var(--text-primary);
}

.navbar-custom .nav-link.active {
  color: var(--text-primary);
}

.navbar-custom .navbar-toggler {
  border: 1px solid var(--border-light);
  padding: 0.375rem 0.625rem;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--text-primary);
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 10, 10, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-custom .navbar-collapse {
    background: var(--bg-primary);
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px dashed var(--border-dashed);
    border-radius: 8px;
  }

  .navbar-custom .nav-link {
    padding: 0.625rem 0;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 5rem;
  background: var(--bg-primary);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ============================================
   Buttons - Split style like browserbase
   ============================================ */

.btn-primary-custom {
  display: inline-flex;
  background: var(--bg-dark);
  border: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-primary-custom:hover {
  background: #262626;
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary-custom {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-secondary-custom:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Yellow accent button variant */
.btn-accent {
  background: var(--accent-yellow);
  color: var(--bg-dark);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-accent:hover {
  background: #ca8a04;
  color: var(--bg-dark);
}

/* ============================================
   Cards with Dashed Borders
   ============================================ */

.feature-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Platform Visual */
.platform-visual {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

/* Code Block */
.code-block {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #e5e5e5;
  overflow-x: auto;
}

.code-block .comment { color: #737373; }
.code-block .keyword { color: #f472b6; }
.code-block .string { color: #4ade80; }
.code-block .function { color: #60a5fa; }

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 3.5rem;
  font-size: 1.0625rem;
}

/* ============================================
   Trust Section
   ============================================ */

.trust-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.trust-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.trust-logo:hover {
  color: var(--text-primary);
}

/* ============================================
   Workflow Steps
   ============================================ */

.workflow-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.workflow-number {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.workflow-content h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.workflow-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Metric Cards */
.metric-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: var(--text-muted);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.375rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: 6rem 0;
  background: var(--bg-dark);
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  color: #fff;
}

.cta-subtitle {
  color: #a3a3a3;
  max-width: 460px;
  margin: 0 auto 1.75rem;
  font-size: 1.0625rem;
}

.cta-section .btn-primary-custom {
  background: #fff;
  color: var(--bg-dark);
}

.cta-section .btn-primary-custom:hover {
  background: #f5f5f5;
  color: var(--bg-dark);
}

.cta-section .btn-secondary-custom {
  border-color: #525252;
  color: #fff;
}

.cta-section .btn-secondary-custom:hover {
  border-color: #fff;
}

/* ============================================
   Page Headers
   ============================================ */

.page-header {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: 3.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.page-header .container {
  width: 100%;
}

.page-header h1 {
  margin-bottom: 0;
}

.page-header .lead {
  margin-bottom: 0;
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   Team Section
   ============================================ */

.team-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  height: 100%;
}

.team-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}

.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.team-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--accent-red);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 0 1.5rem;
}

.footer-brand {
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.875rem;
}

.footer-description {
  color: #737373;
  font-size: 0.875rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #737373;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 1.5rem;
  margin-top: 3rem;
  color: #525252;
  font-size: 0.8125rem;
}

/* ============================================
   Platform Page Specific
   ============================================ */

.check-icon {
  width: 20px;
  height: 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 0.6875rem;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.scaling-hero {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px dashed var(--border-dashed);
}

.scaling-hero-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.scaling-hero-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.scaling-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.scaling-bar-fill {
  height: 100%;
  background: var(--bg-dark);
  border-radius: 3px;
}

.scaling-bar-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.mini-metric {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.mini-metric-icon {
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.mini-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-metric-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.125rem;
}

.progress-custom {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-custom-fill {
  height: 100%;
  background: var(--bg-dark);
  border-radius: 2px;
}

.progress-custom.progress-success .progress-custom-fill {
  background: var(--accent-green);
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-dashed);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--text-muted);
}

.pricing-card-featured {
  border: 2px solid var(--bg-dark);
  border-style: solid;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px dashed var(--border-dashed);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991px) {
  .hero-section {
    padding: 6rem 0 4rem;
    min-height: auto;
  }

  .section {
    padding: 4.5rem 0;
  }

  .page-header {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }

  .page-header {
    min-height: 200px;
    padding-bottom: 2.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .trust-logos {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .feature-card,
  .contact-card,
  .team-card {
    padding: 1.5rem;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 0.625rem 1.25rem;
    width: 100%;
    justify-content: center;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .workflow-step {
    gap: 1rem;
  }

  .workflow-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-amount {
    font-size: 1.75rem;
  }
}

@media (max-width: 575px) {
  .d-flex.gap-3 {
    flex-direction: column;
  }

  .hero-badge {
    font-size: 0.75rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Selection */
::selection {
  background: rgba(239, 68, 68, 0.15);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
