/*
 * Homepage styles (EN / and FR /fr/)
 * Scoped to body.home. These replaced the homepage's inline style attributes;
 * the .home scope keeps them ahead of the shared rules in main.css the way
 * the inline styles were.
 */

.home .home-hero {
  background: linear-gradient(180deg, #1f2937 0%, #374151 30%, #1f2937 70%, #111827 100%);
  color: #ffffff;
  padding: 4rem 0 6rem;
  border-radius: 0 0 60px 60px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home .hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
  pointer-events: none;
  z-index: 0;
}

.home .hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home .hero-container {
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.home .hero-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.home .hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 600;
}

.home .hero-highlight {
  color: #93c5fd;
}

.home .hero-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.home .hero-columns {
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.home .hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.home .hero-brand-title {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.03em;
  max-width: none;
  font-size: 2.75rem;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.home .hero-brand-icon {
  font-size: 2rem;
  line-height: 1;
}

.home .hero-points {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.home .hero-point {
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.home .hero-point-marker {
  font-size: 1.5rem;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 0.125rem;
  line-height: 1;
}

.home .hero-point-text {
  line-height: 1.7;
  flex: 1;
}

.home .hero-point-strong {
  color: #bfdbfe;
  font-weight: 600;
}

.home .btn-hero {
  background: #60a5fa;
  color: #ffffff;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 8px;
  display: inline-block;
}

.home .hero-dashboard {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  align-self: stretch;
}

.home .hero-dashboard-block {
  margin-bottom: 2rem;
}

.home .hero-dashboard-title {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.home .hero-dashboard-img {
  width: 100%;
  border-radius: 8px;
}

.home .hero-dashboard-divided {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.home .toolkit-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home .toolkit-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 600;
}

.home .toolkit-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.home .toolkit-card {
  background: #ffffff;
  border: none;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.home .toolkit-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home .icon-tile {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .icon-28 {
  width: 28px;
  height: 28px;
}

.home .toolkit-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
}

.home .toolkit-card-sparkle {
  font-size: 1.5rem;
}

.home .toolkit-card-media {
  margin-bottom: 1.5rem;
  text-align: center;
}

.home .toolkit-card-img {
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  margin: 0 auto;
}

.home .toolkit-card-text {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: center;
}

.home .text-center {
  text-align: center;
}

.home .btn-navy {
  background: #1e3a8a;
}

.home .trust-badge {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home .trust-badge-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
}

.home .automation-section {
  background-image: url('/assets/images/digitalglobe.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  margin-top: -60px;
  margin-bottom: -60px;
  z-index: 0;
}

.home .automation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.25) 0%, rgba(30, 58, 138, 0.2) 100%);
  z-index: 1;
}

.home .automation-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.home .automation-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

.home .automation-lead {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.home .btn-glow {
  background: #60a5fa;
  color: #ffffff;
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}

.home .why-section {
  position: relative;
  z-index: 1;
  background-color: #f8fafc;
  border-radius: 60px 60px 0 0;
  margin-top: -60px;
  padding-top: calc(6rem + 60px);
}

.home .why-heading {
  text-align: center;
  margin-bottom: 5rem;
}

.home .section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.home .why-lead {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.home .why-columns {
  gap: 4rem;
  align-items: center;
}

.home .why-features {
  gap: 2rem;
  margin-bottom: 2rem;
}

.home .why-feature {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.home .why-feature-title {
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.home .why-feature-text {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.home .why-summary {
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 1.125rem;
}

.home .why-visual {
  position: relative;
}

.home .why-visual-img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.home .why-visual-inset {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home .why-visual-inset-img {
  width: 200px;
  border-radius: 6px;
}

.home .stories-section {
  padding-bottom: 3rem;
}

.home .stories-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.home .stories-lead {
  font-size: 1.25rem;
  color: var(--text-light);
}

.home .stories-grid {
  margin-bottom: 2.5rem;
}

.home .story-card {
  padding: 0;
  overflow: hidden;
}

.home .story-card-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f8fafc;
}

.home .story-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .story-card-body {
  padding: 1.5rem;
}

.home .story-tags {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.home .story-tag {
  padding: 0.25rem 0.625rem;
  background: var(--bg-light);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
}

.home .story-title {
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.home .story-text {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.home .story-btn {
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
}

.home .stories-actions {
  text-align: center;
  margin-bottom: 2rem;
}

.home .stories-action-primary {
  margin-right: 1rem;
}

.home .cta-section {
  padding-top: 3rem;
}

.home .cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.home .cta-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.home .cta-lead {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.home .hero-point-last {
  border-bottom: none;
}

.home .icon-tile-raised {
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .home .home-hero {
    border-radius: 0 0 40px 40px !important;
  }

  .home .hero-title {
    font-size: 2rem !important;
  }

  .home .hero-brand-title {
    font-size: 2rem !important;
  }

  .home .hero-lead,
  .home .why-lead,
  .home .stories-lead,
  .home .cta-lead {
    font-size: 1rem !important;
  }

  /* Headings in .section-alt sections get 2rem from main.css */
  .home .stories-heading .section-title {
    font-size: 1.75rem !important;
  }

  .home .hero-container,
  .home .toolkit-grid-centered,
  .home .automation-container,
  .home .cta-container {
    max-width: 100% !important;
  }
}
