/* ===========================
   RAIGuard Website - Main Stylesheet
   =========================== */

/* CSS Variables for Color Palette and Typography */
:root {
  /* Color Palette */
  --primary-navy: #0F1C3F;
  --secondary-cyan: #00D4FF;
  --accent-green: #10B981;
  --alert-amber: #F59E0B;
  --neutral-light: #F8FAFC;
  --neutral-dark: #1E293B;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-navy);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  line-height: 1.7;
}

a {
  color: var(--secondary-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-green);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation Bar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: var(--font-heading);
}

.navbar-logo .logo-icon {
  font-size: 2rem;
  color: var(--secondary-cyan);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.navbar-menu li a {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.navbar-menu li a:hover {
  color: var(--secondary-cyan);
  background-color: var(--neutral-light);
}

.navbar-menu li a.active {
  color: var(--secondary-cyan);
}

.navbar-cta {
  background: linear-gradient(135deg, var(--secondary-cyan), var(--accent-green));
  color: var(--white) !important;
  padding: var(--spacing-xs) var(--spacing-md) !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white) !important;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-navy);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    align-items: flex-start;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu li a {
    display: block;
    width: 100%;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-cyan), var(--accent-green));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-cyan);
  border: 2px solid var(--secondary-cyan);
}

.btn-outline:hover {
  background-color: var(--secondary-cyan);
  color: var(--white);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2951 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2300D4FF;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%2310B981;stop-opacity:0.1"/></linearGradient></defs><circle cx="900" cy="200" r="300" fill="url(%23grad)"/><circle cx="1000" cy="400" r="200" fill="url(%23grad)"/></svg>') no-repeat center;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.hero-text .tagline {
  color: var(--secondary-cyan);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-diagram {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero {
    padding: var(--spacing-xl) 0;
  }
}

/* Section Styles */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-alt {
  background-color: var(--neutral-light);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--neutral-dark);
  opacity: 0.8;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 968px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Feature Cards */
.feature-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-cyan);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--secondary-cyan), var(--accent-green));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: 0;
}

/* Social Proof Section */
.social-proof {
  text-align: center;
}

.company-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  opacity: 0.6;
}

.company-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-dark);
  font-family: var(--font-heading);
}

.testimonial {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-green);
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-navy);
}

.testimonial-role {
  color: var(--neutral-dark);
  opacity: 0.7;
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2951 100%);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--neutral-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-cyan);
}

.pricing-card.featured {
  border-color: var(--secondary-cyan);
  border-width: 3px;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--secondary-cyan), var(--accent-green));
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
}

.pricing-header h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: var(--spacing-sm);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--neutral-dark);
  opacity: 0.7;
}

.pricing-description {
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.pricing-features li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 968px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-cyan);
}

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.blog-content {
  padding: var(--spacing-md);
}

.blog-meta {
  color: var(--neutral-dark);
  opacity: 0.7;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.blog-excerpt {
  color: var(--neutral-dark);
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.blog-link {
  color: var(--secondary-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.blog-link:hover {
  gap: var(--spacing-sm);
}

/* Integration Logos */
.integration-category {
  margin-bottom: var(--spacing-xl);
}

.integration-category h3 {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--secondary-cyan);
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.integration-logo {
  flex: 0 0 calc(25% - var(--spacing-md));
  min-width: 200px;
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--neutral-dark);
  border: 2px solid var(--neutral-light);
  transition: all 0.3s ease;
}

.integration-logo:hover {
  border-color: var(--secondary-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-section p {
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-cyan);
  padding-left: var(--spacing-xs);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-sm);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.newsletter-button {
  background-color: var(--accent-green);
  color: var(--white);
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background-color: var(--secondary-cyan);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  background-color: var(--secondary-cyan);
  transform: translateY(-3px);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* Solution Cards */
.solution-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--secondary-cyan);
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-xl);
}

.solution-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.solution-card h3 {
  margin-bottom: var(--spacing-md);
}

.solution-features {
  list-style: none;
}

.solution-features li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--neutral-dark);
}

.solution-features li::before {
  content: '→';
  color: var(--accent-green);
  font-weight: 700;
}

/* Expandable Feature Details */
.feature-detail {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.feature-detail-header {
  background: linear-gradient(135deg, var(--primary-navy), #1a2951);
  color: var(--white);
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.feature-detail-header:hover {
  background: linear-gradient(135deg, #1a2951, var(--primary-navy));
}

.feature-detail-header h3 {
  color: var(--white);
  margin: 0;
}

.feature-detail-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-detail.active .feature-detail-toggle {
  transform: rotate(180deg);
}

.feature-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.feature-detail.active .feature-detail-content {
  max-height: 1000px;
}

.feature-detail-body {
  padding: var(--spacing-lg);
}

.feature-detail-body ul {
  list-style: none;
  margin-top: var(--spacing-md);
}

.feature-detail-body ul li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.feature-detail-body ul li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.25rem;
}

.code-preview {
  background-color: var(--neutral-dark);
  color: var(--accent-green);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-top: var(--spacing-md);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.text-cyan { color: var(--secondary-cyan); }
.text-green { color: var(--accent-green); }
.text-amber { color: var(--alert-amber); }

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-cyan);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}
