/* ===== Component Styles ===== */

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--gradient-accent);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: rgba(255, 107, 53, 0.06);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-card-hover);
}

.card:hover::before {
  opacity: 0.5;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  padding: 14px 0;
  transition: padding var(--transition-slow), background var(--transition-slow);
}

.nav.scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(248, 248, 250, 0.36);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(255, 253, 252, 0.86);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(44, 38, 54, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  z-index: var(--z-modal);
  min-width: 0;
  transition: transform var(--transition-base), color var(--transition-fast);
}

.nav__logo:hover {
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.nav .nav__logo-image {
  display: block;
  height: 40px;
  width: auto;
  max-width: 230px;
  max-height: 42px;
  object-fit: contain;
  border-radius: 6px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: var(--leading-tight);
}

.nav__logo-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}

.nav__logo-kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-primary-dark);
  text-transform: uppercase;
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  background:
    linear-gradient(135deg, rgba(255,107,53,0.95), rgba(255,51,102,0.95)),
    var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.24);
}

.nav__logo-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(26, 26, 46, 0.68);
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-primary);
  background: rgba(255, 107, 53, 0.065);
  box-shadow: none;
  transform: none;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-base), opacity var(--transition-fast);
  opacity: 0;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 18px;
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__actions .btn--sm {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: var(--text-sm);
}

.nav__actions svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.nav__actions .btn--outline {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(26, 26, 46, 0.1);
  color: rgba(26, 26, 46, 0.76);
}

.nav__actions .btn--outline:hover {
  background: #fff;
  border-color: rgba(255, 107, 53, 0.28);
  color: var(--color-primary-dark);
}

.nav__trial {
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.2);
}

.nav a:focus-visible,
.nav button:focus-visible,
.mobile-menu a:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.28);
  outline-offset: 3px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26, 26, 46, 0.035);
  border: 0;
  cursor: pointer;
  z-index: var(--z-modal);
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.nav__hamburger:hover {
  background: rgba(255, 107, 53, 0.08);
  transform: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  padding: 82px 12px 20px;
  background: rgba(26, 26, 46, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__panel {
  width: min(calc(100% - 16px), 360px);
  margin: 0 auto;
  padding: 8px;
  background: rgba(255, 253, 252, 0.97);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 54px rgba(26, 26, 46, 0.18);
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  transition: transform var(--transition-slow);
}

.mobile-menu.active .mobile-menu__panel {
  transform: translateY(0) scale(1);
}

.mobile-menu__links {
  display: grid;
  gap: 2px;
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: var(--text-base);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  color: rgba(26, 26, 46, 0.78);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu a:not(.btn):hover {
  color: var(--color-text-primary);
  background: rgba(255, 107, 53, 0.08);
  transform: translateX(2px);
}

.mobile-menu a:not(.btn).mobile-menu__link--active {
  color: var(--color-primary-dark);
  background: rgba(255, 107, 53, 0.1);
}

.mobile-menu__actions {
  display: grid;
  grid-template-columns: 104px 132px;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.mobile-menu__actions .mobile-menu__button {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: var(--text-sm);
  line-height: 1;
  border-width: 1px;
  border-radius: 10px;
}

/* ============================================
   STAT ITEM
   ============================================ */

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

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  line-height: var(--leading-none);
  margin-bottom: var(--space-2);
}

.stat-item__number span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CONTACT CARD
   ============================================ */

.contact-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-primary);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.contact-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  max-width: 280px;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.footer__filing {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-3);
}

.footer__filing a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: auto;
  gap: var(--space-2);
  color: inherit;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer__filing a:hover {
  color: var(--color-primary);
}

.footer__filing-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .footer__filing {
    flex-wrap: wrap;
  }
}

/* ============================================
   BENTO CARD
   ============================================ */

.bento-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  /* Layout:
     [1] [2] [Hero (spans col 3-4, row 1-2)]
     [3] [4] [Hero continued...]
     [5] [6] [7]  [8]
  */
}

.bento-card--hero {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

/* ============================================
   BENTO CARD
   ============================================ */

.bento-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-card-hover);
}

.bento-card:hover::before {
  opacity: 0.5;
}

/* Hero card — gradient background */
.bento-card--hero {
  background: var(--gradient-accent);
  border: none;
  color: white;
  padding: var(--space-10);
  justify-content: flex-end;
}

.bento-card--hero::before {
  display: none;
}

.bento-card--hero:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--gradient-accent);
}

.bento-card--hero .bento-card__icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.bento-card--hero .bento-card__title {
  color: white;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
}

.bento-card--hero .bento-card__desc {
  color: rgba(255, 255, 255, 0.85);
}

.bento-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}
/* 每个 bento 小卡片图标独立配色 */
.bento-card:nth-child(2) .bento-card__icon { background: rgba(245,158,11,0.1);  color: #F59E0B; }  /* flame - 琥珀 */
.bento-card:nth-child(3) .bento-card__icon { background: rgba(255,107,53,0.1);  color: #FF6B35; }  /* zap - 橙 */
.bento-card:nth-child(4) .bento-card__icon { background: rgba(99,102,241,0.1);  color: #6366F1; }  /* smartphone - 靛蓝 */
.bento-card:nth-child(5) .bento-card__icon { background: rgba(16,185,129,0.1);  color: #10B981; }  /* shield-check - 翠绿 */
.bento-card:nth-child(6) .bento-card__icon { background: rgba(59,130,246,0.1);  color: #3B82F6; }  /* layout-grid - 蓝 */
.bento-card:nth-child(7) .bento-card__icon { background: rgba(168,85,247,0.1);  color: #A855F7; }  /* clock - 紫 */
.bento-card:nth-child(8) .bento-card__icon { background: rgba(236,72,153,0.1);  color: #EC4899; }  /* map-pin - 粉 */
.bento-card:nth-child(9) .bento-card__icon { background: rgba(6,182,212,0.1);   color: #06B6D4; }  /* eye-off - 青 */

.bento-card__icon svg {
  width: 24px;
  height: 24px;
}

.bento-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-text-on-dark);
}

.bento-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}


/* ============================================
   FEATURE SHOWCASE (左右交替)
   ============================================ */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) 0;
}

/* No image: text-only layout */
.showcase--text-only {
  grid-template-columns: 1fr;
  text-align: center;
}

.showcase--text-only .showcase__content {
  max-width: 640px;
  margin: 0 auto;
}

.showcase--text-only .showcase__tags {
  justify-content: center;
}

.showcase:nth-child(even) {
  direction: rtl;
}

.showcase:nth-child(even) > * {
  direction: ltr;
}

.showcase__content {
  max-width: 480px;
}

.showcase__content h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.showcase__content p {
  margin-bottom: var(--space-6);
}

.showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.showcase__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-full);
}

.showcase__tag svg {
  width: 14px;
  height: 14px;
}

.showcase__visual {
  position: relative;
  display: flex;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* Phone Mockup (CSS only) */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: var(--color-bg-elevated);
  border-radius: 36px;
  border: 3px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--color-bg-dark);
  border-radius: var(--radius-full);
  z-index: 2;
}

.phone-mockup__screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

/* Phone mockup video (Hero) */
.phone-mockup__video {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 28px;
  object-fit: cover;
  background: var(--color-bg-dark);
}

/* Showcase image (replaces CSS mockup in showcase sections) */
.showcase__image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.showcase__image:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

/* Showcase video (for game-demo in Showcase 3) */
.showcase__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: var(--color-bg-elevated);
}

.showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* 首页首个功能项：云手机持续运行动态视图 */
.runtime-visual {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1575 / 998;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 53, 0.12);
  border-radius: var(--radius-xl);
  background: #fffaf8;
  box-shadow: 0 18px 44px rgba(38, 32, 55, 0.08);
}

.runtime-visual__media,
.runtime-visual__animation {
  display: block;
  width: 100%;
  height: 100%;
}

.runtime-visual__animation {
  object-fit: cover;
}

.runtime-visual__live {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  color: #fff;
  background: rgba(23, 25, 43, 0.76);
  font-size: 11px;
  font-weight: var(--weight-medium);
  line-height: 1;
  backdrop-filter: blur(8px);
}

.runtime-visual__live span,
.runtime-visual__online span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #20c878;
  box-shadow: 0 0 0 4px rgba(32, 200, 120, 0.14);
  animation: runtime-online-pulse 2.4s ease-in-out infinite;
}

.runtime-visual__status {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(255, 250, 248, 0.82);
  box-shadow: 0 8px 24px rgba(31, 30, 52, 0.08);
  backdrop-filter: blur(12px);
}

.runtime-visual__online,
.runtime-visual__fps,
.runtime-visual__uptime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  color: #17192b;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.runtime-visual__fps strong {
  color: #ff5a4f;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1;
}

.runtime-visual__fps small {
  font-size: 0.48em;
  font-weight: var(--weight-bold);
}

.runtime-visual__fps svg,
.runtime-visual__uptime svg {
  width: 15px;
  height: 15px;
  color: #ff6b35;
  stroke-width: 1.8;
  animation: runtime-fps 2.8s ease-in-out infinite;
}

.runtime-visual__uptime {
  color: var(--color-text-secondary);
}

@keyframes runtime-online-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(32, 200, 120, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(32, 200, 120, 0.04); }
}

@keyframes runtime-fps {
  0%, 100% { transform: scaleY(0.92); opacity: 0.78; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.floating-element svg {
  width: 18px;
  height: 18px;
}

.floating-element--success svg { color: var(--color-success); }
.floating-element--speed svg { color: var(--color-primary); }
.floating-element--online svg { color: var(--color-accent); }

/* ============================================
   DOWNLOAD BUTTONS
   ============================================ */

/* ============================================
   HERO PLATFORM ICONS
   ============================================ */

.hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.platform-icon {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.platform-icon:hover {
  color: var(--color-primary);
  border-color: var(--color-border-accent);
  background: rgba(255, 107, 53, 0.06);
  transform: translateY(-1px);
}

.platform-icon svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   HERO DOWNLOAD BAR
   ============================================ */

.hero__download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  grid-column: 1 / -1;
  margin-top: var(--space-10);
  padding: var(--space-8) var(--space-10);
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,245,240,0.5) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,107,53,0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(255,107,53,0.05);
}

.hero__download-buttons {
  display: flex;
  gap: var(--space-4);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255,107,53,0.12);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  min-height: 56px;
}

.download-btn:hover {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(255,107,53,0.15);
  transform: translateY(-1px);
}

.download-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.download-btn__text {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.download-btn--web {
  border-style: dashed;
  border-color: rgba(59,130,246,0.25);
}

.download-btn--web:hover {
  border-style: solid;
  border-color: #3B82F6;
}

.download-btn--web .download-btn__icon {
  color: #3B82F6;
}

/* QR code popup on hover */
.download-btn--qrcode {
  position: relative;
}

.download-btn__qr {
  position: absolute;
  bottom: calc(100% + var(--space-3));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  min-width: 180px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: var(--z-dropdown);
}

/* Arrow pointing down */
.download-btn__qr::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--color-bg-card);
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.download-btn--qrcode:hover .download-btn__qr {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.download-btn__qr-img {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  object-fit: contain;
  display: block;
}

.download-btn__qr span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
