body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  line-height: 1.6;
}

header {
  background-color: #1f1f1f;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff5722;
}

header img {
  height: 80px;
}

header h1 {
  font-size: 2.0rem;
  margin: 0;
  color: #ff5722;
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  color: #ff784e;
  margin-top: 2rem;
}

a {
  color: #ff8a65;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.automation-section {
  background: #111;
  color: #fff;
  padding: 3rem 1rem;
}

.automation-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.automation-section h2 {
  color: #ff4f1f; /* fire orange-red */
  font-size: 2rem;
  margin-bottom: 1rem;
}

.automation-section h3 {
  color: #ff7a3d;
  margin-top: 2rem;
}

.automation-section p.intro {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.automation-section ul {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.automation-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.automation-section ul.pain-points li::marker {
  color: #ff4f1f;
}

.automation-section ul.examples li::marker {
  color: #ff7a3d;
}

.automation-section ul.ai-good li::marker {
  color: #31d77c; /* green for positive */
}

.automation-section ul.ai-bad li::marker {
  color: #d73d31; /* red for caution */
}

/* --- Fire glow underline on section headings --- */
.automation-section h2,
.automation-section h3 {
  position: relative;
  display: inline-block;
}

.automation-section h2::after,
.automation-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff4f1f, #ff7a3d, #ff4f1f);
  box-shadow: 0 0 10px rgba(255, 79, 31, 0.45);
  animation: fire-glow 3.2s ease-in-out infinite;
}

@keyframes fire-glow {
  0%,
  100% {
    opacity: 0.75;
    filter: drop-shadow(0 0 4px rgba(255, 79, 31, 0.25));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 122, 61, 0.55));
  }
}

/* --- Accent gradient divider for the section --- */
.automation-section {
  position: relative;
  overflow: clip;
}

.automation-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  height: 1px;
  top: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #ff4f1f 35%,
    #ff7a3d 65%,
    transparent
  );
  opacity: 0.35;
}

/* --- Gentle scroll-reveal for lists & paragraphs --- */
.automation-section .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}

.automation-section .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .automation-section h2::after,
  .automation-section h3::after {
    animation: none;
  }
  .reveal {
    transition: none;
  }
}

/* Ember container behind the text */
.ember-background {
  position: relative;
  overflow: hidden;
}

/* Particle styling */
.ember {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: radial-gradient(
    circle,
    rgba(255, 150, 0, 1) 0%,
    rgba(255, 80, 0, 0.5) 70%,
    rgba(255, 80, 0, 0) 100%
  );
  border-radius: 50%;
  animation: rise 20s linear infinite;
  opacity: 0.4;
}

/* Animation: rise up & fade */
@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-300px) scale(0.5);
    opacity: 0;
  } /* was -200px */
}

/* ===== New teaser grid ===== */
.teaser {
  background: #0f0f0f;
  padding: 40px 20px;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.teaser .wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.teaser h2 {
  color: #ff5722;
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.teaser p.sub {
  color: #cfcfcf;
  margin: 0 0 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.project-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  border-color: #ff5722;
}

.project-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #ff7a3d, #ff4f1f);
  opacity: 0.9;
}

.project-card h3 {
  margin: 4px 0 6px;
  color: #ff7a3d;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.project-card a.more {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  color: #ff8a65;
  font-weight: 600;
}

.project-card a.more:hover {
  text-decoration: underline;
}

/* =========================================
   Foresight-Redundancy Hero Section
   ========================================= */

.hero-fr {
  text-align: center;          /* Centers the text */
  padding: 4rem 1rem;          /* Adds generous vertical space */
  max-width: 900px;            /* Prevents lines from getting too wide */
  margin: 0 auto;              /* Centers the block horizontally */
  border-bottom: 1px solid #2a2a2a; /* Subtle separator from the next section */
  background: radial-gradient(circle at top, rgba(255, 87, 34, 0.08), transparent 70%);
  /* ^ Adds a very faint orange glow behind the hero text */
}

.hero-fr h1 {
  font-size: 2.8rem;           /* Big, bold headline */
  color: #ff5722;              /* Your primary orange */
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-fr .lead-text {
  font-size: 1.25rem;
  color: #e0e0e0;              /* Slightly brighter than standard gray */
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Buttons (CTA Row) --- */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;             /* Wraps nicely on mobile */
}

/* Primary Button (Filled Orange) */
.btn-primary {
  background-color: #ff5722;
  color: #121212;              /* Dark text on orange is high contrast */
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.2s, transform 0.2s;
  border: 2px solid #ff5722;
}

.btn-primary:hover {
  background-color: #ff7a3d;   /* Lighter orange on hover */
  border-color: #ff7a3d;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Subtext link styling */
.hero-subtext {
  color: #888;
  font-size: 1rem;
}

.hero-subtext a {
  color: #ff8a65;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Use Case Badges (Tickers) --- */
.use-case-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  color: #888;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.badge {
  background-color: #1f1f1f;
  border: 1px solid #333;
  color: #ccc;
  padding: 4px 12px;
  border-radius: 20px;         /* Pill shape */
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}