/* ---------- GENERAL PAGE STYLE ---------- */
body {
    background: linear-gradient(135deg, #fdfcfb 0%, #f8f9fa 100%);
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    color: #222;
    line-height: 1.7;
    padding-top: 1rem;
    margin: 0;
}

/* ---------- HEADERS ---------- */
h1,
h2,
h3 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #6c63ff, #8a7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    margin-top: 2rem;
    border-left: 5px solid #6c63ff;
    padding-left: 0.6rem;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #6c63ff, #8a7cff);
}

h3 {
    font-size: 1.2rem;
}

/* ---------- HERO SECTION ---------- */
.hero-cta {
    text-align: center;
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #6c63ff, #8a7cff);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

img[alt*="AI brain illustration"] {
    display: block;
    margin: 2rem auto;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

/* ---------- BLOG SECTION PREVIEWS (TEXT + IMAGE) ---------- */
.grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.grid:nth-child(even) {
  flex-direction: row-reverse; /* Alternate sides for visual rhythm */
}

.g-col-8 {
  flex: 1 1 65%;
}

.g-col-4 {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
}

.g-col-4 img {
  width: 200px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g-col-4 img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid {
    animation: fadeInUp 0.6s ease-out;
}

.grid:nth-child(1) { animation-delay: 0.1s; }
.grid:nth-child(2) { animation-delay: 0.2s; }
.grid:nth-child(3) { animation-delay: 0.3s; }

/* Responsive behavior */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .g-col-8, .g-col-4 {
    flex: 1 1 100%;
  }

  .g-col-4 img {
    margin-top: 1rem;
  }

  /* ---------- RESPONSIVE HEADINGS ---------- */
  h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.5rem;
  }
  
  h3 {
      font-size: 1.2rem;
  }
}

/* ---------- QUOTE / FOOTER ---------- */
blockquote {
    font-style: italic;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    color: #555;
    border-left: 4px solid #6c63ff;
    background: linear-gradient(135deg, #faf9ff 0%, #f0f2ff 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.1);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #6c63ff;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

footer {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

/* ---------- CODE BLOCKS ---------- */
pre code {
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: block;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

code {
    background: linear-gradient(135deg, #f2f2f2 0%, #e9ecef 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-weight: 500;
}

/* ---------- LINKS ---------- */
a {
    color: #6c63ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #5148e0;
    text-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #6c63ff, #8a7cff);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* ---------- RESPONSIVE IMAGES ---------- */
img {
    max-width: 100%;
    height: auto;
}

/* ---------- TABLE STYLE ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background-color: #f8f8f8;
}