/* =========================================================
   AINEXO AI — Premium polish (additive, no redesign)
   Hero spacing/glow, cards, filters, buttons, videos, lock UI
   ========================================================= */

/* Hero mobile overflow / clipping fix */
.hero .hero-desc,
.hero p.hero-desc,
.hero-inner {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-inner {
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(1.85rem, 9vw, 2.6rem) !important;
    line-height: 1.1;
  }
  .hero-desc {
    padding-right: 12px;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .float-wa,
  .ai-fab,
  #aiToggle {
    z-index: 40;
  }
}
.site-header .brand-name {
  letter-spacing: 0.01em;
  font-weight: 700;
}

/* ---- Hero polish (layout preserved) ---- */
.page-hero,
.hero {
  position: relative;
}

.page-hero .container,
.hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.hero h1 {
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 0 0 48px rgba(200, 155, 60, 0.16);
}

.page-hero .eyebrow,
.hero .eyebrow {
  letter-spacing: 0.06em;
}

.gradient-text {
  background: linear-gradient(120deg, #c89b3c 0%, #e8d5a3 42%, #9f2d2d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Glass cards ---- */
.card.glass,
.project-card.glass,
.service-card.glass {
  border: 1px solid rgba(200, 155, 60, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  contain: layout style;
}

.card.glass:hover,
.project-card.glass:hover,
.service-card.glass:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(200, 155, 60, 0.48);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), 0 0 28px rgba(200, 155, 60, 0.12);
}

[data-theme="light"] .card.glass:hover,
[data-theme="light"] .project-card.glass:hover {
  box-shadow: 0 16px 36px rgba(36, 36, 36, 0.1);
}

/* ---- Buttons ---- */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary,
.btn-ghost {
  border: 1px solid rgba(200, 155, 60, 0.4);
}

.btn-ghost {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(159, 45, 45, 0.28), 0 0 18px rgba(200, 155, 60, 0.18);
}

/* ---- Filters / search toolbar ---- */
.filters,
.ainexo-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
}

.filter-btn,
.ainexo-filter-bar .filter-btn {
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid rgba(200, 155, 60, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active,
.ainexo-filter-bar .filter-btn:hover,
.ainexo-filter-bar .filter-btn.active {
  border-color: rgba(200, 155, 60, 0.85);
  color: #c89b3c;
  box-shadow: 0 8px 22px rgba(200, 155, 60, 0.16);
  transform: translateY(-1px);
}

.ainexo-search-filter {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
}

.ainexo-search-filter i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
}

.ainexo-search-filter input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px 0 40px;
  border-radius: 14px;
  border: 1px solid rgba(200, 155, 60, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text);
  backdrop-filter: blur(12px);
}

.ainexo-search-filter input:focus {
  outline: none;
  border-color: rgba(200, 155, 60, 0.85);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.16);
}

[data-theme="light"] .filter-btn,
[data-theme="light"] .ainexo-search-filter input {
  background: #fff;
  color: #1f1f1f;
  border-color: rgba(200, 155, 60, 0.5);
}

/* ---- Project / service thumbs ---- */
.project-thumb,
.service-illust,
.preview-3d {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(200, 155, 60, 0.08);
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.project-card:hover .project-thumb,
.project-card.glass:hover .project-thumb {
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(200, 155, 60, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .project-card.glass,
  .project-thumb {
    transition: none !important;
    transform: none !important;
  }
}

/* Premium mockup thumb framing (layout unchanged) */
.project-thumb--shot,
.project-thumb[data-bg] {
  background-color: #121212;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.project-thumb--shot::before,
a.project-thumb[data-bg]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(200, 155, 60, 0.28),
    inset 0 -48px 64px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Video unmute control */
.video-frame {
  position: relative;
}

.video-unmute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 60, 0.55);
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.92), rgba(36, 36, 36, 0.88));
  color: #f5edd9;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-unmute:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 155, 60, 0.9);
  box-shadow: 0 10px 24px rgba(200, 155, 60, 0.18);
}

.video-unmute:focus-visible {
  outline: 2px solid #c89b3c;
  outline-offset: 2px;
}

.video-status {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(12, 12, 16, 0.82);
  color: #e8e2d9;
  border: 1px solid rgba(200, 155, 60, 0.35);
}

.video-status.is-error {
  border-color: rgba(159, 45, 45, 0.6);
  color: #f5c2c2;
}

/* ---- Videos ---- */
.video-frame video,
.media-video video,
section video {
  border-radius: 16px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  background: #0a0a0a;
}

/* ---- Platform lock UI ---- */
.platform-unlock-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.platform-unlock-backdrop.is-open {
  display: flex;
}

.platform-unlock-panel {
  width: min(380px, 100%);
  padding: 26px 22px;
  border-radius: 18px;
  border: 1px solid rgba(200, 155, 60, 0.35);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.platform-unlock-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.platform-unlock-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.platform-unlock-panel input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(200, 155, 60, 0.4);
  padding: 0 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
}

.platform-unlock-err {
  color: #e85a5a;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.platform-unlock-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

a.is-platform-locked {
  position: relative;
  opacity: 0.72;
}

a.is-platform-locked::after {
  content: "\f023";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.9);
  border: 1px solid rgba(200, 155, 60, 0.4);
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c89b3c;
  line-height: 1;
}

.footer-social-lock-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-social-lock-note i {
  color: #c89b3c;
}

[data-theme="light"] .platform-unlock-panel input {
  background: #fff;
  color: #1f1f1f;
}

[data-theme="light"] a.is-platform-locked::after {
  background: #fff;
  color: #9f2d2d;
}

/* ---- Mobile safety ---- */
@media (max-width: 768px) {
  .filters,
  .ainexo-filter-bar {
    gap: 8px;
  }

  .card.glass:hover,
  .project-card.glass:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.glass,
  .project-card.glass,
  .btn,
  .filter-btn {
    transition: none;
  }
}

/* ---- Trending AI (brand SEO module) — additive, matches glass cards ---- */
.ainexo-trending {
  padding-top: 48px;
  padding-bottom: 48px;
}

.ainexo-trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.ainexo-trending-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.ainexo-trending-card strong {
  font-size: 0.95rem;
  color: var(--text);
}

.ainexo-trending-card span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.ainexo-trending-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(200, 155, 60, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), 0 0 22px rgba(200, 155, 60, 0.12);
}

.ainexo-trending-geo {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

[data-theme="light"] .ainexo-trending-card {
  background: linear-gradient(145deg, #fff, #f7f3ea);
  box-shadow: 0 8px 20px rgba(36, 36, 36, 0.08);
}

@media (max-width: 900px) {
  .ainexo-trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ainexo-trending-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ainexo-trending-card {
    transition: none;
  }
  .ainexo-trending-card:hover {
    transform: none;
  }
}

/* ---- Trust / Why Choose (v5) ---- */
.ainexo-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ainexo-trust-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ainexo-trust-card strong {
  font-size: 0.95rem;
  color: var(--text);
}

.ainexo-trust-card span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.ainexo-trust-subhead {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  text-align: center;
  color: var(--text);
}

.ainexo-industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ainexo-industry-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 60, 0.35);
  text-decoration: none;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ainexo-industry-chip:hover {
  border-color: rgba(200, 155, 60, 0.85);
  color: #c89b3c;
  transform: translateY(-1px);
}

.ainexo-trust-links {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.ainexo-trust-links a {
  color: #c89b3c;
  text-decoration: none;
  font-weight: 600;
}

.ainexo-aeo-faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.ainexo-aeo-faq-item {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(200, 155, 60, 0.28);
}

.ainexo-aeo-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.ainexo-aeo-faq-item p {
  margin: 10px 0 4px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .ainexo-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ainexo-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Enterprise CTA band (Phase 7) ---- */
.ainexo-enterprise-cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid rgba(200, 155, 60, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(159, 45, 45, 0.06));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ainexo-enterprise-cta-copy {
  flex: 1 1 280px;
  max-width: 640px;
}

.ainexo-enterprise-cta-copy .section-title {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.ainexo-enterprise-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 700px) {
  .ainexo-enterprise-cta-panel {
    padding: 22px 18px;
  }
}

/* ---- Related internal links (Phase 8) ---- */
.ainexo-related-links {
  padding-top: 8px;
  padding-bottom: 8px;
}

.ainexo-related-label {
  margin: 0 0 12px;
}

.ainexo-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ainexo-related-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ainexo-related-chip:hover {
  border-color: rgba(200, 155, 60, 0.55);
  background: rgba(200, 155, 60, 0.08);
}

[data-theme="light"] .ainexo-related-chip {
  background: rgba(0, 0, 0, 0.03);
}
