/* ==========================================================
   MoreTech AI – CLEAN FOUNDATION (PART 1)
   Status: SAFE / HTML-ALIGNED
========================================================== */

/* ----------------------------------------------------------
   TOKEN BRIDGE (WITH FALLBACKS)
---------------------------------------------------------- */
:root {
  --ai-bg-light: var(--mt-surface-light, #ffffff);
  --ai-bg-soft: var(--mt-surface-soft, #f8fafc);
  --ai-bg-dark: var(--mt-surface-dark, #020617);

  --ai-text-main: var(--mt-text-dark, #0f172a);
  --ai-text-muted: var(--mt-text-muted, #475569);

  --ai-primary: var(--mt-brand-primary, #2563eb);
  --ai-primary-hover: var(--mt-brand-primary-hover, #1e40af);

  --ai-border: var(--mt-border-color, #e5e7eb);
  --ai-radius: var(--mt-radius-lg, 16px);

  --ai-shadow-soft: var(--mt-shadow-soft, 0 12px 35px rgba(15,23,42,0.06));
}

/* ----------------------------------------------------------
   PAGE BASE (NO BODY DEPENDENCY)
---------------------------------------------------------- */
.ai-intro-section,
.ai-section,
.ai-cta-section {
  color: var(--ai-text-main);
}

/* ----------------------------------------------------------
   INTRO SECTION
---------------------------------------------------------- */
.ai-intro-section {
  background: linear-gradient(
    180deg,
    var(--ai-bg-soft),
    var(--ai-bg-light)
  );
  padding: 90px 0 70px;
}

.ai-section-title {
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}

.ai-section-subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ai-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   CORE SECTIONS
---------------------------------------------------------- */
.ai-section {
  padding: 90px 0;
  background: var(--ai-bg-light);
}

.ai-section-muted {
  background: var(--ai-bg-soft);
}

/* ----------------------------------------------------------
   GRID SYSTEM (MATCHES HTML)
---------------------------------------------------------- */
.ai-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.ai-grid-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 992px) {
  .ai-grid,
  .ai-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ----------------------------------------------------------
   TEXT BLOCK
---------------------------------------------------------- */
.ai-text h3.ai-heading {
  font-weight: 800;
  margin-bottom: 14px;
}

.ai-text p {
  color: var(--ai-text-muted);
  line-height: 1.7;
}

.ai-note {
  font-size: 0.9rem;
  color: #64748b;
}

/* ----------------------------------------------------------
   FEATURE LIST
---------------------------------------------------------- */
.ai-feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.ai-feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #334155;
}

.ai-feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ai-primary);
  font-weight: 700;
}

/* ----------------------------------------------------------
   VISUAL BLOCK
---------------------------------------------------------- */
.ai-visual {
  background: var(--ai-bg-dark);
  border-radius: var(--ai-radius);
  padding: 14px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}

.ai-visual img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
/* ==========================================================
   MoreTech AI – CLEAN FOUNDATION (PART 2 – FINAL)
   Status: HTML-ALIGNED / NO CONFLICTS
========================================================== */

/* ----------------------------------------------------------
   BUTTONS (BOOTSTRAP ALIGNED)
---------------------------------------------------------- */
.ai-cta-section .btn-primary {
  background: var(--ai-primary);
  border-color: var(--ai-primary);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
}

.ai-cta-section .btn-primary:hover {
  background: var(--ai-primary-hover);
  border-color: var(--ai-primary-hover);
}

/* ----------------------------------------------------------
   CTA SECTION
---------------------------------------------------------- */
.ai-cta-section {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--ai-bg-dark),
    #020617
  );
  padding: 90px 0;
  text-align: center;
}

.ai-cta-title {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 14px;
}

.ai-cta-text {
  color: #cbd5f5;
  max-width: 720px;
  margin: 0 auto 30px;
}

/* smooth visual transition before CTA */
.ai-cta-section::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    var(--ai-bg-light),
    var(--ai-bg-dark)
  );
}

/* ----------------------------------------------------------
   SECTION RHYTHM & BACKGROUND BREAK
---------------------------------------------------------- */
.ai-section:nth-of-type(even) {
  background: var(--ai-bg-soft);
}

.ai-section {
  position: relative;
}

.ai-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15,23,42,0.15),
    transparent
  );
  transform: translateX(-50%);
}

/* ----------------------------------------------------------
   RESPONSIVE TUNING
---------------------------------------------------------- */
@media (max-width: 991px) {
  .ai-section {
    padding: 60px 0;
  }

  .ai-grid {
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .ai-section-title {
    font-size: 1.6rem;
  }
}
/* ==========================================================
   BATCH 1: TEXT ↔ IMAGE VERTICAL BALANCE
========================================================== */

.ai-grid {
  align-items: center;
}

/* subtle offset to visually center text block */
.ai-text {
  padding-top: 8px;
}

/* reduce offset on reversed layouts */
.ai-grid-reverse .ai-text {
  padding-top: 0;
}
/* ==========================================================
   BATCH 1: TEXT ↔ IMAGE VERTICAL BALANCE
========================================================== */

.ai-grid {
  align-items: center;
}

/* subtle offset to visually center text block */
.ai-text {
  padding-top: 8px;
}

/* reduce offset on reversed layouts */
.ai-grid-reverse .ai-text {
  padding-top: 0;
}
/* ==========================================================
   BATCH 2: IMAGE DEPTH RHYTHM
========================================================== */

/* default image depth */
.ai-visual {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* alternate sections get slightly different depth */
.ai-section:nth-of-type(even) .ai-visual {
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}

.ai-section:nth-of-type(odd) .ai-visual {
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.4);
}
/* ==========================================================
   BATCH 4: SOFT IMAGE FRAME
========================================================== */

.ai-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ai-radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none;
}
