/* ETEC official catalog page — 3D animated, trilingual (fa/en/ar). */
.cat-page {
  --cat-blue: #4f8cf7;
  --cat-purple: #a855f7;
  --cat-cyan: #22d3ee;
  --cat-pink: #ec4899;
  --cat-green: #22c55e;
  --cat-amber: #fbbf24;
  --cat-red: #ef4444;
  --cat-grad: linear-gradient(135deg, #4f8cf7 0%, #a855f7 100%);
  --cat-grad-4: linear-gradient(135deg, #4f8cf7, #a855f7 33%, #22d3ee 66%, #ec4899);
  --cat-ink: #1e293b;
  --cat-muted: #64748b;
  --cat-bg: #f6f8fc;
  --cat-card: #ffffff;
  --cat-line: #e2e8f0;
  --cat-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --cat-radius: 16px;
  position: relative;
  color: var(--cat-ink);
  background: var(--cat-bg);
  overflow-x: clip;
}
html[data-theme='dark'] .cat-page {
  --cat-ink: #e8eefb;
  --cat-muted: #94a3b8;
  --cat-bg: #070d1a;
  --cat-card: #0e1729;
  --cat-line: #1e2a44;
  --cat-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.cat-page a { color: inherit; }

/* progress */
.cat-progress { position: sticky; top: 0; z-index: 60; height: 4px; background: transparent; }
.cat-progress i { display: block; height: 100%; width: 0; background: var(--cat-grad-4); background-size: 220% 100%; animation: catShimmer 3.4s linear infinite; box-shadow: 0 0 10px rgba(79,140,247,.65); }
@keyframes catShimmer { from { background-position: -120% 0; } to { background-position: 220% 0; } }

/* ══════════ COVER ══════════ */
.cat-cover {
  position: relative; min-height: min(92vh, 880px);
  display: flex; align-items: center; justify-content: center;
  padding: 96px 20px 72px; margin: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #101a33 0%, #0a0f1e 55%, #090b18 100%);
  color: #f1f6ff; isolation: isolate;
}
.cat-aurora {
  position: absolute; inset: -25%; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 22% 28%, rgba(79,140,247,.55) 0%, transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(168,85,247,.5) 0%, transparent 46%),
    radial-gradient(circle at 62% 78%, rgba(34,211,238,.4) 0%, transparent 44%),
    radial-gradient(circle at 28% 74%, rgba(236,72,153,.35) 0%, transparent 44%);
  filter: blur(70px) saturate(160%);
  animation: catAurora 26s ease-in-out infinite alternate;
}
@keyframes catAurora {
  0% { transform: translate(0,0) rotate(0) scale(1); }
  50% { transform: translate(3%,-2%) rotate(5deg) scale(1.08); }
  100% { transform: translate(-2%,3%) rotate(-4deg) scale(1.12); }
}
.cat-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(79,140,247,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,140,247,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
}

/* 3D scene: orb + rings + cube */
.cat-scene {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  perspective: 900px; transform-style: preserve-3d;
  transition: transform .35s ease-out;
}
.cat-orb {
  position: absolute; top: 50%; left: 50%; width: 340px; height: 340px;
  margin: -170px 0 0 -170px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(120,170,255,.35), rgba(79,140,247,.12) 45%, rgba(168,85,247,.16) 75%, transparent 78%);
  box-shadow: 0 0 90px rgba(79,140,247,.35), inset 0 0 60px rgba(34,211,238,.18);
  animation: catFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.cat-core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9ec1ff, #4f8cf7 55%, #7c3aed);
  box-shadow: 0 0 44px rgba(79,140,247,.9), 0 0 110px rgba(168,85,247,.55);
  animation: catPulse 3.2s ease-in-out infinite;
}
@keyframes catFloat { 0%,100% { transform: translateY(0) translateZ(0); } 50% { transform: translateY(-16px) translateZ(30px); } }
@keyframes catPulse { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.12); filter: brightness(1.25); } }
.cat-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1.5px solid transparent;
  transform-style: preserve-3d;
}
.cat-ring-a {
  width: 470px; height: 470px; margin: -235px 0 0 -235px;
  border-color: rgba(79,140,247,.5);
  animation: catSpinA 14s linear infinite;
}
.cat-ring-b {
  width: 600px; height: 600px; margin: -300px 0 0 -300px;
  border-color: rgba(168,85,247,.4); border-style: dashed;
  animation: catSpinB 22s linear infinite reverse;
}
.cat-ring-c {
  width: 730px; height: 730px; margin: -365px 0 0 -365px;
  border-color: rgba(34,211,238,.28);
  animation: catSpinC 30s linear infinite;
}
@keyframes catSpinA { from { transform: rotateX(66deg) rotateZ(0); } to { transform: rotateX(66deg) rotateZ(360deg); } }
@keyframes catSpinB { from { transform: rotateX(72deg) rotateY(12deg) rotateZ(0); } to { transform: rotateX(72deg) rotateY(12deg) rotateZ(360deg); } }
@keyframes catSpinC { from { transform: rotateX(58deg) rotateY(-14deg) rotateZ(0); } to { transform: rotateX(58deg) rotateY(-14deg) rotateZ(360deg); } }
.cat-cube {
  position: absolute; top: 22%; right: 14%; width: 74px; height: 74px;
  transform-style: preserve-3d; animation: catCube 16s linear infinite;
  opacity: .85;
}
.cat-cube .cf {
  position: absolute; inset: 0; border: 1.5px solid rgba(140,190,255,.55);
  background: linear-gradient(135deg, rgba(79,140,247,.14), rgba(168,85,247,.14));
  box-shadow: inset 0 0 18px rgba(79,140,247,.25);
}
.cat-cube .f1 { transform: translateZ(37px); }
.cat-cube .f2 { transform: rotateY(180deg) translateZ(37px); }
.cat-cube .f3 { transform: rotateY(90deg) translateZ(37px); }
.cat-cube .f4 { transform: rotateY(-90deg) translateZ(37px); }
.cat-cube .f5 { transform: rotateX(90deg) translateZ(37px); }
.cat-cube .f6 { transform: rotateX(-90deg) translateZ(37px); }
@keyframes catCube {
  0% { transform: rotateX(-18deg) rotateY(0) translateY(0); }
  50% { transform: rotateX(18deg) rotateY(180deg) translateY(-26px); }
  100% { transform: rotateX(-18deg) rotateY(360deg) translateY(0); }
}

.cat-cover-content { position: relative; z-index: 2; max-width: 860px; text-align: center; animation: catIn 1s cubic-bezier(.16,1,.3,1) both; }
@keyframes catIn { from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
.cat-cover-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 8px 18px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .18em;
  background: rgba(79,140,247,.14); border: 1px solid rgba(79,140,247,.45); color: #bcd3ff;
  backdrop-filter: blur(8px);
}
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: catPulse 1.6s ease-in-out infinite; }
.cat-cover-title {
  font-size: clamp(44px, 8vw, 92px); font-weight: 900; letter-spacing: .06em; line-height: 1.05;
  background: linear-gradient(120deg, #fff 10%, #a9c1e0 45%, #4f8cf7 80%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(79,140,247,.45));
  animation: catGlow 5s ease-in-out infinite;
}
@keyframes catGlow { 0%,100% { filter: drop-shadow(0 6px 22px rgba(79,140,247,.4)); } 50% { filter: drop-shadow(0 6px 40px rgba(168,85,247,.65)); } }
.cat-cover-sub { margin-top: 14px; font-size: clamp(17px, 2.4vw, 25px); font-weight: 700; color: #c4b5fd; letter-spacing: .02em; }
.cat-divider {
  width: min(300px, 70%); height: 3px; margin: 26px auto; border-radius: 3px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, transparent, #4f8cf7, #22d3ee, #a855f7, transparent);
}
.cat-divider::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #fff, transparent); animation: catSlide 2.8s ease-in-out infinite; }
@keyframes catSlide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.cat-tagline { font-size: clamp(15px, 1.8vw, 19px); color: #9dbdf6; line-height: 2; max-width: 640px; margin: 0 auto 30px; }
.cat-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.cat-badge {
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 700; color: #c7d9fb;
  background: rgba(79,140,247,.13); border: 1px solid rgba(79,140,247,.42);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s, box-shadow .3s;
}
.cat-badge:hover { transform: translateY(-4px) scale(1.06); background: rgba(79,140,247,.3); box-shadow: 0 10px 24px rgba(79,140,247,.4); color: #fff; }
.cat-cover-foot { font-size: 12.5px; color: #6d82ab; letter-spacing: .08em; }
.cat-scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 34px;
  text-decoration: none; color: #8ab4f8; font-size: 13px; font-weight: 600;
}
.cat-scroll-hint i { font-style: normal; animation: catBounce 1.6s ease-in-out infinite; font-size: 18px; }
@keyframes catBounce { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(8px); opacity: 1; } }

/* ══════════ layout ══════════ */
.cat-page .cat-toc, .cat-page .cat-section, .cat-page .cat-foot {
  max-width: 1060px; margin-inline: auto; padding: 44px clamp(16px, 4vw, 40px);
}
.cat-section {
  margin-top: 34px; background: var(--cat-card); border: 1px solid var(--cat-line);
  border-radius: 22px; box-shadow: var(--cat-shadow); position: relative; overflow: hidden;
}
.cat-section::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: var(--cat-grad-4); background-size: 220% 100%; animation: catShimmer 5s linear infinite;
  opacity: .85;
}
.cat-sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.cat-sec-num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 58px; height: 58px; border-radius: 17px; font-size: 22px; font-weight: 900; color: #fff;
  background: var(--cat-grad); box-shadow: 0 12px 26px rgba(79,140,247,.35);
  position: relative; overflow: hidden;
}
.cat-sec-num::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45), transparent 70%); transform: translateX(-120%); animation: catSweep 4.5s ease-in-out infinite; }
@keyframes catSweep { 0%,100% { transform: translateX(-120%); } 50% { transform: translateX(120%); } }
.cat-sec-title { font-size: clamp(21px, 3vw, 29px); font-weight: 900; line-height: 1.35; margin: 0; }
.cat-lead { color: var(--cat-muted); line-height: 2; margin: 4px 0 20px; font-size: 15.5px; }
.cat-subhead { font-size: 18px; font-weight: 800; margin: 26px 0 14px; color: var(--cat-blue); }

/* reveal + tilt (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-tilt] { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; transform-style: preserve-3d; will-change: transform; }

/* cards */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cat-card {
  padding: 24px 22px; border-radius: var(--cat-radius); background: var(--cat-card);
  border: 1px solid var(--cat-line); border-inline-start: 5px solid var(--cat-blue);
  position: relative; overflow: hidden;
}
.cat-card.tone-success { border-inline-start-color: var(--cat-green); background: linear-gradient(135deg, rgba(34,197,94,.08), transparent 60%); }
.cat-card.tone-warning { border-inline-start-color: var(--cat-amber); background: linear-gradient(135deg, rgba(251,191,36,.1), transparent 60%); }
.cat-card.tone-danger { border-inline-start-color: var(--cat-red); background: linear-gradient(135deg, rgba(239,68,68,.08), transparent 60%); }
.cat-card h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 800; }
.cat-card p { margin: 0; color: var(--cat-muted); font-size: 13.5px; line-height: 1.95; }
.cat-card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 13px; font-size: 20px; background: var(--cat-grad); color: #fff;
  box-shadow: 0 8px 18px rgba(79,140,247,.32);
}
.cat-card.tone-success .cat-card-icon { background: linear-gradient(135deg, #22c55e, #10b981); }
.cat-card.tone-warning .cat-card-icon { background: linear-gradient(135deg, #fbbf24, #f97316); }

/* stats */
.cat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 24px 0 6px; }
.cat-stat {
  padding: 26px 16px; border-radius: var(--cat-radius); text-align: center; color: #fff;
  background: var(--cat-grad); box-shadow: 0 14px 30px rgba(79,140,247,.32); position: relative; overflow: hidden;
}
.cat-stat:nth-child(2) { background: linear-gradient(135deg, #a855f7, #ec4899); box-shadow: 0 14px 30px rgba(168,85,247,.3); }
.cat-stat:nth-child(3) { background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 14px 30px rgba(34,197,94,.3); }
.cat-stat:nth-child(4) { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 14px 30px rgba(251,191,36,.3); }
.cat-stat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,.22), transparent 68%); transform: translateX(-120%); animation: catSweep 3.6s ease-in-out infinite; }
.cat-stat-value { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 900; line-height: 1.1; text-shadow: 0 3px 12px rgba(0,0,0,.22); }
.cat-stat-label { font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.cat-stat-label small { display: block; font-weight: 500; opacity: .8; font-size: 11px; margin-top: 3px; }

/* table */
.cat-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--cat-line); box-shadow: var(--cat-shadow); margin: 18px 0; }
.cat-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--cat-card); min-width: 560px; }
.cat-table thead { background: var(--cat-grad); color: #fff; }
.cat-table th { padding: 14px 16px; text-align: start; font-weight: 800; font-size: 13.5px; }
.cat-table td { padding: 13px 16px; border-bottom: 1px solid var(--cat-line); color: var(--cat-muted); line-height: 1.8; }
.cat-table tbody tr:nth-child(even) { background: rgba(79,140,247,.045); }
html[data-theme='dark'] .cat-table tbody tr:nth-child(even) { background: rgba(79,140,247,.07); }
.cat-table tbody tr:hover { background: rgba(79,140,247,.1); }
.cat-table tbody tr:last-child td { border-bottom: none; }

/* stages */
.cat-stages { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0; }
.cat-stage {
  padding: 10px 18px; border-radius: 100px; font-size: 13px; font-weight: 800;
  background: rgba(79,140,247,.08); border: 1px solid var(--cat-line); color: var(--cat-ink);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, background .3s;
}
.cat-stage:hover { transform: translateY(-4px) scale(1.06); background: var(--cat-grad); color: #fff; border-color: transparent; box-shadow: 0 12px 24px rgba(79,140,247,.35); }
.cat-stage.done { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.45); color: #16a34a; }
.cat-stage.active { background: var(--cat-grad); color: #fff; border-color: transparent; box-shadow: 0 0 22px rgba(79,140,247,.55); animation: catChip 1.6s ease-in-out infinite; }
@keyframes catChip { 0%,100% { box-shadow: 0 0 14px rgba(79,140,247,.45); } 50% { box-shadow: 0 0 30px rgba(79,140,247,.85); } }

/* phases */
.cat-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.cat-phase {
  padding: 22px 14px; text-align: center; border-radius: 14px; background: var(--cat-card);
  border: 1px solid var(--cat-line); position: relative; overflow: hidden;
}
.cat-phase::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--cat-grad); }
.cat-phase:nth-child(2)::before { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.cat-phase:nth-child(3)::before { background: linear-gradient(90deg, #22c55e, #10b981); }
.cat-phase:nth-child(4)::before { background: linear-gradient(90deg, #0ea5e9, #06b6d4); }
.cat-phase:nth-child(5)::before { background: linear-gradient(90deg, #e879f9, #ec4899); }
.cat-phase-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  font-size: 24px; border-radius: 16px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(79,140,247,.16), rgba(168,85,247,.16));
  border: 2px solid rgba(79,140,247,.3);
}
.cat-phase b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.cat-phase small { color: var(--cat-muted); font-size: 12px; }

/* list cards */
.cat-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 18px 0; }
.cat-list-card { padding: 26px 24px; border-radius: var(--cat-radius); background: linear-gradient(160deg, rgba(79,140,247,.07), transparent 55%); border: 1px solid var(--cat-line); }
.cat-list-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.cat-list-card ul { list-style: none; margin: 0; padding: 0; }
.cat-list-card li { padding: 8px 0 8px 0; padding-inline-start: 22px; position: relative; color: var(--cat-muted); font-size: 13.5px; line-height: 1.85; }
.cat-list-card li::before { content: '▸'; position: absolute; inset-inline-start: 0; color: var(--cat-blue); font-weight: 900; }

/* features */
.cat-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.cat-feature {
  padding: 22px 16px; text-align: center; border-radius: 14px; background: var(--cat-card);
  border: 1px solid var(--cat-line); position: relative; overflow: hidden;
}
.cat-feature::after { content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--cat-grad); transform: scaleX(0); transform-origin: center; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.cat-feature:hover::after { transform: scaleX(1); }
.cat-feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  font-size: 25px; border-radius: 17px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(79,140,247,.15), rgba(168,85,247,.15));
  border: 2px solid rgba(79,140,247,.28); transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .35s, color .35s;
}
.cat-feature:hover .cat-feature-icon { background: var(--cat-grad); color: #fff; transform: scale(1.12) rotate(-7deg); box-shadow: 0 12px 26px rgba(79,140,247,.4); }
.cat-feature b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 5px; }
.cat-feature small { color: var(--cat-muted); font-size: 12.5px; line-height: 1.75; display: block; }

/* pills + code */
.cat-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.cat-pill { padding: 8px 16px; border-radius: 100px; font-size: 12.5px; font-weight: 700; background: rgba(79,140,247,.1); border: 1px solid rgba(79,140,247,.32); color: var(--cat-ink); }
.cat-code {
  direction: ltr; text-align: left; margin: 16px 0; padding: 18px 20px; border-radius: 14px;
  background: #0a0f1e; color: #a7f3d0; font-family: Consolas, 'Courier New', monospace;
  font-size: 13px; line-height: 2; overflow-x: auto; border: 1px solid #1e293b;
  box-shadow: inset 0 0 30px rgba(79,140,247,.12);
}

/* timeline */
.cat-timeline { position: relative; margin: 22px 0; padding-inline-start: 34px; }
.cat-timeline::before { content: ''; position: absolute; inset-block: 6px; inset-inline-start: 9px; width: 4px; border-radius: 4px; background: var(--cat-grad); box-shadow: 0 0 16px rgba(79,140,247,.5); }
.cat-tl-item { position: relative; padding: 18px 22px; margin-bottom: 16px; background: var(--cat-card); border: 1px solid var(--cat-line); border-radius: 14px; }
.cat-tl-item::before {
  content: ''; position: absolute; inset-inline-start: -31px; top: 24px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cat-grad); border: 3px solid var(--cat-card);
  box-shadow: 0 0 0 4px rgba(79,140,247,.22), 0 0 18px rgba(79,140,247,.6);
  animation: catPulse 2.4s ease-in-out infinite;
}
.cat-tl-item b { display: block; font-size: 15.5px; font-weight: 900; margin-bottom: 6px; }
.cat-tl-tag { font-style: normal; font-size: 11.5px; font-weight: 800; color: #16a34a; background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.4); padding: 3px 10px; border-radius: 100px; margin-inline-start: 8px; vertical-align: middle; }
.cat-tl-item p { margin: 0; color: var(--cat-muted); font-size: 13.5px; line-height: 1.95; }

/* options */
.cat-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 18px 0; }
.cat-option { padding: 26px 24px; border-radius: var(--cat-radius); background: var(--cat-card); border: 1px solid var(--cat-line); text-align: center; }
.cat-option:nth-child(2) { background: linear-gradient(160deg, rgba(34,197,94,.09), transparent 60%); }
.cat-option:nth-child(3) { background: linear-gradient(160deg, rgba(251,191,36,.1), transparent 60%); }
.cat-option-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; font-size: 25px; border-radius: 17px; background: var(--cat-grad); color: #fff; margin-bottom: 12px; box-shadow: 0 12px 26px rgba(79,140,247,.35); }
.cat-option h3 { margin: 0 0 12px; font-size: 17px; font-weight: 900; }
.cat-option ul { list-style: none; margin: 0; padding: 0; text-align: start; }
.cat-option li { padding: 7px 0 7px 0; padding-inline-start: 22px; position: relative; color: var(--cat-muted); font-size: 13px; line-height: 1.8; }
.cat-option li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--cat-green); font-weight: 900; }

/* note */
.cat-note { margin-top: 20px; padding: 18px 22px; border-radius: 14px; border-inline-start: 5px solid var(--cat-green); background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(34,197,94,.03)); }
.cat-note.tone-warning { border-inline-start-color: var(--cat-amber); background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(251,191,36,.03)); }
.cat-note.tone-danger { border-inline-start-color: var(--cat-red); background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(239,68,68,.03)); }
.cat-note b { display: block; font-size: 14.5px; font-weight: 900; margin-bottom: 6px; }
.cat-note p { margin: 0; color: var(--cat-muted); font-size: 13.5px; line-height: 1.95; }

/* contact + final cta */
.cat-contact-box { margin-top: 22px; padding: 30px; border-radius: 20px; background: radial-gradient(120% 140% at 80% 0%, #16233f 0%, #0b1224 60%, #0a0f1e 100%); color: #e8eefb; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.cat-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cat-contact-item {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; text-decoration: none;
  background: rgba(79,140,247,.09); border: 1px solid rgba(79,140,247,.28); border-radius: 14px;
  color: inherit; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s, border-color .3s;
}
a.cat-contact-item:hover { transform: translateY(-4px); background: rgba(79,140,247,.22); border-color: rgba(79,140,247,.6); }
.cat-contact-item > span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cat-grad); color: #fff; font-size: 17px; flex: 0 0 auto; }
.cat-contact-item small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8aa3cf; margin-bottom: 3px; }
.cat-contact-item b { font-size: 14px; font-weight: 700; word-break: break-word; }
.cat-final-cta {
  margin-top: 26px; padding: 44px 30px; border-radius: 22px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(110% 150% at 50% 0%, #17233d 0%, #0c1326 55%, #0a0f1e 100%); color: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.cat-final-cta::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: 0; opacity: .6;
  background: conic-gradient(from 0deg, #4f8cf7, #a855f7, #22d3ee, #ec4899, #4f8cf7);
  animation: catSpin 9s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
}
@keyframes catSpin { to { transform: rotate(360deg); } }
.cat-final-cta h3 { position: relative; z-index: 1; margin: 0 0 10px; font-size: clamp(20px, 3vw, 28px); font-weight: 900; }
.cat-final-cta p { position: relative; z-index: 1; margin: 0 0 24px; color: #9dbdf6; font-size: 14.5px; }
.cat-cta-btns { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 32px; border-radius: 100px;
  font-size: 14.5px; font-weight: 800; text-decoration: none; border: none; cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, background .3s;
}
.cat-btn-primary { background: var(--cat-grad); color: #fff; box-shadow: 0 14px 32px rgba(79,140,247,.5); }
.cat-btn-primary:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 22px 44px rgba(79,140,247,.65); }
.cat-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.3); }
.cat-btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-5px) scale(1.04); }

/* TOC */
.cat-toc { background: transparent; }
.cat-toc-title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 3vw, 27px); font-weight: 900; margin: 10px 0 22px; }
.cat-toc-title span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cat-grad); color: #fff; font-size: 19px; box-shadow: 0 12px 26px rgba(79,140,247,.35); }
.cat-toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 11px; }
.cat-toc-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 17px; text-decoration: none;
  background: var(--cat-card); border: 1px solid var(--cat-line); border-radius: 13px;
  font-size: 13.5px; font-weight: 700; color: var(--cat-ink); position: relative; overflow: hidden;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s, color .3s, border-color .3s;
}
.cat-toc-item::before { content: ''; position: absolute; inset: 0; background: var(--cat-grad); transform: translateX(110%); transition: transform .4s cubic-bezier(.16,1,.3,1); z-index: 0; }
.cat-toc-item:hover { color: #fff; border-color: transparent; transform: translateX(-6px); box-shadow: 0 12px 26px rgba(79,140,247,.35); }
html[dir='ltr'] .cat-toc-item:hover { transform: translateX(6px); }
.cat-toc-item:hover::before { transform: translateX(0); }
.cat-toc-item > * { position: relative; z-index: 1; }
.cat-toc-num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--cat-grad); color: #fff; font-size: 12.5px; font-weight: 900; flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(79,140,247,.4);
}
.cat-toc-item:hover .cat-toc-num { background: #fff; color: var(--cat-blue); }

/* footer */
.cat-foot { text-align: center; color: var(--cat-muted); font-size: 13px; padding-bottom: 90px; }

/* floating dots + top button */
.cat-dots {
  position: fixed; top: 50%; inset-inline-end: 18px; transform: translateY(-50%); z-index: 55;
  display: none; flex-direction: column; gap: 8px; padding: 13px 10px;
  background: rgba(10, 15, 30, .82); border: 1px solid rgba(79,140,247,.35); border-radius: 100px;
  backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0,0,0,.4); max-height: 82vh; overflow-y: auto;
}
.cat-dot-nav {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(148,163,184,.45); flex: 0 0 auto;
  position: relative; text-decoration: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s, box-shadow .3s;
}
.cat-dot-nav:hover, .cat-dot-nav.is-active { background: var(--cat-grad); transform: scale(1.4); box-shadow: 0 0 12px rgba(79,140,247,.9); }
.cat-dot-nav::before {
  content: attr(data-title); position: absolute; top: 50%; inset-inline-end: 160%;
  transform: translateY(-50%) translateX(8px); direction: rtl;
  padding: 5px 11px; background: rgba(10,15,30,.96); color: #dbe7ff; font-size: 11px; font-weight: 700;
  border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .3s ease;
  border: 1px solid rgba(79,140,247,.4);
}
html[dir='ltr'] .cat-dot-nav::before { inset-inline-end: auto; inset-inline-start: 160%; transform: translateY(-50%) translateX(-8px); direction: ltr; }
.cat-dot-nav:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }
.cat-top {
  position: fixed; bottom: 26px; inset-inline-start: 26px; width: 52px; height: 52px; border-radius: 50%;
  border: none; background: var(--cat-grad); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer;
  box-shadow: 0 16px 34px rgba(79,140,247,.5); opacity: 0; pointer-events: none; transform: translateY(18px);
  transition: all .4s cubic-bezier(.34,1.56,.64,1); z-index: 56;
}
.cat-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.cat-top:hover { transform: translateY(-5px) scale(1.08); }

/* responsive */
@media (min-width: 1180px) { .cat-dots { display: flex; } }
@media (max-width: 760px) {
  .cat-cover { min-height: auto; padding: 72px 18px 56px; }
  .cat-orb { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .cat-ring-a { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .cat-ring-b { width: 400px; height: 400px; margin: -200px 0 0 -200px; }
  .cat-ring-c { display: none; }
  .cat-cube { display: none; }
  .cat-page .cat-toc, .cat-page .cat-section { padding: 30px 16px; border-radius: 16px; }
  .cat-sec-num { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
  .cat-stats { grid-template-columns: repeat(2, 1fr); }
  .cat-table { min-width: 480px; }
  .cat-contact-box, .cat-final-cta { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-page *, .cat-page *::before, .cat-page *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .cat-progress, .cat-dots, .cat-top, .cat-scroll-hint, .cat-scene, .cat-aurora, .cat-grid { display: none !important; }
  .cat-cover { min-height: auto; background: #0a0f1e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cat-section { break-inside: avoid; box-shadow: none; }
}
