/* 
  CMMS Master Landing Page Styles
  Design System: Modern, SaaS, Glassmorphism, Vibrant Gradients
*/

:root {
  --primary: #4F46E5;
  --primary-glow: rgba(79, 70, 229, 0.4);
  --secondary: #10B981;
  --bg-color: #0F172A;
  --surface-color: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-head: 'Outfit', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background effects */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  margin: 0 16px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #818CF8);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(to right, #818CF8, #C084FC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Mockup */
.glass-mockup {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 48px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EF4444;
}

.dots span:nth-child(2) { background: #F59E0B; }
.dots span:nth-child(3) { background: #10B981; }

.mockup-body {
  padding: 24px;
  flex: 1;
}

.skeleton-chart {
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 24px;
}

.skeleton-item {
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Features */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--surface-color);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
}

/* Pricing Grid */
.pricing {
  padding: 80px 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.plan-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.highlighted {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.1) 0%, var(--surface-color) 100%);
}

.plan-card.highlighted::before {
  content: 'Bestseller';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--primary);
  color: white;
  padding: 4px 40px;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}

.plan-btn {
  width: 100%;
  margin-top: auto;
}

/* Skeleton Loaders */
.plan-skeleton {
  background: var(--surface-color);
  border-radius: var(--radius);
  height: 480px;
  animation: pulse 1.5s infinite ease-in-out;
}

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

/* CTA & Footer */
.cta {
  padding: 80px 0;
}

.glass-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.glass-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.glass-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  gap: 16px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus {
  outline: none;
  border-color: var(--primary);
}

footer {
  border-top: 1px solid var(--glass-border);
  padding: 48px 0;
  background: rgba(0, 0, 0, 0.2);
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.875rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    flex-direction: column;
  }
}
