:root {
  --bg-dark: #233159;
  --bg-card: #121829;
  --primary: #4f8cff;
  --accent: #22d3ee;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --shadow-light: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* ================= BASE ================= */

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--text-main);
}

main {
  overflow-x: hidden;
}

section {
  padding: 4rem 1.25rem;
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* ================= TYPOGRAPHY ================= */

h1, h2 {
  color: #ffffff;
  text-align: center;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0.75rem auto 0;
  text-align: center;
}

/* ================= HERO ================= */

.hero {
  text-align: center;
}

.hero.ai-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020617;
  padding: 6rem 1.25rem;
}

.hero.ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(34,211,238,0.18), transparent 60%),
    linear-gradient(to bottom, rgba(2,6,23,0.35), rgba(2,6,23,0.9));
  z-index: 2;
}

.hero.ai-hero .container {
  position: relative;
  z-index: 3;
}

/* AI BACKGROUND LAYERS (HERO) */
.hero.ai-hero .ai-layer {
  position: absolute;
  inset: -40%;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.hero.ai-hero .layer-1 {
  background-image: url("/images/artificial-intelligence-background--abstract-ai-background-with.jpg");
  animation: aiHeroFloat1 25s ease-in-out infinite;
}



@keyframes aiHeroFloat1 {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.12) translate(-80px,-50px); }
  100% { transform: scale(1) translate(0,0); }
}

@keyframes aiHeroFloat2 {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.18) translate(90px,60px); }
  100% { transform: scale(1) translate(0,0); }
}

/* HERO IMAGE */
.hero-image {
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  margin: 3rem auto 0;
  box-shadow: 0 30px 80px var(--shadow-dark);
  display: block;
}

/* ================= BADGE ================= */

.badge {
  display: inline-block;
  background: rgba(79,140,255,0.15);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ================= CARDS ================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 6px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-dark);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* ================= AI BACKGROUND BEHIND CARDS ================= */

.ai-cards-bg {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.ai-cards-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("/images/The-AI-Advantage.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  animation: aiCardsFloat 20s ease-in-out infinite;
  z-index: 1;
}

.ai-cards-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,6,23,0.92),
    rgba(2,6,23,0.6),
    rgba(2,6,23,0.92)
  );
  z-index: 2;
}

.ai-cards-bg .container {
  position: relative;
  z-index: 3;
}

@keyframes aiCardsFloat {
  0%   { transform: scale(1.1) translate(0,0); }
  50%  { transform: scale(1.15) translate(-40px,-30px); }
  100% { transform: scale(1.1) translate(0,0); }
}

/* ================= CTA ================= */

.cta {
  text-align: center;
}

.cta a {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================= FOOTER CTA ================= */

.footer-cta {
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  background: radial-gradient(circle at bottom, #020617, #000);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero.ai-hero {
    min-height: auto;
  }

  .hero.ai-hero .ai-layer,
  .ai-cards-bg::before {
    animation: none;
    opacity: 0.3;
  }

  section {
    padding: 3rem 1rem;
  }
}
