.ai-hub-page {
  --ai-space-1: 8px;
  --ai-space-2: 12px;
  --ai-space-3: 16px;
  --ai-space-4: 24px;
  --ai-space-5: 32px;
  --ai-space-6: 48px;
  --ai-space-7: 64px;

  --ai-page-bg:
    radial-gradient(circle at 10% 4%, rgba(95, 112, 255, 0.22), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(54, 189, 255, 0.1), transparent 20%),
    radial-gradient(circle at 52% 42%, rgba(74, 58, 180, 0.08), transparent 28%),
    linear-gradient(180deg, #0a1020 0%, #10182d 54%, #0d172c 100%);
  --ai-surface: rgba(14, 20, 38, 0.88);
  --ai-surface-soft: rgba(17, 24, 43, 0.72);
  --ai-surface-alt: rgba(255, 255, 255, 0.05);
  --ai-surface-hover: rgba(255, 255, 255, 0.08);
  --ai-border: rgba(255, 255, 255, 0.1);
  --ai-border-strong: rgba(255, 255, 255, 0.16);
  --ai-shadow: 0 18px 46px rgba(2, 6, 23, 0.34);
  --ai-shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.18);
  --ai-text-main: #f8fbff;
  --ai-text-soft: rgba(226, 232, 240, 0.82);
  --ai-text-muted: rgba(191, 204, 222, 0.72);
  --ai-link: #aebeff;
  --ai-link-hover: #ffffff;
  --ai-btn-primary: linear-gradient(135deg, #4b6fff, #3158ff);
  --ai-btn-primary-shadow: 0 16px 34px rgba(58, 90, 254, 0.28);
  --ai-btn-secondary-bg: rgba(255, 255, 255, 0.04);
  --ai-btn-secondary-border: rgba(255, 255, 255, 0.14);
  --ai-icon-bg: linear-gradient(135deg, rgba(69, 100, 255, 0.24), rgba(70, 220, 255, 0.18));
  --ai-icon-color: #d9e4ff;
  --ai-pill-bg: rgba(255, 255, 255, 0.05);
  --ai-pill-border: rgba(255, 255, 255, 0.1);
  --ai-free-bg: rgba(52, 211, 153, 0.14);
  --ai-free-text: #8cf4c7;
  --ai-hosted-bg: rgba(139, 92, 246, 0.15);
  --ai-hosted-text: #d6c5ff;
  --ai-credit-bg: rgba(96, 165, 250, 0.14);
  --ai-credit-text: #bed8ff;
  --ai-faq-bg: rgba(255, 255, 255, 0.04);
  --ai-faq-border: rgba(255, 255, 255, 0.08);

  color: var(--ai-text-main);
  position: relative;
}

.light-mode .ai-hub-page {
  --ai-page-bg:
    radial-gradient(circle at 50% 24%, rgba(124, 146, 255, 0.16), transparent 30%),
    radial-gradient(circle at 12% 10%, rgba(151, 226, 255, 0.1), transparent 18%),
    radial-gradient(circle at 86% 16%, rgba(211, 184, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #f7f8fd 0%, #eef3fb 58%, #edf2fa 100%);
  --ai-surface: rgba(255, 255, 255, 0.96);
  --ai-surface-soft: rgba(255, 255, 255, 0.92);
  --ai-surface-alt: rgba(245, 248, 255, 0.96);
  --ai-surface-hover: rgba(255, 255, 255, 1);
  --ai-border: rgba(15, 23, 42, 0.08);
  --ai-border-strong: rgba(15, 23, 42, 0.12);
  --ai-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --ai-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --ai-text-main: #111827;
  --ai-text-soft: rgba(31, 41, 55, 0.82);
  --ai-text-muted: rgba(71, 85, 105, 0.76);
  --ai-link: #3358ff;
  --ai-link-hover: #1d4ed8;
  --ai-btn-primary-shadow: 0 14px 28px rgba(58, 90, 254, 0.18);
  --ai-btn-secondary-bg: rgba(255, 255, 255, 0.86);
  --ai-btn-secondary-border: rgba(15, 23, 42, 0.1);
  --ai-icon-bg: linear-gradient(135deg, rgba(69, 100, 255, 0.12), rgba(45, 212, 191, 0.12));
  --ai-icon-color: #3358ff;
  --ai-pill-bg: rgba(255, 255, 255, 0.9);
  --ai-pill-border: rgba(15, 23, 42, 0.08);
  --ai-free-bg: rgba(16, 185, 129, 0.12);
  --ai-free-text: #047857;
  --ai-hosted-bg: rgba(124, 58, 237, 0.12);
  --ai-hosted-text: #6d28d9;
  --ai-credit-bg: rgba(59, 130, 246, 0.12);
  --ai-credit-text: #1d4ed8;
  --ai-faq-bg: rgba(255, 255, 255, 0.94);
  --ai-faq-border: rgba(15, 23, 42, 0.08);
}

.ai-hub-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--ai-page-bg);
  z-index: -2;
}

.ai-hub-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.03), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(76, 108, 255, 0.05), transparent 30%);
  z-index: -1;
  pointer-events: none;
}

.ai-hub-page .ai-hub-container,
.ai-hub-page .ai-hub-main {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
}

.ai-hub-page .ai-hub-hero {
  padding: 122px 0 48px;
}

.ai-hub-page .ai-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.ai-hub-page .ai-hub-hero-copy-column {
  min-width: 1024px;
}

.ai-hub-page .ai-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--ai-pill-bg);
  border: 1px solid var(--ai-pill-border);
  box-shadow: var(--ai-shadow-soft);
  color: var(--ai-link);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-hub-page .tool-title {
  max-width: 920px;
  margin-bottom: 22px;
  background: var(--site-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ai-hub-page .tool-title span {
  display: block;
}

.ai-hub-page .ai-hub-hero-copy {
  max-width: 750px;
  margin: 0 0 12px;
  color: var(--ai-text-soft);
  font-size: 1.04rem;
  line-height: 1.8;
}

.ai-hub-page .ai-hub-hero-subcopy {
  max-width: 750px;
  margin: 0 0 28px;
  color: var(--ai-text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.ai-hub-page .ai-hub-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ai-hub-page .ai-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ai-hub-page .ai-hub-btn:hover {
  transform: translateY(-2px);
}

.ai-hub-page .ai-hub-btn-primary {
  background: var(--ai-btn-primary);
  color: #ffffff;
  box-shadow: var(--ai-btn-primary-shadow);
}

.ai-hub-page .ai-hub-btn-primary:hover {
  color: #ffffff;
}

.ai-hub-page .ai-hub-btn-secondary {
  background: var(--ai-btn-secondary-bg);
  color: var(--ai-text-main);
  border-color: var(--ai-btn-secondary-border);
  box-shadow: var(--ai-shadow-soft);
}

.ai-hub-page .ai-hub-trust-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 16px;
}

.ai-hub-page .ai-hub-trust-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ai-pill-bg);
  border: 1px solid var(--ai-pill-border);
  color: var(--ai-text-soft);
  font-size: 0.84rem;
  box-shadow: var(--ai-shadow-soft);
  white-space: nowrap;
  width: 100%;
}

.ai-hub-page .ai-hub-trust-pill i {
  color: var(--ai-pill-accent, var(--ai-link));
  font-size: 0.82rem;
}

.ai-hub-page .ai-hub-trust-pill:nth-child(1) {
  --ai-pill-accent: #7ecbff;
}

.ai-hub-page .ai-hub-trust-pill:nth-child(2) {
  --ai-pill-accent: #b8b6ff;
}

.ai-hub-page .ai-hub-trust-pill:nth-child(3) {
  --ai-pill-accent: #82d8ff;
}

.ai-hub-page .ai-hub-trust-pill:nth-child(4) {
  --ai-pill-accent: #8fe7da;
}

.ai-hub-page .ai-hub-university-band {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 0 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.light-mode .ai-hub-page .ai-hub-university-band {
  border-color: rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.96));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1);
  padding: 16px 18px 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
}

.ai-hub-page .ai-hub-university-note {
  margin: 0 0 12px;
  text-align: center;
  color: var(--ai-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
}

.ai-hub-page .ai-hub-university-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ai-hub-page .ai-hub-university-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
  text-align: center;
}

.light-mode .ai-hub-page .ai-hub-university-card {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.ai-hub-page .ai-hub-university-logo {
  display: block;
  width: 100%;
  max-width: 176px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) invert(1) brightness(1.12) contrast(1.08);
  mix-blend-mode: screen;
  opacity: 0.92;
}

.light-mode .ai-hub-page .ai-hub-university-logo {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.ai-hub-page .ai-hub-capability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

.ai-hub-page .ai-hub-capability-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--ai-border);
  background:
    linear-gradient(180deg, rgba(108, 140, 255, 0.05), transparent 56%),
    var(--ai-surface-soft);
  box-shadow: var(--ai-shadow-soft);
}

.ai-hub-page .ai-hub-capability-card i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ai-link);
  font-size: 1rem;
}

.ai-hub-page .ai-hub-capability-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ai-text-main);
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.ai-hub-page .ai-hub-capability-card span {
  display: block;
  color: var(--ai-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ai-hub-page .ai-hub-hero-visual-column {
  display: flex;
  justify-content: flex-end;
}

.ai-hub-page .ai-hub-visual-shell {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  overflow: visible;
  isolation: isolate;
  --ai-scene-scale: 0.76;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ai-hub-page .ai-hub-3d-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 900px;
  transform: translate(-50%, -50%) scale(var(--ai-scene-scale));
  transform-origin: center;
  perspective: 1400px;
  overflow: visible;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.light-mode .ai-hub-page .ai-hub-visual-shell {
  background: transparent;
  border: none;
  box-shadow: none;
}

.light-mode .ai-hub-page .ai-hub-3d-scene {
  box-shadow: none;
}

.ai-hub-page .ai-hub-scene-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-hub-page .ai-hub-scene-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: ai-hub-scene-twinkle 4s infinite ease-in-out;
}

.light-mode .ai-hub-page .ai-hub-scene-star {
  background: rgba(124, 149, 232, 0.72);
}

.ai-hub-page .ai-hub-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ai-hub-page .ai-hub-orbit-ring-1 {
  width: 580px;
  height: 580px;
  border: none;
  
  -webkit-mask: radial-gradient(transparent 58%, black 59%, black 60%, transparent 61%);
  mask: radial-gradient(transparent 58%, black 59%, black 60%, transparent 61%);
  animation: ai-hub-scene-rotate-ring-1 30s linear infinite;
}

.light-mode .ai-hub-page .ai-hub-orbit-ring-1 {
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(140, 167, 255, 0.08) 16%,
    rgba(195, 165, 255, 0.1) 30%,
    rgba(140, 167, 255, 0.08) 44%,
    transparent 50%,
    transparent 56%,
    rgba(110, 204, 255, 0.08) 72%,
    rgba(193, 171, 255, 0.1) 86%,
    transparent 100%
  );
}

.ai-hub-page .ai-hub-orbit-ring-2 {
  width: 440px;
  height: 440px;
  border: 1px solid rgba(100, 180, 255, 0.12);
  box-shadow: 0 0 15px rgba(100, 180, 255, 0.06);
  animation: ai-hub-scene-rotate-ring-2 22s linear infinite reverse;
}

.ai-hub-page .ai-hub-orbit-ring-3 {
  width: 580px;
  height: 580px;
  border: 1px solid rgba(100, 180, 255, 0.08);
  box-shadow: 0 0 20px rgba(100, 180, 255, 0.05), inset 0 0 20px rgba(168, 85, 247, 0.03);
  animation: ai-hub-scene-rotate-ring-3 35s linear infinite;
}

.ai-hub-page .ai-hub-orbit-ring-3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.06);
  transform: translate(-50%, -50%);
}

.light-mode .ai-hub-page .ai-hub-orbit-ring-2 {
  border-color: rgba(145, 170, 245, 0.28);
  box-shadow: 0 0 18px rgba(143, 171, 255, 0.12);
}

.light-mode .ai-hub-page .ai-hub-orbit-ring-3 {
  border-color: rgba(166, 182, 238, 0.18);
  box-shadow:
    0 0 20px rgba(139, 164, 240, 0.1),
    inset 0 0 20px rgba(184, 161, 246, 0.04);
}

.light-mode .ai-hub-page .ai-hub-orbit-ring-3::before {
  border-color: rgba(192, 179, 241, 0.2);
}

.ai-hub-page .ai-hub-orbit-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px #60a5fa, 0 0 16px rgba(96, 165, 250, 0.5);
}

.light-mode .ai-hub-page .ai-hub-orbit-dot,
.light-mode .ai-hub-page .ai-hub-travel-dot {
  background: #5ba8ff;
  color: #5ba8ff;
  box-shadow: 0 0 7px rgba(91, 168, 255, 0.72), 0 0 14px rgba(91, 168, 255, 0.28);
}

.ai-hub-page .ai-hub-planet {
  position: absolute;
  width: 35px;
  height: 35px;
  top: 32%;
  right: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0abfc, #c084fc, #a855f7);
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.4), inset -3px -3px 8px rgba(0, 0, 0, 0.3);
  animation: ai-hub-scene-float-planet 6s ease-in-out infinite;
  z-index: 5;
}

.ai-hub-page .ai-hub-planet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55px;
  height: 55px;
  border: 1.5px solid rgba(192, 132, 252, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
}

.light-mode .ai-hub-page .ai-hub-planet {
  background: radial-gradient(circle at 30% 30%, #f7d0ff, #d58fff, #a75cf2);
  box-shadow: 0 0 18px rgba(191, 115, 255, 0.28), inset -2px -2px 6px rgba(85, 31, 136, 0.16);
}

.light-mode .ai-hub-page .ai-hub-planet::before {
  border-color: rgba(198, 132, 252, 0.18);
}

.ai-hub-page .ai-hub-cube-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: ai-hub-scene-float-cube 5s ease-in-out infinite;
  z-index: 10;
}

.ai-hub-page .ai-hub-cube {
  width: 160px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  animation: ai-hub-scene-rotate-cube 20s linear infinite;
}

.ai-hub-page .ai-hub-face {
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 52px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backface-visibility: visible;
}

.ai-hub-page .ai-hub-face-front {
  background: linear-gradient(160deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  transform: translateZ(80px);
  box-shadow: inset 0 0 40px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.3);
}

.light-mode .ai-hub-page .ai-hub-face-front {
  background: linear-gradient(160deg, #8a5cff 0%, #667dff 52%, #5a8cff 100%);
  box-shadow: inset 0 0 34px rgba(186, 129, 255, 0.24), 0 0 44px rgba(131, 121, 255, 0.2);
}

.ai-hub-page .ai-hub-face-back {
  background: linear-gradient(160deg, #7c3aed 0%, #4338ca 100%);
  transform: rotateY(180deg) translateZ(80px);
}

.ai-hub-page .ai-hub-face-right {
  background: linear-gradient(160deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  transform: rotateY(90deg) translateZ(80px);
  box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.3);
}

.light-mode .ai-hub-page .ai-hub-face-right {
  background: linear-gradient(160deg, #7a54ff 0%, #6e62ff 48%, #9358ff 100%);
  box-shadow: inset 0 0 34px rgba(105, 138, 255, 0.22), 0 0 44px rgba(121, 101, 255, 0.18);
}

.light-mode .ai-hub-page .ai-hub-face-left {
  background: linear-gradient(160deg, #5677ff 0%, #6d6fff 100%);
}

.light-mode .ai-hub-page .ai-hub-face-top {
  background: linear-gradient(160deg, #d0b4ff 0%, #aebcff 100%);
}

.light-mode .ai-hub-page .ai-hub-face-bottom {
  background: linear-gradient(160deg, #5d4de0 0%, #5870d9 100%);
  box-shadow: 0 0 58px rgba(128, 110, 255, 0.22);
}

.ai-hub-page .ai-hub-face-left {
  background: linear-gradient(160deg, #2563eb 0%, #4f46e5 100%);
  transform: rotateY(-90deg) translateZ(80px);
}

.ai-hub-page .ai-hub-face-top {
  background: linear-gradient(160deg, #c084fc 0%, #93c5fd 100%);
  transform: rotateX(90deg) translateZ(80px);
}

.ai-hub-page .ai-hub-face-bottom {
  background: linear-gradient(160deg, #4c1d95 0%, #1e3a8a 100%);
  transform: rotateX(-90deg) translateZ(80px);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.5);
}

.ai-hub-page .ai-hub-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.ai-hub-page .ai-hub-brain-icon {
  width: 55px;
  height: 55px;
  opacity: 0.85;
}

.ai-hub-page .ai-hub-cube-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  width: 220px;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.4) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
  filter: blur(15px);
  animation: ai-hub-scene-pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.light-mode .ai-hub-page .ai-hub-cube-glow {
  background: radial-gradient(ellipse, rgba(149, 104, 244, 0.28) 0%, rgba(113, 151, 255, 0.14) 42%, transparent 74%);
}

.ai-hub-page .ai-hub-connection-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.ai-hub-page .ai-hub-connection-path {
  fill: none;
  stroke-linecap: round;
}

.ai-hub-page .ai-hub-orbit-system {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.ai-hub-page .ai-hub-orbit-icon {
  position: absolute;
  top: -39px;
  left: -39px;
  width: 78px;
  height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: transform;
}

.light-mode .ai-hub-page .ai-hub-orbit-icon {
  border-color: rgba(197, 221, 255, 0.28);
  box-shadow:
    0 16px 34px rgba(143, 163, 210, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.ai-hub-page .ai-hub-icon-inner {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-hub-page .ai-hub-icon-inner svg {
  width: 100%;
  height: 100%;
}

.ai-hub-page .ai-hub-icon-pdf {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.15));
}

.light-mode .ai-hub-page .ai-hub-icon-pdf {
  background: linear-gradient(135deg, rgba(214, 174, 255, 0.44), rgba(201, 161, 255, 0.22));
}

.ai-hub-page .ai-hub-icon-chat {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.15));
}

.light-mode .ai-hub-page .ai-hub-icon-chat {
  background: linear-gradient(135deg, rgba(176, 240, 255, 0.56), rgba(159, 228, 255, 0.28));
}

.ai-hub-page .ai-hub-icon-image {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(6, 182, 212, 0.15));
}

.light-mode .ai-hub-page .ai-hub-icon-image {
  background: linear-gradient(135deg, rgba(181, 245, 255, 0.56), rgba(165, 236, 255, 0.28));
}

.ai-hub-page .ai-hub-icon-ai {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.2));
}

.light-mode .ai-hub-page .ai-hub-icon-ai {
  background: linear-gradient(135deg, rgba(225, 188, 255, 0.5), rgba(210, 180, 255, 0.28));
}

.ai-hub-page .ai-hub-icon-ocr {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(20, 184, 166, 0.15));
}

.light-mode .ai-hub-page .ai-hub-icon-ocr {
  background: linear-gradient(135deg, rgba(190, 248, 245, 0.56), rgba(173, 241, 236, 0.28));
}

.ai-hub-page .ai-hub-travel-dot {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .ai-hub-page .ai-hub-scene-star,
  .ai-hub-page .ai-hub-orbit-ring-1,
  .ai-hub-page .ai-hub-orbit-ring-2,
  .ai-hub-page .ai-hub-orbit-ring-3,
  .ai-hub-page .ai-hub-planet,
  .ai-hub-page .ai-hub-cube-wrapper,
  .ai-hub-page .ai-hub-cube,
  .ai-hub-page .ai-hub-cube-glow {
    animation: none !important;
  }

  .ai-hub-page .ai-hub-travel-dot {
    opacity: 0 !important;
  }
}

@keyframes ai-hub-scene-twinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes ai-hub-scene-rotate-ring-1 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ai-hub-scene-rotate-ring-2 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ai-hub-scene-rotate-ring-3 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ai-hub-scene-float-planet {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ai-hub-scene-float-cube {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}

@keyframes ai-hub-scene-rotate-cube {
  from {
    transform: rotateX(-12deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-12deg) rotateY(360deg);
  }
}

@keyframes ai-hub-scene-pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.15);
  }
}

.ai-hub-page .ai-hub-main {
  padding-bottom: 64px;
}

.ai-hub-page .ai-hub-block {
  margin-bottom: 52px;
}

.ai-hub-page .ai-hub-block-head {
  margin-bottom: 16px;
}

.ai-hub-page .ai-hub-block-head-center {
  max-width: 650px;
  margin: 40px auto 20px;
  text-align: center;
}

.ai-hub-page .ai-hub-block h2 {
  color: var(--ai-text-main);
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.ai-hub-page .ai-hub-type-grid,
.ai-hub-page .ai-hub-tool-grid,
.ai-hub-page .ai-hub-credit-grid {
  display: grid;
  gap: 16px;
}

.ai-hub-page .ai-hub-type-grid,
.ai-hub-page .ai-hub-tool-grid-two,
.ai-hub-page .ai-hub-credit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-hub-page .ai-hub-tool-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-hub-page .ai-hub-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ai-hub-page .ai-hub-type-card,
.ai-hub-page .ai-hub-tool-card,
.ai-hub-page .ai-hub-choice-card,
.ai-hub-page .ai-hub-credit-card,
.ai-hub-page .ai-hub-workflow-row,
.ai-hub-page .ai-hub-faq-item {
  border-radius: 16px;
  border: 1px solid var(--ai-border);
  background: var(--ai-surface);
  box-shadow: var(--ai-shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ai-hub-page .ai-hub-type-card:hover,
.ai-hub-page .ai-hub-tool-card:hover,
.ai-hub-page .ai-hub-choice-card:hover,
.ai-hub-page .ai-hub-credit-card:hover,
.ai-hub-page .ai-hub-workflow-row:hover,
.ai-hub-page .ai-hub-faq-item:hover {
  transform: translateY(-3px);
  
  border-color: var(--ai-border-strong);
}

.ai-hub-page .ai-hub-type-card {
  padding: 22px 24px;
}

.ai-hub-page .ai-hub-type-card-free {
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.08), transparent 40%),
    var(--ai-surface);
}

.light-mode .ai-hub-page .ai-hub-type-card-free {
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.08), transparent 40%),
    var(--ai-surface);
}

.ai-hub-page .ai-hub-type-card-hosted {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.08), transparent 40%),
    var(--ai-surface);
}

.light-mode .ai-hub-page .ai-hub-type-card-hosted {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.08), transparent 40%),
    var(--ai-surface);
}

.ai-hub-page .ai-hub-type-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.ai-hub-page .ai-hub-type-card h3,
.ai-hub-page .ai-hub-tool-card h3,
.ai-hub-page .ai-hub-choice-card h3,
.ai-hub-page .ai-hub-credit-card h3 {
  color: var(--ai-text-main);
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.ai-hub-page .ai-hub-type-card p,
.ai-hub-page .ai-hub-tool-card p,
.ai-hub-page .ai-hub-choice-card p,
.ai-hub-page .ai-hub-credit-card p {
  color: var(--ai-text-soft);
  font-size: 0.95rem;
  line-height: 1.68;
}

.ai-hub-page .ai-hub-type-list {
  margin: 14px 0 16px;
  padding-left: 18px;
  color: var(--ai-text-muted);
  line-height: 1.75;
}

.ai-hub-page .ai-hub-type-list li + li {
  margin-top: 6px;
}

.ai-hub-page .ai-hub-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ai-link);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.ai-hub-page .ai-hub-link-arrow:hover {
  color: var(--ai-link-hover);
}

.ai-hub-page .ai-hub-tool-card {
  padding: 18px;
}

.ai-hub-page .ai-hub-tool-card-hosted::before,
.ai-hub-page .ai-hub-type-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(108, 140, 255, 0.55), rgba(255, 255, 255, 0));
}

.ai-hub-page .ai-hub-tool-card-hosted {
  --ai-tool-accent: #8ea6ff;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(76, 118, 255, 0.28), rgba(84, 118, 255, 0.16));
  --ai-tool-icon-color: #dbe5ff;
  --ai-tool-icon-border: transparent;
  --ai-tool-icon-shadow: none;
}

.ai-hub-page .ai-hub-tool-card {
  --ai-tool-accent: var(--ai-link);
  --ai-tool-icon-bg: var(--ai-icon-bg);
  --ai-tool-icon-color: var(--ai-icon-color);
  --ai-tool-icon-border: transparent;
  --ai-tool-icon-shadow: none;
}

.ai-hub-page .ai-hub-tool-icon,
.ai-hub-page .ai-hub-credit-icon,
.ai-hub-page .ai-hub-workflow-row-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--ai-tool-icon-bg, var(--ai-icon-bg));
  color: var(--ai-tool-icon-color, var(--ai-icon-color));
  border: 1px solid var(--ai-tool-icon-border, transparent);
  box-shadow: var(--ai-tool-icon-shadow, none);
}

.ai-hub-page .ai-hub-tool-meta {
  margin: 12px 0 10px;
  color: var(--ai-tool-accent, var(--ai-link));
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(1) {
  --ai-tool-accent: #b8b6ff;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(134, 101, 255, 0.3), rgba(109, 92, 255, 0.16));
  --ai-tool-icon-color: #e4dcff;
}

#premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(2) {
  --ai-tool-accent: #8dcfff;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(62, 160, 255, 0.28), rgba(64, 118, 255, 0.16));
  --ai-tool-icon-color: #d8eeff;
}

#premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(3) {
  --ai-tool-accent: #9ac8ff;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(56, 142, 255, 0.26), rgba(49, 96, 220, 0.15));
  --ai-tool-icon-color: #dff1ff;
}

#premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(4) {
  --ai-tool-accent: #8fe7da;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(38, 195, 178, 0.26), rgba(53, 126, 255, 0.14));
  --ai-tool-icon-color: #dcfffa;
}

.light-mode .ai-hub-page .ai-hub-tool-card-hosted {
  --ai-tool-icon-border: rgba(255, 255, 255, 0.72);
  --ai-tool-icon-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
}

#free-ai-utilities .ai-hub-tool-card:nth-child(1) {
  --ai-tool-accent: #8fd7ff;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(54, 188, 255, 0.24), rgba(76, 118, 255, 0.14));
  --ai-tool-icon-color: #dcf5ff;
}

#free-ai-utilities .ai-hub-tool-card:nth-child(2) {
  --ai-tool-accent: #8fe7da;
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(38, 195, 178, 0.24), rgba(65, 154, 255, 0.12));
  --ai-tool-icon-color: #dcfffa;
}

.light-mode #free-ai-utilities .ai-hub-tool-card:nth-child(1) {
  --ai-tool-accent: #2f96ff;
  --ai-tool-icon-bg: linear-gradient(135deg, #8edbff, #62b5ff);
  --ai-tool-icon-color: #ffffff;
  --ai-tool-icon-border: rgba(255, 255, 255, 0.72);
  --ai-tool-icon-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
}

.light-mode #free-ai-utilities .ai-hub-tool-card:nth-child(2) {
  --ai-tool-accent: #16b7a7;
  --ai-tool-icon-bg: linear-gradient(135deg, #9af0e3, #5fd8cb);
  --ai-tool-icon-color: #ffffff;
  --ai-tool-icon-border: rgba(255, 255, 255, 0.72);
  --ai-tool-icon-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
}

.light-mode #premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(1) {
  --ai-tool-accent: #7d63ff;
  --ai-tool-icon-bg: linear-gradient(135deg, #ccbfff, #a18dff);
  --ai-tool-icon-color: #ffffff;
}

.light-mode #premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(2) {
  --ai-tool-accent: #3297ff;
  --ai-tool-icon-bg: linear-gradient(135deg, #8fd4ff, #5da9ff);
  --ai-tool-icon-color: #ffffff;
}

.light-mode #premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(3) {
  --ai-tool-accent: #4d8eff;
  --ai-tool-icon-bg: linear-gradient(135deg, #99c2ff, #6ea2ff);
  --ai-tool-icon-color: #ffffff;
}

.light-mode #premium-ai-workflows .ai-hub-tool-card-hosted:nth-child(4) {
  --ai-tool-accent: #1bb5a9;
  --ai-tool-icon-bg: linear-gradient(135deg, #a5f0e4, #63d9cf);
  --ai-tool-icon-color: #ffffff;
}

.ai-hub-page .ai-hub-choice-card {
  padding: 16px;
  min-height: 100%;
  --ai-choice-icon-bg: var(--ai-icon-bg);
  --ai-choice-icon-color: var(--ai-icon-color);
  --ai-choice-icon-border: transparent;
  --ai-choice-icon-shadow: none;
}

.ai-hub-page .ai-hub-choice-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--ai-choice-icon-bg);
  color: var(--ai-choice-icon-color);
  border: 1px solid var(--ai-choice-icon-border);
  box-shadow: var(--ai-choice-icon-shadow);
}

.ai-hub-page .ai-hub-choice-card:nth-child(1) {
  --ai-choice-icon-bg: linear-gradient(135deg, rgba(54, 188, 255, 0.24), rgba(76, 118, 255, 0.14));
  --ai-choice-icon-color: #dcf5ff;
}

.ai-hub-page .ai-hub-choice-card:nth-child(2) {
  --ai-choice-icon-bg: linear-gradient(135deg, rgba(134, 101, 255, 0.28), rgba(109, 92, 255, 0.16));
  --ai-choice-icon-color: #e4dcff;
}

.ai-hub-page .ai-hub-choice-card:nth-child(3) {
  --ai-choice-icon-bg: linear-gradient(135deg, rgba(62, 160, 255, 0.26), rgba(64, 118, 255, 0.14));
  --ai-choice-icon-color: #d8eeff;
}

.ai-hub-page .ai-hub-choice-card:nth-child(4) {
  --ai-choice-icon-bg: linear-gradient(135deg, rgba(56, 142, 255, 0.26), rgba(49, 96, 220, 0.15));
  --ai-choice-icon-color: #dff1ff;
}

.ai-hub-page .ai-hub-choice-card:nth-child(5) {
  --ai-choice-icon-bg: linear-gradient(135deg, rgba(38, 195, 178, 0.24), rgba(53, 126, 255, 0.12));
  --ai-choice-icon-color: #dcfffa;
}

.light-mode .ai-hub-page .ai-hub-choice-card {
  --ai-choice-icon-border: rgba(255, 255, 255, 0.72);
  --ai-choice-icon-shadow: 0 10px 20px rgba(148, 163, 184, 0.14);
}

.light-mode .ai-hub-page .ai-hub-choice-card:nth-child(1) {
  --ai-choice-icon-bg: linear-gradient(135deg, #8edbff, #62b5ff);
  --ai-choice-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-choice-card:nth-child(2) {
  --ai-choice-icon-bg: linear-gradient(135deg, #ccbfff, #a18dff);
  --ai-choice-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-choice-card:nth-child(3) {
  --ai-choice-icon-bg: linear-gradient(135deg, #8fd4ff, #5da9ff);
  --ai-choice-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-choice-card:nth-child(4) {
  --ai-choice-icon-bg: linear-gradient(135deg, #99c2ff, #6ea2ff);
  --ai-choice-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-choice-card:nth-child(5) {
  --ai-choice-icon-bg: linear-gradient(135deg, #a5f0e4, #63d9cf);
  --ai-choice-icon-color: #ffffff;
}

.ai-hub-page .ai-hub-choice-card h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.ai-hub-page .ai-hub-choice-card p {
  font-size: 0.84rem;
  line-height: 1.58;
}

.ai-hub-page .ai-hub-block-link-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.ai-hub-page .ai-hub-workflow-list {
  display: grid;
  gap: 10px;
}

.ai-hub-page .ai-hub-workflow-row {
  --ai-tool-icon-bg: var(--ai-icon-bg);
  --ai-tool-icon-color: var(--ai-icon-color);
  --ai-tool-icon-border: transparent;
  --ai-tool-icon-shadow: none;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}

.ai-hub-page .ai-hub-workflow-row:nth-child(1) {
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(38, 195, 178, 0.24), rgba(53, 126, 255, 0.12));
  --ai-tool-icon-color: #dcfffa;
}

.ai-hub-page .ai-hub-workflow-row:nth-child(2) {
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(134, 101, 255, 0.28), rgba(109, 92, 255, 0.16));
  --ai-tool-icon-color: #e4dcff;
}

.ai-hub-page .ai-hub-workflow-row:nth-child(3) {
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(62, 160, 255, 0.26), rgba(64, 118, 255, 0.14));
  --ai-tool-icon-color: #d8eeff;
}

.ai-hub-page .ai-hub-workflow-row:nth-child(4) {
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(56, 142, 255, 0.26), rgba(49, 96, 220, 0.15));
  --ai-tool-icon-color: #dff1ff;
}

.light-mode .ai-hub-page .ai-hub-workflow-row {
  --ai-tool-icon-border: rgba(255, 255, 255, 0.72);
  --ai-tool-icon-shadow: 0 10px 20px rgba(148, 163, 184, 0.14);
}

.light-mode .ai-hub-page .ai-hub-workflow-row:nth-child(1) {
  --ai-tool-icon-bg: linear-gradient(135deg, #a5f0e4, #63d9cf);
  --ai-tool-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-workflow-row:nth-child(2) {
  --ai-tool-icon-bg: linear-gradient(135deg, #ccbfff, #a18dff);
  --ai-tool-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-workflow-row:nth-child(3) {
  --ai-tool-icon-bg: linear-gradient(135deg, #8fd4ff, #5da9ff);
  --ai-tool-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-workflow-row:nth-child(4) {
  --ai-tool-icon-bg: linear-gradient(135deg, #99c2ff, #6ea2ff);
  --ai-tool-icon-color: #ffffff;
}

.ai-hub-page .ai-hub-workflow-row-copy strong {
  display: block;
  color: var(--ai-text-main);
  font-size: 0.96rem;
}

.ai-hub-page .ai-hub-workflow-row-copy span {
  display: block;
  margin-top: 4px;
  color: var(--ai-text-muted);
  font-size: 0.84rem;
}

.ai-hub-page .ai-hub-workflow-row > i {
  color: var(--ai-text-muted);
  font-size: 0.85rem;
}

.ai-hub-page .ai-hub-credit-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 20px;
  --ai-tool-icon-bg: var(--ai-icon-bg);
  --ai-tool-icon-color: var(--ai-icon-color);
  --ai-tool-icon-border: transparent;
  --ai-tool-icon-shadow: none;
}

.ai-hub-page .ai-hub-credit-icon {
  margin-bottom: 0;
}

.ai-hub-page .ai-hub-credit-card:nth-child(1) {
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(54, 188, 255, 0.24), rgba(76, 118, 255, 0.14));
  --ai-tool-icon-color: #dcf5ff;
}

.ai-hub-page .ai-hub-credit-card:nth-child(2) {
  --ai-tool-icon-bg: linear-gradient(135deg, rgba(255, 185, 92, 0.24), rgba(134, 101, 255, 0.14));
  --ai-tool-icon-color: #fff0d6;
}

.light-mode .ai-hub-page .ai-hub-credit-card {
  --ai-tool-icon-border: rgba(255, 255, 255, 0.72);
  --ai-tool-icon-shadow: 0 10px 20px rgba(148, 163, 184, 0.14);
}

.light-mode .ai-hub-page .ai-hub-credit-card:nth-child(1) {
  --ai-tool-icon-bg: linear-gradient(135deg, #8edbff, #62b5ff);
  --ai-tool-icon-color: #ffffff;
}

.light-mode .ai-hub-page .ai-hub-credit-card:nth-child(2) {
  --ai-tool-icon-bg: linear-gradient(135deg, #ffd68f, #ffb35d);
  --ai-tool-icon-color: #ffffff;
}

.ai-hub-page .ai-hub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-hub-page .ai-hub-badge-free {
  background: var(--ai-free-bg);
  color: var(--ai-free-text);
}

.ai-hub-page .ai-hub-badge-hosted {
  background: var(--ai-credit-bg);
  color: var(--ai-credit-text);
}

.ai-hub-page .ai-hub-faq-list {
  display: grid;
  gap: 8px;
}

.ai-hub-page .ai-hub-faq-item {
  background: var(--ai-faq-bg);
  border-color: var(--ai-faq-border);
}

.ai-hub-page .ai-hub-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ai-text-main);
  font-size: 0.94rem;
  font-weight: 600;
}

.ai-hub-page .ai-hub-faq-item summary::-webkit-details-marker {
  display: none;
}

.ai-hub-page .ai-hub-faq-item summary i {
  color: var(--ai-text-muted);
  transition: transform 0.2s ease;
}

.ai-hub-page .ai-hub-faq-item[open] summary i {
  transform: rotate(180deg);
}

.ai-hub-page .ai-hub-faq-answer {
  padding: 0 18px 16px;
  color: var(--ai-text-soft);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.light-mode .ai-hub-page .ai-hub-faq-answer {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.ai-hub-page .footer {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .ai-hub-page .ai-hub-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai-hub-page .ai-hub-hero-copy-column,
  .ai-hub-page .tool-title,
  .ai-hub-page .ai-hub-hero-copy,
  .ai-hub-page .ai-hub-hero-subcopy {
    min-width: 0;
    max-width: 100%;
  }

  .ai-hub-page .ai-hub-hero-visual-column {
    order: -1;
    justify-content: center;
  }

  .ai-hub-page .ai-hub-trust-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-hub-page .ai-hub-university-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-hub-page .ai-hub-capability-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ai-hub-page .ai-hub-tool-grid-three,
  .ai-hub-page .ai-hub-type-grid,
  .ai-hub-page .ai-hub-tool-grid-two,
  .ai-hub-page .ai-hub-credit-grid {
    grid-template-columns: 1fr;
  }

  .ai-hub-page .ai-hub-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ai-hub-page {
    overflow-x: clip;
  }

  .ai-hub-page,
  .ai-hub-page * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .ai-hub-page .navbar {
    top: 0.75rem;
    width: calc(100% - 16px);
    padding: 0.75rem 1rem;
  }

  .ai-hub-page .logo-container {
    min-width: 0;
  }

  .ai-hub-page .site-title {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .ai-hub-page .ai-hub-container,
  .ai-hub-page .ai-hub-main {
    width: calc(100% - 32px);
  }

  .ai-hub-page .ai-hub-hero {
    padding: 102px 0 36px;
  }

  .ai-hub-page .ai-hub-hero-grid {
    gap: 20px;
  }

  .ai-hub-page .ai-hub-hero-copy-column {
    min-width: 0;
    max-width: 100%;
  }

  .ai-hub-page .ai-hub-hero-visual-column {
    order: 2;
    justify-content: center;
    min-height: 0;
  }

  .ai-hub-page .tool-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .ai-hub-page .ai-hub-hero-copy,
  .ai-hub-page .ai-hub-hero-subcopy {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

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

  .ai-hub-page .ai-hub-cta-row {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .ai-hub-page .ai-hub-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ai-hub-page .ai-hub-trust-pills {
    width: calc(100% - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }

  .ai-hub-page .ai-hub-university-band {
    width: calc(100% - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .ai-hub-page .ai-hub-university-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ai-hub-page .ai-hub-university-card {
    min-height: 84px;
    padding: 14px 16px;
  }

  .ai-hub-page .ai-hub-trust-pill {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 18px;
    min-height: 64px;
  }

  .ai-hub-page .ai-hub-visual-shell {
    display: none;
  }

  .ai-hub-page .ai-hub-credit-card,
  .ai-hub-page .ai-hub-workflow-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ai-hub-page .ai-hub-block {
    margin-bottom: 40px;
  }

  .ai-hub-page .ai-hub-tool-card,
  .ai-hub-page .ai-hub-choice-card,
  .ai-hub-page .ai-hub-credit-card,
  .ai-hub-page .ai-hub-workflow-row,
  .ai-hub-page .ai-hub-type-card {
    padding: 16px;
  }

  .ai-hub-page .ai-hub-workflow-row > i {
    display: none;
  }
}

@media (max-width: 480px) {
  .ai-hub-page .navbar {
    width: calc(100% - 12px);
    padding: 0.65rem 0.85rem;
  }

  .ai-hub-page .site-title {
    font-size: 1.05rem;
  }

  .ai-hub-page .ai-hub-container,
  .ai-hub-page .ai-hub-main {
    width: calc(100% - 24px);
  }

  .ai-hub-page .ai-hub-hero {
    padding: 94px 0 30px;
  }

  .ai-hub-page .ai-hub-eyebrow {
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.72rem;
  }

  .ai-hub-page .tool-title {
    font-size: 1.72rem;
    margin-bottom: 16px;
  }

  .ai-hub-page .ai-hub-block h2 {
    font-size: 1.9rem;
  }

  .ai-hub-page .ai-hub-hero-copy,
  .ai-hub-page .ai-hub-hero-subcopy {
    font-size: 0.93rem;
    line-height: 1.64;
  }

  .ai-hub-page .ai-hub-btn {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .ai-hub-page .ai-hub-trust-pill {
    min-height: 44px;
    padding: 10px 14px;
    justify-content: flex-start;
    gap: 10px;
  }

  .ai-hub-page .ai-hub-trust-pills,
  .ai-hub-page .ai-hub-university-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-hub-page .ai-hub-trust-pills,
  .ai-hub-page .ai-hub-university-band {
    width: calc(100% - 24px);
  }

  .ai-hub-page .ai-hub-university-band {
    padding-top: 10px;
    margin-bottom: 6px;
  }

  .ai-hub-page .ai-hub-university-note {
    font-size: 0.78rem;
    margin-bottom: 14px;
    padding: 0 8px;
    line-height: 1.6;
  }

  .ai-hub-page .ai-hub-university-card {
    min-height: 80px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .ai-hub-page .ai-hub-university-logo {
    max-width: 160px;
    height: 34px;
  }

  .ai-hub-page .ai-hub-tool-card,
  .ai-hub-page .ai-hub-choice-card,
  .ai-hub-page .ai-hub-credit-card {
    padding: 16px;
  }

  .ai-hub-page .ai-hub-workflow-row {
    padding: 14px 16px;
    gap: 12px;
  }

  .ai-hub-page .ai-hub-workflow-row-copy strong {
    font-size: 0.92rem;
  }

  .ai-hub-page .ai-hub-workflow-row-copy span {
    font-size: 0.8rem;
  }
}
