@import url('https://cdn.jsdelivr.net/npm/misans@4.0/lib/Normal/MiSans-Light.min.css');
@import url('https://cdn.jsdelivr.net/npm/misans@4.0/lib/Normal/MiSans-Regular.min.css');
@import url('https://cdn.jsdelivr.net/npm/misans@4.0/lib/Normal/MiSans-Medium.min.css');
@import url('https://cdn.jsdelivr.net/npm/misans@4.0/lib/Normal/MiSans-Demibold.min.css');
@import url('https://cdn.jsdelivr.net/npm/misans@4.0/lib/Normal/MiSans-Bold.min.css');
@import url('https://cdn.jsdelivr.net/npm/misans@4.0/lib/Normal/MiSans-Heavy.min.css');

/* ========================================
   MATCHAT — Global Styles
   Inspired by Analemma's design language
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Environment */
  --website-bg: #FEFEFD;
  /* Ultra-clean light background */

  /* Deep Premium Greys */
  --color-text: #1d1d1f;
  --color-muted: #515154;
  --color-subtle: #86868b;

  /* Borders and Glass */
  --color-border: rgba(0, 0, 0, 0.08);
  /* Stronger definition */
  --color-glass-bg: rgba(255, 255, 255, 0.65);
  --color-glass-border: rgba(255, 255, 255, 0.4);
  --color-glass-shadow: rgba(0, 0, 0, 0.04);

  /* Brand — matches MatChat product (#f97316) */
  --color-accent: #f97316;
  --color-accent-dim: rgba(249, 115, 22, 0.08);
  --color-accent-glow: rgba(249, 115, 22, 0.15);
  --color-gold: #ffaa00;

  /* Card */
  --color-card-bg: rgba(255, 255, 255, 0.8);
  --color-card-border: rgba(0, 0, 0, 0.06);

  /* Advanced Display Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);

  /* Typography — Font Families */
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "MiSans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Typography — Size Scale (Major Third 1.25) */
  --text-xs:   0.7rem;                       /* 11.2px — fine print, ICP */
  --text-sm:   0.75rem;                      /* 12px — captions, labels, tags */
  --text-base: 0.85rem;                      /* 13.6px — body, descriptions */
  --text-md:   0.95rem;                      /* 15.2px — emphasis body */
  --text-lg:   1.1rem;                       /* 17.6px — card titles */
  --text-xl:   1.25rem;                      /* 20px — arch card titles */
  --text-2xl:  1.8rem;                       /* 28.8px — stat numbers */
  --text-3xl:  clamp(1.6rem, 3vw, 2rem);    /* section titles */
  --text-4xl:  clamp(2rem, 4.5vw, 3.25rem); /* hero title */

  /* Spacing Scale (4px base) */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.5rem;   /* 24px */
  --space-6:  2rem;     /* 32px */
  --space-7:  2.5rem;   /* 40px */
  --space-8:  3rem;     /* 48px */
  --space-10: 5rem;     /* 80px */

  /* Layout */
  --max-width: 1400px;
  /* Grandiose width */
  --padding-x: 2rem;
  --header-height: 80px;
  --section-gap: 120px;
  /* Increased breathing room */
}

@media (min-width: 768px) {
  :root {
    --padding-x: 3rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --padding-x: 4rem;
  }
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--website-bg);
  background-image: none;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.015em;
  /* Apple-level text tracking */
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Film grain removed — clean surface is more premium */

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* --- Layout --- */
.home-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: var(--max-width);
  padding-left: var(--padding-x);
  padding-right: var(--padding-x);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.75);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  /* Tighter for Apple-tier tension */
  color: var(--color-text);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
}

.logo-icon svg {
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.logo-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  height: 36px;
  border-radius: 99px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

#nav-lang-label {
  line-height: 1;
}

.nav-lang-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  background: rgba(0, 0, 0, 0.03);
}

/* nav CTA — moved to after .btn-glass, see below */

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 0;
  overflow: hidden;
}

/* Orange glow in hero background */
.hero-section::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(249, 115, 22, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Canvas crystal lattice — materials science background */
#comet-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

/* Mobile: JS moves globe center down; mask clips stray edge particles in text zone */
@media (max-width: 1023px) {
  .hero-content {
    z-index: 2;
  }

  #comet-canvas {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 38%,
      black 55%,
      black 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 38%,
      black 55%,
      black 100%
    );
  }
}

.hero-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
      black 0%,
      transparent 80%);
}

/* Floating Light Orbs — extremely subtle, no animation */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: normal;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  top: -250px;
  left: -250px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  bottom: 0%;
  right: -100px;
}

/* float-glow animation removed — static subtle glow is cleaner */

.hero-layout {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.hero-content {
  position: relative;
}

@media (min-width: 1024px) {
  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-content {
    flex: 0 0 48%;
    max-width: 48%;
    padding-right: 2rem;
  }
}

/* Hero badges — clean, no animation */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}

/* Shimmer disabled */
.shimmer-badge::after {
  display: none;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(180deg, #1d1d1f 0%, rgba(29, 29, 31, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-title-main {
  display: block;
}

.hero-title-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  margin-top: 0.25em;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: none;
  -webkit-text-fill-color: var(--color-text);
  opacity: 0.7;
}

.hero-description {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  max-width: 440px;
  opacity: 0;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* --- Premium Glass Button --- */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  /* Professional dark button */
  background: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.btn-glass:hover {
  background: #0a0a0a;
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Button shimmer removed — clean look */
.btn-glass::after {
  display: none;
}

.btn-arrow {
  transform: translateY(1px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glass:hover .btn-arrow {
  transform: translateX(4px) translateY(1px);
}

/* Nav CTA override — must come after .btn-glass */
.nav-cta {
  margin-left: 0.5rem;
  padding: 0.4rem 1.1rem;
  font-size: var(--text-base);
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-cta:hover {
  background: var(--color-text);
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* 已登录状态：「进入平台」品牌色填充按钮 */
.nav-cta-authed {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta-authed:hover {
  background: #ea6c0a;
  border-color: #ea6c0a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}

.nav-cta .btn-arrow {
  width: 14px;
  height: 14px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

/* --- Stats Row --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 2.5rem;
  position: relative;
  opacity: 0;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.03) 60%,
      transparent 100%);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg,
      transparent,
      rgba(0, 0, 0, 0.08) 50%,
      transparent);
}

/* --- Hero Animation Section (Right Column) --- */
.hero-animation-display {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

@media (min-width: 1024px) {
  .hero-animation-display {
    flex: 0 0 52%;
    max-width: 52%;
  }
}

@media (max-width: 1023px) {
  .hero-animation-display {
    max-height: 45vh;
  }
}

/* Hero animation glow — hidden for clean look */
.hero-anim-glow {
  display: none;
}

/* L2: Glassmorphism Chat Window */
.demo-chat-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 650px;
  height: 550px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFFDF8;
  will-change: transform;
}

.demo-chat-window:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Title bar — subtle, light, doesn't dominate */
.demo-chat-titlebar {
  padding: 10px 16px;
  background: #FFF8EC;
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}



@media (max-width: 1023px) {
  .demo-chat-window {
    height: 480px;
    /* Shorter for mobile */
  }
}

/* Bottom Input Area — matches real product */
.demo-chat-input-area {
  padding: 0.75rem 1rem;
  background: #FFFDF8;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.demo-chat-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  transition: all 0.3s ease;
}

.demo-chat-input-box:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.chat-input-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-input-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-subtle);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.chat-input-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.chat-input-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 0;
}

.chat-toolbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.06);
}

.chat-input-text {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.3);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  letter-spacing: 0.01em;
}

.chat-input-text.typing {
  color: var(--color-text);
}

.chat-input-text.cursor::after {
  content: "|";
  display: inline-block;
  color: var(--color-accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.chat-input-send {
  background: var(--color-text);
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-input-send:hover {
  background: #0a0a0a;
}

/* L3: Content Layer with Gradient Mask */
.demo-chat-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.demo-chat-scroll-area::-webkit-scrollbar {
  display: none;
}

.demo-chat-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  /* Buffer for scrolling */
}

/* Chat Bubbles Base */
.chat-bubble {
  max-width: 85%;
  border-radius: 16px;
  padding: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  /* Spring slide-up will be controlled via JS class or inline styles */
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* User Bubble — clean outline style matching real product */
.bubble-user {
  align-self: flex-end;
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* MatChat Bubble */
/* AI response — free-flowing text, no bubble border (matches real product) */
.bubble-ai {
  align-self: flex-start;
  background: transparent;
  color: var(--color-text);
  border-radius: 0;
  border: none;
  padding: 0 0.8rem;
}

/* AI Response Header — avatar + name label */
.ai-response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0.8rem;
  margin-bottom: -4px;
}

.ai-avatar-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-name-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Thinking Indicator */
.bubble-thinking {
  align-self: flex-start;
  background: #f2f3f5;
  padding: 1rem 1.25rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bouncing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: bounce 1.4s infinite ease-in-out both;
}

.bouncing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.bouncing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* System / Meta notification */
.bubble-meta {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-subtle);
  background: transparent;
  padding: 0.5rem 1rem;
  max-width: 100%;
}

/* Deep Search Box */
/* Action block — matches real product search card */
.chat-action-block {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  max-width: 90%;
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.25rem 0.8rem;
}

.action-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.action-header svg {
  opacity: 0.6;
}

.action-time {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-subtle);
}

.action-detail {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Results line — outside card, standalone orange text (matches real product) */
.action-results-line {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 500;
  padding: 0 0.8rem;
  margin-top: -0.25rem;
  background: none;
  border: none;
  box-shadow: none;
}

/* AI Response text typography — matching real product */
.ai-response-text p {
  font-size: 0.82rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}

.ai-response-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
}

.cite-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cite-badge:hover {
  background: var(--color-accent);
  color: #fff;
}

/* AI Sources Row */
.ai-sources {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.ai-sources-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-subtle);
  margin-bottom: 0.8rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-subtle);
  text-decoration: none;
  transition: all 0.2s;
}

.source-chip:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.source-id {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Inline typography for AI responses */
.ai-response-text strong {
  font-weight: 600;
  color: var(--color-text);
}

.ai-reasoning,
.ai-badge {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin: 0 4px;
  color: var(--color-muted);
}

.ai-badge {
  background: rgba(249, 115, 22, 0.08);
  color: var(--color-accent);
  font-weight: 500;
}

.ai-response-text ol,
.ai-response-text ul {
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}

.ai-response-text li {
  margin-bottom: 0.5rem;
}

/* Waterfall blur out effect applied to the container or items */
.waterfall-blur {
  animation: waterfallFadeOut 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes waterfallFadeOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
  }
}

/* ========================================
   SHARED SECTION STYLES
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-subtle);
  margin-bottom: 1.5rem;
  padding: 6px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.02);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Section Divider — clean, no animation */
.light-beam-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 5%,
      rgba(0, 0, 0, 0.06) 50%,
      transparent 95%);
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.problem-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-border),
      transparent);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Spotlight Card Effect (Applied via JS) --- */
.spotlight-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

/* The glowing border follows mouse */
.spotlight-card::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  border-radius: inherit;
  padding: 1px;
  /* Border width */
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(0, 0, 0, 0.4),
      transparent 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Inner glow */
.spotlight-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(0, 0, 0, 0.04),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* Cards — clean, no glassmorphism */
.problem-card,
.anti-card,
.cap-material-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  padding: var(--space-7);
  overflow: hidden;
}

.problem-card:hover,
.anti-card:hover,
.cap-material-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Mouse-follow glow removed for cleaner look */

.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
  background: rgba(0, 0, 0, 0.06);
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.problem-desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.problem-desc strong {
  color: var(--color-text);
  font-weight: 600;
}

.problem-stat {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.problem-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ef4444;
}

.problem-stat-label {
  font-size: var(--text-sm);
  color: #64748b;
}

/* ========================================
   ARCHITECTURE SECTION
   ======================================== */
.architecture-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.architecture-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-border),
      transparent);
}

.architecture-section::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(249, 115, 22, 0.15),
    transparent
  );
  pointer-events: none;
}

.arch-diagram-wrapper,
.workflow-wrapper,
.dashboard-preview-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto 4rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Removed dashboard-glow and scanning effects per user request */

.dashboard-image {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  /* Reduced shadow slightly for cleaner look */
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.05));
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.arch-diagram-wrapper:hover .dashboard-image,
.workflow-wrapper:hover .dashboard-image {
  transform: scale(1.02);
}

/* Architecture Layers */
.arch-layers {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-layer {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.4s ease;
  position: relative;
}

.arch-layer::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.4s ease;
}

.arch-layer:hover::after {
  width: 100%;
}

.arch-layer:hover {
  background: rgba(0, 0, 0, 0.015);
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
}

.arch-layer-number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.1);
  min-width: 60px;
  line-height: 1;
  padding-top: 4px;
}

.arch-layer-content {
  flex: 1;
}

.arch-layer-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.arch-layer-desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.arch-layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-muted);
  white-space: nowrap;
}

/* ========================================
   ANTI-HALLUCINATION SECTION
   ======================================== */
.anti-section {
  position: relative;
  padding: var(--section-gap) 0;
  background-color: #F7F5F0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.025) 40px,
    rgba(0, 0, 0, 0.025) 41px
  );
}

.anti-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-border),
      transparent);
}

.anti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .anti-grid {
    grid-template-columns: 1fr;
  }
}

.anti-card {
  padding: 2rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.anti-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.anti-card-primary {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.anti-card-primary:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.anti-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.anti-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.anti-card-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
}

.anti-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.anti-card-desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.anti-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.anti-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.feature-dot {
  min-width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-text);
  opacity: 0.2;
}

/* ========================================
   CAPABILITIES SECTION
   ======================================== */
.capabilities-section {
  position: relative;
  padding: var(--section-gap) 0;
  background-color: #F7F5F0;
  background-image: radial-gradient(
    rgba(0, 0, 0, 0.045) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

.capabilities-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-border),
      transparent);
}

.cap-materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .cap-materials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cap-materials {
    grid-template-columns: 1fr;
  }
}

.cap-material-card {
  text-align: center;
}

.cap-material-icon {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}

.cap-material-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cap-material-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cap-skill {
  font-size: var(--text-xs);
  color: var(--color-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Experimental Data */
.cap-data-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
}

.cap-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cap-data-grid {
    grid-template-columns: 1fr;
  }
}

.cap-data-card {
  padding: 2rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.cap-data-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cap-data-card h4 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cap-data-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cap-data-card li {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.cap-data-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-subtle);
  opacity: 0.6;
}

/* ========================================
   USE CASE SECTION
   ======================================== */
.usecase-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.usecase-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-border),
      transparent);
}

.usecase-comparison {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto;
}

@media (max-width: 768px) {
  .usecase-comparison {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }
}

.comparison-card {
  flex: 1;
  padding: 2.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.comparison-old {
  background: #fafafa;
}

.comparison-new {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.comparison-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #64748b;
}

.comparison-card p {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.comparison-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-md);
  color: var(--color-text);
}

.comparison-time strong {
  color: var(--color-text);
  font-weight: 600;
}

.comparison-old .comparison-time strong {
  color: #ef4444;
}

.time-icon {
  font-size: var(--text-lg);
}

.comparison-arrow {
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  padding: 100px 0 var(--section-gap);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-radius: 24px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-content:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(180deg, #0a0f1d 0%, rgba(10, 15, 29, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.cta-btn {
  position: relative;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0 var(--space-6);
  background: var(--website-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.footer-tagline {
  font-size: var(--text-base);
  color: var(--color-subtle);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer-icp {
  font-size: var(--text-sm);
  color: var(--color-subtle);
  margin-top: 0.3rem;
}

.footer-icp a {
  color: var(--color-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--color-text);
}

.footer-dimst-logo {
  height: 2rem;
  width: auto;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-dimst-logo:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-copyright a {
  color: var(--color-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.footer-note {
  font-size: var(--text-xs);
  color: rgba(107, 115, 131, 0.5);
}

/* ========================================
   AMBIENT PARTICLES (Hero Background)
   ======================================== */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: var(--max-opacity);
  }
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.15s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.2s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  :root {
    --section-gap: 80px;
    --text-lg: 1rem;
    --text-xl: 1.1rem;
    --text-2xl: 1.5rem;
  }

  .hero-section {
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: var(--text-xs);
  }

  .nav-cta {
    display: none;
  }

  .arch-layer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .arch-layer:hover {
    margin: 0;
    padding: 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    align-items: center;
    padding-bottom: 0;
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 80px;
  }
}

/* updated: 2026-02-14 */
/* ========================================
   MOBILE RESPONSIVENESS & OPTIMIZATIONS
   ======================================== */

/* --- Mobile Menu Button --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .problem-grid,
  .anti-grid,
  .cap-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --padding-x: 1.5rem;
    --header-height: 70px;
  }

  /* Global Layout */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* Header & Navigation */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--text-xl);
    font-weight: 500;
  }

  .nav-cta {
    display: inline-flex;
    /* Show it in mobile menu */
    margin-left: 0;
    margin-top: 1rem;
    width: auto;
    font-size: var(--text-md);
    padding: 0.8rem 2rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
    align-items: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: var(--text-md);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    gap: 1rem;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
  }

  .stat-item {
    align-items: center;
  }

  .stat-divider {
    display: none;
  }

  /* Architecture Section */
  .arch-layer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    /* Center align for better mobile look */
    padding: 2rem 1rem;
  }

  .arch-layer:hover {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 0;
    background: transparent;
    /* Disable hover effect on mobile */
  }

  .arch-layer-number {
    margin-bottom: 0.5rem;
  }

  .arch-layer-tags {
    justify-content: center;
  }

  /* Grids & Cards */
  .problem-grid,
  .anti-grid,
  .cap-materials,
  .cap-data-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problem-card,
  .anti-card,
  .cap-material-card {
    padding: 1.5rem;
  }

  /* Use Case */
  .usecase-comparison {
    flex-direction: column;
    margin: 2rem 0;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }


  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --padding-x: 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .problem-stat-number {
    font-size: var(--text-xl);
  }

  .cta-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: var(--text-lg);
  }
}

/* SVG 动画核心控制 - 极简缓缓旋转 */
/* Logo — static, no rotation */
.network {
  transform-origin: 500px 500px;
}

.core {
  transform-origin: 500px 500px;
}

.orbital-ring {
  transform-origin: 500px 500px;
}

.orbital-ring-reverse {
  transform-origin: 500px 500px;
}

.crystal {
  transform-origin: center;
  transform-box: fill-box;
  transform: rotate(45deg);
}

/* pulse-core and slow-spin animations removed — static logo */
@keyframes pulse-core {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(249, 211, 22, 0.7));
  }
}

@keyframes slow-spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slow-spin-reverse {
  100% {
    transform: rotate(-360deg);
  }
}

/* ========================================
   REFACTORED CUSTOM CLASSES
   ======================================== */

/* Hero Tags */
.hero-tags-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-badge.shimmer-badge {
  margin-bottom: 0;
}

.badge-text {
  position: relative;
  z-index: 2;
}

/* Capabilities Grid */
.cap-core-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .cap-core-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap-core-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cap-core-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cap-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.cap-core-card:hover .cap-card-icon {
  background: rgba(0, 0, 0, 0.05);
}

.cap-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cap-card-desc {
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cap-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cap-tag {
  font-size: var(--text-sm);
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s ease;
}

.cap-core-card:hover .cap-tag {
  background: rgba(0, 0, 0, 0.06);
}

/* Domain Emphasis */
.cap-domain-emphasis {
  margin-top: 4rem;
  text-align: center;
}

.domain-title {
  font-size: var(--text-base);
  color: var(--color-subtle);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.domain-tags {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--color-muted);
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  transition: color 0.3s;
}

.domain-tag:hover {
  color: var(--color-text);
}

.domain-dot {
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: 0;
  opacity: 0.3;
}

/* Problem Grid Updated */
.problem-grid.row-reverse {
  flex-direction: column;
}

@media (min-width: 1024px) {
  .problem-grid.row-reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 3rem;
    align-items: stretch;
  }
}

.problem-text-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.problem-card.text-card {
  padding: 1.75rem;
  margin-bottom: 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.problem-card.text-card p {
  margin-bottom: 0;
}

/* ---- Contrast Chart — Horizontal Bars ---- */
.contrast-chart-container {
  flex: 1.2;
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.chart-title-hint {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-subtle);
  letter-spacing: 0;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
}

/* Each row: header + track */
.chart-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chart-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.chart-model-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
}

.chart-model-highlight {
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-base);
}

.chart-value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 700;
}

.value-matchat {
  color: var(--color-accent);
}

.value-llm {
  color: var(--color-muted);
}

/* Track = background bar + fill */
.chart-row-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-matchat {
  background: var(--color-accent);
}

.fill-llm {
  background: rgba(0, 0, 0, 0.12);
}

/* Value fade-in */
.chart-bars .chart-value {
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}

.chart-bars.animated .chart-value {
  opacity: 1;
}

.chart-source-note {
  margin-top: 1.25rem;
  font-size: var(--text-xs);
  color: var(--color-subtle);
  letter-spacing: 0.01em;
  line-height: 1.5;
  opacity: 0.7;
}

/* ========================================
   ROADMAP SECTION
   ======================================== */
.roadmap-section {
  position: relative;
  padding: var(--section-gap) 0;
  background-color: #F7F5F0;
  background-image: radial-gradient(
    rgba(0, 0, 0, 0.045) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

/* === Horizontal Track Timeline === */
.rm-track-wrapper {
  position: relative;
  padding: 2rem 0;
}

.rm-track-line {
  position: absolute;
  top: 37px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 0;
}

.rm-track-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), var(--color-text));
  border-radius: 1px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-track-wrapper.visible .rm-track-progress {
  width: 50%;
}

.rm-track-dash {
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  height: 100%;
  border-top: 2px dashed rgba(0, 0, 0, 0.08);
  background: transparent;
}

.rm-track-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Node Structure */
.rm-track-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rm-node-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* Dots */
.rm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F7F5F0;
  border: 2px solid rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.rm-dot-past {
  border-color: rgba(0, 0, 0, 0.12);
}

.rm-dot-active {
  border-color: var(--color-text);
  background: var(--color-text);
}

.rm-dot-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  animation: rm-pulse 2.5s ease-in-out infinite;
}

.rm-dot-future {
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.1);
}

.rm-track-node:hover .rm-dot:not(.rm-dot-active):not(.rm-dot-future) {
  border-color: var(--color-text);
}

@keyframes rm-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* Time Labels */
.rm-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-subtle);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  text-align: center;
}

.rm-time-active {
  color: var(--color-text);
  background: var(--color-accent-dim);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Cards */
.rm-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: var(--space-5);
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.rm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.rm-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.rm-card-link-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.rm-card-link:hover .rm-card-link-hint {
  opacity: 1;
  transform: translateY(0);
}

.rm-card-active {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.rm-card-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
  border-radius: 12px 12px 0 0;
}

.rm-card-future {
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.08);
}

.rm-node-past .rm-card {
  opacity: 0.85;
}

.rm-node-future .rm-card {
  opacity: 0.8;
}

/* Card Content */
.rm-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.rm-card-desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.rm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.rm-card-tags span {
  font-size: var(--text-sm);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  color: var(--color-muted);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .rm-track-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .rm-track-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .rm-track-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rm-track-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .rm-node-indicator {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    min-width: 60px;
    padding-top: 0.25rem;
  }

  .rm-time {
    margin-top: 0.5rem;
  }

  .rm-card {
    padding: 1.25rem;
  }
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: transparent;
}

.about-section .section-header {
  margin-bottom: var(--space-7);
}

.about-container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* 主导单位 */
.about-institution-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.institution-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.about-institution {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-institution:hover {
  color: var(--color-accent);
}

/* 团队成员 — 单行紧凑排列 */
.team-row {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.member-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}


.member-role {
  font-size: var(--text-xs);
  color: var(--color-subtle);
  letter-spacing: 0.03em;
}

/* 合作单位 */
.partners-section {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.partners-label {
  font-size: var(--text-sm);
  color: var(--color-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
  text-align: center;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.partners-logos a {
  display: flex;
  align-items: center;
}

.partners-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.partners-logos img.logo-invert {
  filter: invert(1);
}

.partners-logos img.logo-square {
  height: 34px;
}

.partners-logos .partner-with-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.partners-logos .partner-text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .team-row {
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
  }

  .about-institution-block {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .team-row {
    gap: 1.25rem 1.5rem;
  }

  .partners-logos {
    gap: 1rem 1.5rem;
  }
}


/* ===== Compact Horizontal Architecture (Single Screen) ===== */
.arch-h-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Architecture connector — subtle animated data flow */
.arch-h-connector-bg {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%);
  overflow: hidden;
}

.arch-h-connector-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
  animation: arch-flow 3s ease-in-out infinite;
}

@keyframes arch-flow {
  0% { left: -30%; }
  100% { left: 100%; }
}

.arch-h-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .arch-h-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .arch-h-connector-bg {
    display: none;
  }
}

@media (max-width: 640px) {
  .arch-h-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.arch-h-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: var(--space-6) var(--space-5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Card Numbers as watermarks */
.arch-h-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text);
  opacity: 0.03;
  transition: all 0.3s ease;
  pointer-events: none;
  line-height: 1;
}

.arch-h-card:hover .arch-h-number {
  opacity: 0.08;
}

.arch-h-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.arch-h-card:hover::before {
  opacity: 1;
}

.arch-h-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.arch-h-card-active {
  border-color: rgba(0, 0, 0, 0.1);
}

.arch-h-card-active::before {
  opacity: 0.6;
}

.arch-h-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-subtle);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  position: relative;
  z-index: 2;
}

.arch-h-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.arch-h-desc {
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.arch-h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.arch-h-tags span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: all 0.3s;
}

.arch-h-card:hover .arch-h-tags span {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.08);
}

.arch-h-db-bar {
  display: flex;
  gap: 6px;
  margin: 0.5rem 0 1rem;
}

.arch-h-db-fill {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(249, 115, 22, 0.15);
  transition: background 0.3s;
}

.arch-h-card:hover .arch-h-db-fill {
  background: rgba(249, 115, 22, 0.35);
}

/* Animated Flow Arrows between cards */
.arch-flow-arrow {
  position: absolute;
  top: 50%;
  right: -1.2rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  animation: arrow-pulse 2.5s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.arch-flow-arrow svg {
  color: var(--color-text);
  opacity: 0.5;
  width: 14px;
  height: 14px;
}

.arch-h-card:last-child .arch-flow-arrow {
  display: none;
}

@media (max-width: 1024px) {
  .arch-flow-arrow {
    display: none;
  }
}