/* =====================================
   AI Page Clean CSS - Dr. Harrasi / Neuron
   Replace entire: assets/css/ai-page.css
   ===================================== */

.ai-page {
  --ai-ink: #102236;
  --ai-muted: #60758e;
  --ai-line: #dce8f3;
  --ai-soft: #f6f9fd;
  --ai-card: #ffffff;
  --ai-blue: #0f3152;
  --ai-purple: #514bb7;
  --ai-cyan: #8fd7e7;

  overflow-x: clip;
  background: #ffffff;
}

.ai-page :where(*) {
  box-sizing: border-box;
}

.ai-page :where(a) {
  text-decoration: none;
}

.ai-page .container {
  position: relative;
  z-index: 2;
}

/* =====================================
   01. Robot first hero - white, clean, robot only
   ===================================== */

.ai-page .ai-hero,
.ai-page .ai-robot-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: clamp(22px, 3vw, 42px) 0 clamp(24px, 3vw, 48px);
  overflow: hidden;
  background: #ffffff;
  border: 0;
}

.ai-page .ai-hero::before,
.ai-page .ai-hero::after,
.ai-page .ai-robot-hero::before,
.ai-page .ai-robot-hero::after,
.ai-page .ai-robot-bg {
  display: none;
  content: none;
}

/* First screen must not show text */
.ai-page .ai-hero-copy,
.ai-page .ai-hero-clean-inner,
.ai-page .ai-kicker,
.ai-page .ai-hero-eyebrow,
.ai-page .ai-hero-actions,
.ai-page .ai-hero-tags,
.ai-page .ai-hero-points,
.ai-page .ai-brand-mini {
  display: none;
}

.ai-page .ai-hero-grid {
  width: 100%;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
}

.ai-page .ai-hero-visual {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 62px);
}

.ai-page .robot-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ai-page .robot-shell-top {
  display: none;
}

.ai-page .robot-stage,
.ai-page .ai-robot-stage,
.ai-page .ai-spline-frame {
  position: relative;
  width: 100%;
  height: min(78vh, 720px);
  min-height: 560px;
  max-height: 720px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 34px;
  clip-path: inset(0 round 34px);
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.ai-page .spline-frame,
.ai-page .ai-robot-embed,
.ai-page #spline-iframe,
.ai-page .ai-spline-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: calc(100% + 130px);
  border: 0;
  border-radius: inherit;
  background: #ffffff;
  opacity: 0;
  transition: opacity .28s ease;
}

.ai-page .spline-frame.is-ready,
.ai-page .ai-robot-embed.is-ready,
.ai-page #spline-iframe.is-ready {
  opacity: 1;
}

.ai-page .robot-fallback,
.ai-page .ai-robot-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  text-align: center;
  background: #ffffff;
  border-radius: inherit;
  overflow: hidden;
}

.ai-page .robot-fallback-card {
  display: grid;
  place-items: center;
  gap: 12px;
}

.ai-page .robot-fallback-card svg {
  width: min(76%, 360px);
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(25, 38, 76, .14));
}

.ai-page .robot-fallback-card strong {
  color: var(--ai-ink);
  font-size: 24px;
  font-weight: 950;
}

.ai-page .robot-fallback-card small {
  display: block;
  max-width: 320px;
  color: var(--ai-muted);
  font-size: 13px;
  line-height: 1.9;
}

/* light clipping edge, not a visible frame */
.ai-page .robot-stage::after,
.ai-page .ai-robot-stage::after,
.ai-page .ai-spline-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 24, 49, .035);
}

/* =====================================
   02. Intro text below robot
   ===================================== */

.ai-page .ai-intro-section {
  padding: clamp(56px, 6vw, 88px) 0 clamp(28px, 4vw, 46px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ai-page .ai-intro-wrap,
.ai-page .ai-intro-card {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.ai-page .ai-intro-wrap .eyebrow,
.ai-page .ai-intro-card .eyebrow,
.ai-page .section-head .eyebrow,
.ai-page .journey-copy .eyebrow,
.ai-page .ai-cta-card .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eef7fb;
  color: #143657;
  border: 1px solid #d7eaf3;
  font-size: 13px;
  font-weight: 900;
}

.ai-page .ai-intro-wrap .eyebrow::before,
.ai-page .ai-intro-card .eyebrow::before,
.ai-page .section-head .eyebrow::before,
.ai-page .journey-copy .eyebrow::before,
.ai-page .ai-cta-card .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 0 6px rgba(143, 215, 231, .18);
}

.ai-page .ai-intro-wrap h1,
.ai-page .ai-intro-card h2,
.ai-page .section-head h2 {
  max-width: 900px;
  margin: 18px auto 16px;
  color: var(--ai-ink);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: -.6px;
}

.ai-page .ai-intro-wrap p,
.ai-page .ai-intro-card p,
.ai-page .section-head p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ai-muted);
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 2.05;
  font-weight: 700;
}

.ai-page .ai-intro-chips,
.ai-page .ai-intro-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.ai-page .ai-intro-chips span,
.ai-page .ai-intro-stats article {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 18px;
  color: #173a5d;
  background: #ffffff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 12px 28px rgba(16, 24, 46, .05);
  font-weight: 900;
}

/* =====================================
   03. Neuron role cards
   ===================================== */

.ai-page .roles-section,
.ai-page .neuron-features-section,
.ai-page .ai-journey-section,
.ai-page .ai-features-section,
.ai-page .ai-cta-section {
  position: relative;
  background: #ffffff;
}

.ai-page .roles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.ai-page .role-card {
  position: relative;
  min-height: 318px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 30px;
  background: linear-gradient(180deg, #514bb7 0%, #4741a5 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 54px rgba(31, 27, 89, .16);
}

.ai-page .role-card::before,
.ai-page .role-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ai-page .role-card::before {
  width: 180px;
  height: 180px;
  left: -82px;
  bottom: -96px;
  background: rgba(255, 255, 255, .08);
}

.ai-page .role-card::after {
  width: 130px;
  height: 130px;
  right: -34px;
  bottom: -34px;
  background: rgba(143, 215, 231, .17);
}

.ai-page .role-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-inline-start: auto;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  font-size: 28px;
}

.ai-page .role-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.55;
  font-weight: 950;
}

.ai-page .role-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  line-height: 1.95;
  font-weight: 700;
}

.ai-page .role-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 26px;
  border-radius: 18px;
  color: #1b2457;
  background: rgba(255, 255, 255, .96);
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(16, 17, 44, .18);
  transition: transform .22s ease, box-shadow .22s ease;
}

.ai-page .role-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(16, 17, 44, .20);
}

/* =====================================
   04. Feature cards
   ===================================== */

.ai-page .neuron-features-section,
.ai-page .ai-features-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ai-page .neuron-features-grid,
.ai-page .ai-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.ai-page .feature-card,
.ai-page .ai-feature-card {
  min-height: 246px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 18px 44px rgba(16, 24, 46, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ai-page .feature-card:hover,
.ai-page .ai-feature-card:hover {
  transform: translateY(-5px);
  border-color: #ceddea;
  box-shadow: 0 24px 52px rgba(16, 24, 46, .10);
}

.ai-page .feature-no,
.ai-page .ai-feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #30429d;
  background: linear-gradient(135deg, rgba(143, 215, 231, .22), rgba(138, 111, 255, .16));
  border: 1px solid rgba(138, 111, 255, .14);
  font-weight: 950;
}

.ai-page .feature-card h3,
.ai-page .ai-feature-card h3 {
  margin: 0 0 12px;
  color: var(--ai-ink);
  font-size: 21px;
  line-height: 1.6;
  font-weight: 950;
}

.ai-page .feature-card p,
.ai-page .ai-feature-card p {
  margin: 0;
  color: var(--ai-muted);
  line-height: 1.95;
}

/* =====================================
   05. Journey
   ===================================== */

.ai-page .ai-journey-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.ai-page .journey-copy h2 {
  margin: 16px 0;
  color: var(--ai-ink);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.45;
  font-weight: 950;
}

.ai-page .journey-copy p {
  margin: 0;
  color: var(--ai-muted);
  line-height: 2;
}

.ai-page .journey-steps {
  display: grid;
  gap: 14px;
}

.ai-page .journey-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  border: 1px solid var(--ai-line);
  box-shadow: 0 12px 30px rgba(16, 24, 46, .04);
}

.ai-page .journey-steps article > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(143, 215, 231, .22), rgba(138, 111, 255, .16));
  color: #30429d;
  font-weight: 950;
}

.ai-page .journey-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ai-ink);
  font-size: 18px;
  font-weight: 950;
}

.ai-page .journey-steps p {
  margin: 0;
  color: var(--ai-muted);
  line-height: 1.9;
}

/* =====================================
   06. CTA
   ===================================== */

.ai-page .ai-cta-section {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ai-page .ai-cta-card {
  padding: clamp(34px, 5vw, 56px);
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(135deg, #141d46 0%, #23307a 55%, #372ea9 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 26px 80px rgba(12, 18, 40, .14);
}

.ai-page .ai-cta-card .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .16);
}

.ai-page .ai-cta-card h2 {
  max-width: 860px;
  margin: 18px auto;
  color: #ffffff;
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.55;
  font-weight: 950;
}

.ai-page .ai-cta-card p {
  max-width: 730px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .84);
  line-height: 2;
}

.ai-page .ai-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.ai-page .ai-cta-card .btn {
  min-height: 54px;
  padding-inline: 28px;
  border-radius: 999px;
  font-weight: 900;
}

.ai-page .ai-cta-card .btn-primary {
  background: #ffffff;
  color: #1d2658;
}

.ai-page .ai-cta-card .btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
}

/* form tweaks just for this page */
.ai-page .consultation-intro h2 {
  max-width: 18ch;
}

/* =====================================
   Responsive
   ===================================== */

@media (max-width: 1200px) {
  .ai-page .roles-grid,
  .ai-page .neuron-features-grid,
  .ai-page .ai-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .ai-page .ai-hero,
  .ai-page .ai-robot-hero {
    min-height: auto;
    padding: 26px 0 34px;
  }

  .ai-page .ai-hero-grid {
    min-height: auto;
  }

  .ai-page .ai-hero-visual {
    max-width: 840px;
    padding-inline: 18px;
  }

  .ai-page .robot-stage,
  .ai-page .ai-robot-stage,
  .ai-page .ai-spline-frame {
    height: 520px;
    min-height: 420px;
    border-radius: 28px;
    clip-path: inset(0 round 28px);
  }

  .ai-page .spline-frame,
  .ai-page .ai-robot-embed,
  .ai-page #spline-iframe,
  .ai-page .ai-spline-frame iframe {
    height: calc(100% + 100px);
  }

  .ai-page .ai-journey-grid {
    grid-template-columns: 1fr;
  }

  .ai-page .journey-copy {
    text-align: center;
  }

  .ai-page .journey-copy .eyebrow {
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .ai-page .roles-grid,
  .ai-page .neuron-features-grid,
  .ai-page .ai-features-grid {
    grid-template-columns: 1fr;
  }

  .ai-page .ai-hero,
  .ai-page .ai-robot-hero {
    padding: 16px 0 22px;
  }

  .ai-page .ai-hero-visual {
    padding-inline: 12px;
  }

  .ai-page .robot-stage,
  .ai-page .ai-robot-stage,
  .ai-page .ai-spline-frame {
    height: 380px;
    min-height: 330px;
    border-radius: 22px;
    clip-path: inset(0 round 22px);
  }

  .ai-page .spline-frame,
  .ai-page .ai-robot-embed,
  .ai-page #spline-iframe,
  .ai-page .ai-spline-frame iframe {
    height: calc(100% + 80px);
  }

  .ai-page .ai-intro-wrap h1,
  .ai-page .ai-intro-card h2,
  .ai-page .section-head h2 {
    font-size: 30px;
    line-height: 1.55;
  }

  .ai-page .ai-intro-wrap p,
  .ai-page .ai-intro-card p,
  .ai-page .section-head p {
    font-size: 15px;
    line-height: 2;
  }

  .ai-page .role-card,
  .ai-page .feature-card,
  .ai-page .ai-feature-card {
    min-height: auto;
  }

  .ai-page .role-card h3 {
    font-size: 23px;
  }

  .ai-page .feature-card h3,
  .ai-page .ai-feature-card h3 {
    font-size: 20px;
  }

  .ai-page .journey-steps article {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-page .journey-steps article > span {
    margin-inline: auto;
  }

  .ai-page .ai-cta-card .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================
   AI Intro Section Background
   تغییر بک‌گراند بخش معرفی نورون
   ========================================= */

.ai-page .ai-intro-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 215, 231, .18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(138, 111, 255, .14), transparent 32%),
    linear-gradient(180deg, #050046 0%, #490066 100%) !important;

  padding: clamp(78px, 8vw, 120px) 0 !important;
}
/* سفید کردن تیتر بخش معرفی نورون */
.ai-page .ai-intro-section h1,
.ai-page .ai-intro-wrap h1 {
  color: #ffffff !important;
}
/* =========================================
   Robot Fallback Image
   عکس جایگزین ربات هنگام دیر لود شدن Spline
   ========================================= */

.ai-page .robot-stage {
  position: relative !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

/* عکس جایگزین */
.ai-page .robot-fallback-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;

  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;

  opacity: 1 !important;
  visibility: visible !important;

  transition: opacity .45s ease, visibility .45s ease !important;
  background: #ffffff !important;
}

/* iframe ربات */
.ai-page .spline-frame {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;

  width: 100% !important;
  height: calc(100% + var(--spline-crop-extra, 110px)) !important;

  border: 0 !important;
  background: #ffffff !important;

  opacity: 0 !important;
  transition: opacity .45s ease !important;
}

/* وقتی Spline آماده شد */
.ai-page .robot-stage.is-loaded .spline-frame {
  opacity: 1 !important;
  z-index: 3 !important;
}

.ai-page .robot-stage.is-loaded .robot-fallback-img {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* اگر Spline لود نشد، عکس بماند */
.ai-page .robot-stage.is-failed .robot-fallback-img {
  opacity: 1 !important;
  visibility: visible !important;
}

.ai-page .robot-stage.is-failed .spline-frame {
  opacity: 0 !important;
}
.inline-brand{
    display:inline-flex;
    align-items:center;
    gap:12px;
}

.inline-brand img{
    width:58px;
    height:58px;
    object-fit:contain;
}
.panel-title{
    text-align:center;
    line-height:2;
    font-size:1.18rem;
    font-weight:700;
    color:#000000;
    margin-bottom:60px;
}

.panel-title span{
    display:block;
}