/* ═══════════════════════════════════════════════════════════
   RED PULSE SYSTEMS — MARKETING WEBSITE STYLES
   Dark, Professional EMS Inventory Management Platform
   ══════════════════════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --red-900: #7f1d1d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  
  /* Neutrals */
  --charcoal: #0f0f0f;
  --gray-900: #111827;
  --gray-850: #18202f;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
}

/* ─── Reset & Base ────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--gray-100);
  background: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Navigation ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(15, 15, 15, 0.98);
  border-bottom-color: var(--red-600);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red-500);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  letter-spacing: -0.01em;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red-400);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-500);
}

.nav-cta {
  background: var(--red-600);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.nav-cta:hover {
  background: var(--red-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-300);
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-850);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
  }
  
  .nav-links.active {
    display: flex;
  }
}

/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray-200);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--gray-300);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red-600);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background: var(--red-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--red-400);
  border: 2px solid var(--red-600);
}

.btn-secondary:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--red-500);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--gray-600);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gray-500);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ─── Container & Layout ────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

section.hero {
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--gray-900) 100%);
  position: relative;
  overflow: hidden;
}

section.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(220, 38, 38, 0.15), transparent 70%);
  pointer-events: none;
}

section.alt {
  background: var(--gray-850);
}

/* ─── Grid Systems ────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  section.hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }
}

/* ─── Cards ────────────────────────────────────── */
.card {
  background: var(--gray-850);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--red-500);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
  background: var(--gray-800);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--white);
}

.card p {
  color: var(--gray-300);
  font-size: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 24px;
}

/* ─── Feature List ────────────────────────────────────── */
.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--gray-300);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ─── Stats ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin: 3rem 0;
  text-align: center;
}

.stat {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red-500);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-400);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ─── Pricing Cards ────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--gray-850);
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--red-500);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
}

.pricing-card.featured {
  border-color: var(--red-600);
  border-width: 3px;
  box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.2);
  background: var(--gray-800);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-600);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--red-500);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1.5rem;
  color: var(--gray-500);
  font-weight: 500;
}

.pricing-description {
  color: var(--gray-300);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── Forms ────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-300);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-700);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--gray-800);
  color: var(--gray-100);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
  background: var(--gray-850);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--red-600);
}

/* ─── Badges & Tags ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(220, 38, 38, 0.2);
  color: var(--red-400);
  border: 1px solid var(--red-600);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid var(--warning);
}

/* ─── Footer ────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red-500);
  margin-bottom: 1rem;
  display: block;
}

.footer-description {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--red-400);
}

.footer-heading {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--red-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ─── Utilities ────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-red { color: var(--red-500); }
.text-gray { color: var(--gray-400); }
.text-success { color: var(--success); }

.bg-red { background: var(--red-600); }
.bg-gray { background: var(--gray-850); }

/* ─── Animations ────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}
