/**
 * Linux RMM Landing Page Styles
 *
 * Uses the Fila template color scheme for consistency with the main app.
 * Bootstrap 5 foundation with custom overrides for the marketing site.
 */

:root {
  /* Fila template color scheme */
  --bs-primary: #0f79f3;
  --bs-primary-dark: #0c61c2;
  --bs-success: #2ed47e;
  --bs-danger: #e74c3c;
  --bs-warning: #ffb264;
  --bs-info: #00cae3;
  --bs-body-bg: #eff3f9;
  --bs-white: #fff;
  --bs-dark: #1a1a2e;
  --bs-secondary: #475569;
  --bs-gray-100: #f8fafc;
  --bs-gray-200: #e2e8f0;
  --bs-gray-600: #64748b;

  /* Landing page specific */
  --hero-gradient: linear-gradient(135deg, #0f79f3 0%, #1e3a5f 100%);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bs-white);
  color: var(--bs-dark);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bs-dark);
  text-decoration: none;
}

.brand-icon {
  color: var(--bs-primary);
  font-size: 2rem;
}

.brand-text {
  color: var(--bs-dark);
}

.nav-link {
  color: var(--bs-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--bs-primary);
}

.navbar-cta .btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  background: var(--hero-gradient);
  color: var(--bs-white);
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-cta .btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.hero-note {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Terminal Window */
.hero-visual {
  perspective: 1000px;
}

.terminal-window {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.terminal-window:hover {
  transform: rotateY(0) rotateX(0);
}

.terminal-header {
  background: #2d2d44;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

.terminal-line {
  margin-bottom: 0.75rem;
}

.terminal-line .prompt {
  color: var(--bs-success);
  margin-right: 0.5rem;
}

.terminal-line.output {
  color: var(--bs-gray-200);
  padding-left: 1.5rem;
}

.terminal-line .success {
  color: var(--bs-success);
  margin-right: 0.5rem;
}

.terminal-line .info {
  color: var(--bs-info);
  margin-right: 0.5rem;
}

/* Section Styling */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--bs-dark);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--bs-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--bs-body-bg);
}

.feature-card {
  background: var(--bs-white);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(15, 121, 243, 0.1), rgba(15, 121, 243, 0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--bs-primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--bs-dark);
}

.feature-card p {
  color: var(--bs-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 6rem 0;
  background: var(--bs-white);
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bs-primary);
  color: var(--bs-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--bs-dark);
}

.step-card p {
  color: var(--bs-secondary);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background: var(--hero-gradient);
  color: var(--bs-white);
  padding: 5rem 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.footer {
  background: var(--bs-dark);
  color: var(--bs-gray-200);
  padding: 4rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-white);
  margin-bottom: 0.5rem;
}

.footer-brand .material-symbols-outlined {
  color: var(--bs-primary);
}

.footer-tagline {
  color: var(--bs-gray-600);
  margin-bottom: 1.5rem;
}

.footer-company {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-company .company-name {
  color: var(--bs-white);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-company .company-address {
  color: var(--bs-gray-600);
  margin-bottom: 0.75rem;
}

.footer-company .company-registration {
  color: var(--bs-gray-600);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.footer-heading {
  color: var(--bs-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

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

.footer-nav a {
  color: var(--bs-gray-200);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--bs-primary);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-copyright {
  color: var(--bs-gray-600);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-legal-note {
  color: var(--bs-gray-600);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Legal Pages */
.legal-page {
  padding-top: 100px;
  padding-bottom: 4rem;
  min-height: 100vh;
}

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

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--bs-dark);
}

.legal-content .last-updated {
  color: var(--bs-gray-600);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bs-gray-200);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--bs-dark);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--bs-dark);
}

.legal-content p {
  color: var(--bs-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  color: var(--bs-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--bs-primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content .contact-info {
  background: var(--bs-gray-100);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.legal-content .contact-info p {
  margin-bottom: 0.25rem;
}

.legal-content .contact-info p:last-child {
  margin-bottom: 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-content th,
.legal-content td {
  padding: 0.75rem;
  border: 1px solid var(--bs-gray-200);
  text-align: left;
}

.legal-content th {
  background: var(--bs-gray-100);
  font-weight: 600;
  color: var(--bs-dark);
}

.legal-content td {
  color: var(--bs-secondary);
}

/* Buttons */
.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background: var(--bs-primary-dark);
  border-color: var(--bs-primary-dark);
}

.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-white);
}

.btn-light {
  background: var(--bs-white);
  border-color: var(--bs-white);
  color: var(--bs-primary);
}

.btn-light:hover {
  background: var(--bs-gray-100);
  border-color: var(--bs-gray-100);
  color: var(--bs-primary);
}

.btn-outline-light {
  color: var(--bs-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--bs-white);
  color: var(--bs-white);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .navbar-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-gray-200);
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .footer {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-heading {
    margin-top: 1rem;
  }

  .footer-nav {
    margin-bottom: 1rem;
  }

  .footer .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }

  .legal-page {
    padding-top: 80px;
  }

  .legal-content h1 {
    font-size: 1.75rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .legal-content table {
    font-size: 0.85rem;
  }

  .legal-content th,
  .legal-content td {
    padding: 0.5rem;
  }
}
