

.footer-links { display: contents; }

@media (max-width: 767px) {
  .footer {
    padding: 36px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #07080a;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 28px;
  }

  .footer-brand-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
  }

  .footer-brand-area img {
    height: 144px;
    width: auto;
    margin-bottom: 10px;
  }

  .footer-desc {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-fade);
    max-width: 90%;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .footer-col h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text);
    margin: 0;
    padding: 14px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .footer-col h5::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--text-fade);
    border-bottom: 2px solid var(--text-fade);
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 4px;
  }

  .footer-col.open h5::after {
    transform: rotate(-135deg);
    border-color: var(--accent-glow);
  }

  .footer-links {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .footer-col.open .footer-links {
    max-height: 260px;
  }

  .footer-links a {
    display: block;
    padding: 10px 4px;
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 0;
    border-left: none;
    padding-left: 4px;
    transition: color 0.2s, padding-left 0.2s;
  }

  .footer-links a:last-child {
    padding-bottom: 16px;
  }

  .footer-links a:hover {
    color: var(--accent-glow);
    padding-left: 10px;
  }

  .footer-links a::before,
  .footer-links a:hover::before {
    display: none !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding-top: 20px;
    margin-top: 4px;
  }

  .footer-bottom p {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-fade);
    max-width: 100%;
  }

  .footer-dev {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dev-label {
    font-size: 8px;
    padding: 2px 7px;
    border-radius: 4px;
  }

  .dev-name {
    font-size: 12px;
  }

  .dev-github {
    font-size: 10.5px;
    padding: 5px 10px;
  }
}

.mobile-preview {
  max-width: 390px;
  margin: 20px auto;
  border: 10px solid #111;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.04);
  background: #111;
}

.mobile-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #111;
  border-radius: 0 0 18px 18px;
  z-index: 20;
  border: 2px solid rgba(255,255,255,0.06);
  border-top: none;
}

.mobile-preview iframe,
.mobile-preview .mobile-preview-frame {
  width: 100%;
  height: 760px;
  border: none;
  display: block;
  background: var(--bg);
}

.mobile-preview-frame {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-preview-frame::-webkit-scrollbar {
  width: 5px;
}
.mobile-preview-frame::-webkit-scrollbar-track {
  background: transparent;
}
.mobile-preview-frame::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.mobile-preview-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-fade);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
