/* =========================================================================
   關於 NX AI — 平台介紹頁
   延續 dashboard 淺色科技感;Hero 用深色科技風背景 (network / particles)
   ========================================================================= */

/* ---------- Content wrapper (與 dashboard 一致的內邊距) ---------- */
.ab-content {
  padding: 20px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .ab-content { padding: 16px 18px 40px; gap: 22px; }
}

/* ==========================================================================
   1. HERO BANNER — 深色科技風
   ========================================================================== */
.ab-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% 0%, #0F172A 0%, #0B1220 45%, #050914 100%);
  color: #E5EDFF;
  padding: 64px 56px 68px;
  min-height: 340px;
  isolation: isolate;
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow:
    0 30px 60px -20px rgba(9, 14, 32, 0.55),
    0 2px 0 rgba(147, 197, 253, 0.08) inset;
}

/* 網格層 */
.ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 100% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 100% at 60% 40%, #000 20%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

/* 光暈層 */
.ab-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.30), transparent 70%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

/* AI 網路線條 SVG */
.ab-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 60%;
  max-width: 780px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* 粒子光點 */
.ab-hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ab-hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #93C5FD;
  box-shadow: 0 0 12px rgba(147, 197, 253, 0.9);
  animation: abFloat 6s ease-in-out infinite;
  opacity: 0.7;
}
.ab-hero-particles span:nth-child(1) { top: 22%; left: 12%; animation-delay: 0s; }
.ab-hero-particles span:nth-child(2) { top: 68%; left: 22%; animation-delay: 1.2s; width: 3px; height: 3px; }
.ab-hero-particles span:nth-child(3) { top: 40%; left: 34%; animation-delay: 2.4s; width: 2.5px; height: 2.5px; }
.ab-hero-particles span:nth-child(4) { top: 78%; left: 48%; animation-delay: 3.6s; }
.ab-hero-particles span:nth-child(5) { top: 30%; left: 58%; animation-delay: 0.8s; width: 3px; height: 3px; }
.ab-hero-particles span:nth-child(6) { top: 60%; left: 70%; animation-delay: 2.0s; }
.ab-hero-particles span:nth-child(7) { top: 20%; left: 78%; animation-delay: 3.2s; width: 3.5px; height: 3.5px; }
.ab-hero-particles span:nth-child(8) { top: 82%; left: 86%; animation-delay: 1.6s; width: 2.5px; height: 2.5px; }

@keyframes abFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.35; }
  50%      { transform: translateY(-12px) translateX(6px); opacity: 0.9; }
}

/* Hero 文字 */
.ab-hero-body {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-hero-key {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #93C5FD;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ab-hero-key::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, #60A5FA, transparent);
}
.ab-hero-title {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: var(--nx-ls-tight);
  color: #F8FAFF;
  margin: 0;
}
.ab-hero-title .grad {
  background: linear-gradient(90deg, #93C5FD 0%, #67E8F9 50%, #A5B4FC 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.ab-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(226, 232, 255, 0.72);
  margin: 0;
  letter-spacing: 0.01em;
}
.ab-hero-chip {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.28);
  font-family: var(--nx-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: #BFDBFE;
  text-transform: uppercase;
  width: fit-content;
}
.ab-hero-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
  animation: abPulse 1.8s ease-in-out infinite;
}
@keyframes abPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 900px) {
  .ab-hero { padding: 40px 26px 44px; min-height: auto; }
  .ab-hero-art { width: 100%; opacity: 0.35; }
  .ab-hero-title { font-size: 34px; }
  .ab-hero-sub { font-size: 15px; }
}

/* ==========================================================================
   2. Section 標題(共用)
   ========================================================================== */
.ab-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
  margin-top: 4px;
}
.ab-section-head .st {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-section-head h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-snug);
  margin: 0;
}
.ab-section-head .en {
  font-family: var(--nx-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--nx-ink-400);
  text-transform: uppercase;
}
.ab-section-head .hint {
  font-size: 13.5px;
  color: var(--nx-ink-500);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   3. "NX AI 是什麼?" — 敘述區塊
   ========================================================================== */
.ab-intro {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: var(--nx-shadow-md);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.ab-intro-body h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-snug);
  margin: 0 0 14px;
  line-height: 1.25;
}
.ab-intro-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--nx-ink-600);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.ab-intro-body p:last-child { margin-bottom: 0; }

/* 右側裝飾:同心圓 + 核心 */
.ab-intro-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  justify-self: end;
  width: 100%;
}
.ab-intro-art svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .ab-intro { grid-template-columns: 1fr; padding: 24px 22px; gap: 20px; }
  .ab-intro-art { max-width: 180px; justify-self: center; }
  .ab-intro-body h3 { font-size: 22px; }
}

/* ==========================================================================
   4. 三大 Core 卡片
   ========================================================================== */
.ab-cores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ab-core {
  position: relative;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 20px;
  padding: 28px 26px 30px;
  box-shadow: var(--nx-shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  isolation: isolate;
}
.ab-core::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--core-glow, rgba(59,130,246,0.10)) 0%, transparent 55%);
  pointer-events: none;
}
.ab-core > * { position: relative; z-index: 1; }

.ab-core:hover {
  transform: translateY(-3px);
  box-shadow: var(--nx-shadow-lg);
  border-color: var(--core-line, rgba(59,130,246,0.4));
}

.ab-core .k {
  font-family: var(--nx-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--core-accent, var(--nx-primary));
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.ab-core .k::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.ab-core h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-snug);
  margin: 0 0 4px;
  line-height: 1.25;
}
.ab-core .tw {
  font-size: 14px;
  color: var(--nx-ink-500);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.ab-core p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-ink-600);
  margin: 0;
}

/* Core icon 徽章 */
.ab-core .badge-ico {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--core-badge, rgba(59, 130, 246, 0.08));
  color: var(--core-accent, var(--nx-primary));
  z-index: 2;
}

.ab-core.c-01 {
  --core-accent: #2563EB;
  --core-glow: rgba(59, 130, 246, 0.12);
  --core-line: rgba(59, 130, 246, 0.42);
  --core-badge: rgba(37, 99, 235, 0.10);
}
.ab-core.c-02 {
  --core-accent: #0891B2;
  --core-glow: rgba(6, 182, 212, 0.12);
  --core-line: rgba(6, 182, 212, 0.42);
  --core-badge: rgba(8, 145, 178, 0.10);
}
.ab-core.c-03 {
  --core-accent: #6366F1;
  --core-glow: rgba(129, 140, 248, 0.14);
  --core-line: rgba(129, 140, 248, 0.42);
  --core-badge: rgba(99, 102, 241, 0.10);
}

@media (max-width: 900px) {
  .ab-cores { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. 平台特色(4 張資訊卡)
   ========================================================================== */
.ab-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ab-feat {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  padding: 24px 22px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ab-feat:hover {
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow-md);
  border-color: var(--nx-line-strong);
}
.ab-feat .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.10));
  color: var(--nx-primary);
  display: grid;
  place-items: center;
}
.ab-feat h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-snug);
  margin: 0;
  line-height: 1.3;
}
.ab-feat p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--nx-ink-500);
  margin: 0;
}

@media (max-width: 1100px) {
  .ab-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ab-features { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. 平台理念
   ========================================================================== */
.ab-mission {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 60px 48px;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #0E7490 100%);
  color: #F8FAFF;
  text-align: center;
  border: 1px solid rgba(147, 197, 253, 0.18);
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.45);
}
.ab-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(147, 197, 253, 0.14), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(103, 232, 249, 0.16), transparent 45%);
  pointer-events: none;
}
.ab-mission::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}
.ab-mission .m-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}
.ab-mission .m-key {
  font-family: var(--nx-font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #93C5FD;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.ab-mission .m-key::before,
.ab-mission .m-key::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #60A5FA, transparent);
}
.ab-mission .m-quote {
  font-size: 30px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: var(--nx-ls-tight);
  margin: 0;
  text-wrap: balance;
}
.ab-mission .m-quote .grad {
  background: linear-gradient(90deg, #93C5FD 0%, #67E8F9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .ab-mission { padding: 40px 24px; }
  .ab-mission .m-quote { font-size: 22px; }
}

/* ==========================================================================
   7. 頁尾
   ========================================================================== */
.ab-foot {
  margin-top: 8px;
  padding: 32px 8px 12px;
  border-top: 1px solid var(--nx-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.ab-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ab-foot-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #fff;
  font-family: var(--nx-font-mono);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.24);
}
.ab-foot-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--nx-ink-900);
  letter-spacing: 0.02em;
}
.ab-foot-tag {
  font-family: var(--nx-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--nx-ink-500);
}
.ab-foot-copy {
  font-family: var(--nx-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--nx-ink-400);
  margin-top: 4px;
}
