/* ═══════════════════════════════════════════════════════════════════════════
   NSNTECH – style.css
   This file extends theme.css with additional component styles for
   products, industries detail pages, enhanced FAQ, and supplemental
   glassmorphism utilities. theme.css must be loaded before this file.

/* ── Tailwind replacement utilities (replaces cdn.tailwindcss.com CDN) ─── */
.text-center   { text-align: center }
.text-left     { text-align: left }
.text-right    { text-align: right }
.flex          { display: flex }
.grid          { display: grid }
.hidden        { display: none }
.justify-center{ justify-content: center }
.items-center  { align-items: center }
.items-start   { align-items: flex-start }
.w-full        { width: 100% }
.gap-2  { gap: 0.5rem }
.gap-3  { gap: 0.75rem }
.gap-4  { gap: 1rem }
.mb-4   { margin-bottom: 1rem }
.mb-10  { margin-bottom: 2.5rem }
.mb-12  { margin-bottom: 3rem }
.mb-14  { margin-bottom: 3.5rem }
.mb-16  { margin-bottom: 4rem }
.mt-4   { margin-top: 1rem }
.mt-10  { margin-top: 2.5rem }
.mt-12  { margin-top: 3rem }
.px-4   { padding-left: 1rem; padding-right: 1rem }
.py-2   { padding-top: 0.5rem; padding-bottom: 0.5rem }
/* ─────────────────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Brand Token Aliases (matches spec naming) ──────────────────────────────── */
:root {
  /* Spec names → mapped to existing token values */
  --primary-bg:       #050B14;   /* Deep Cosmic Void  */
  --secondary-bg:     #0B1A2E;   /* Secondary Background */
  --primary-accent:   #00E5FF;   /* Electric Cyan */
  --secondary-accent: #7B61FF;   /* Neon Violet */
  --highlight:        #F5A623;   /* Desert Gold */
  --trust-blue-alt:   #007BFF;   /* Trust Blue */
  --text-primary-alt: #FFFFFF;
  --text-secondary-alt:#A0B4C8;
  --glass-bg-alt:     rgba(255,255,255,0.05);
  --glass-border-alt: rgba(255,255,255,0.08);
}

/* ── Glassmorphism Utilities ────────────────────────────────────────────────── */
.glass {
  background:    rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.glass-dark {
  background:    rgba(5,11,20,0.80);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0,229,255,0.10);
  border-radius: 16px;
}

.glass-cyan {
  background:    rgba(0,229,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 16px;
}

/* ── Gradient Text Utilities ────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #00E5FF 0%, #7B61FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F5A623 0%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #7B61FF 0%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Button Styles ──────────────────────────────────────────────────────────── */
.btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #00E5FF, #00B8D9);
  color: #050B14;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 20px rgba(0,229,255,0.25);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,229,255,0.45), 0 8px 24px rgba(0,0,0,0.3);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: transparent;
  color: #00E5FF;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid rgba(0,229,255,0.5);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-outline-cyan:hover {
  background: rgba(0,229,255,0.10);
  border-color: #00E5FF;
  box-shadow: 0 0 20px rgba(0,229,255,0.20);
}

/* ── Product Card ────────────────────────────────────────────────────────────── */
.product-card {
  background:    rgba(255,255,255,0.04);
  border:        1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding:       2rem;
  transition:    border-color 0.35s ease, transform 0.35s ease,
                 box-shadow 0.35s ease;
  will-change: transform;
  position: relative;
  overflow: visible; /* badge pokes above */
}
.product-card:hover {
  border-color: rgba(0,229,255,0.35);
  box-shadow:   0 16px 48px rgba(0,0,0,0.35), 0 0 32px rgba(0,229,255,0.08);
  transform: translateY(-4px);
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,rgba(0,229,255,0.04),transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }

/* ── Service Card ────────────────────────────────────────────────────────────── */
.service-card {
  background:    rgba(255,255,255,0.04);
  border:        1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding:       2.5rem 2rem;
  transition:    border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: rgba(0,229,255,0.30);
  box-shadow:   0 20px 60px rgba(0,0,0,0.40), 0 0 40px rgba(0,229,255,0.06);
  transform: translateY(-6px);
}

/* ── Industry Card ───────────────────────────────────────────────────────────── */
.industry-card {
  background:    rgba(255,255,255,0.04);
  border:        1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding:       2rem;
  text-align:    center;
  transition:    border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.industry-card:hover {
  border-color: rgba(0,229,255,0.30);
  box-shadow:   0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}

/* ── Trust Badge ─────────────────────────────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #A0B4C8;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.trust-badge:hover {
  border-color: rgba(0,229,255,0.4);
  color: #00E5FF;
}
.trust-badge img {
  height: 20px;
  width: auto;
  display: inline-block;
}

/* ── Stat Number Animations ──────────────────────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-card .stat-value {
  font-family: var(--font-head, 'Syne', sans-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #00E5FF, #7B61FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card.animated .stat-value {
  animation: countUp 0.6s ease both;
}

/* ── Gradient Orbs (extra instances) ─────────────────────────────────────────── */
.orb-extra {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  0%   { transform: translate(0,   0)   scale(1); }
  50%  { transform: translate(40px,-30px) scale(1.08); }
  100% { transform: translate(-20px,25px) scale(0.95); }
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s ease;
}
.faq-item.is-open,
.faq-item:hover {
  border-color: rgba(0,229,255,0.20);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}
.faq-question:hover,
.faq-item.is-open .faq-question {
  color: #00E5FF;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #00E5FF;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1),
              background 0.3s ease;
}
.faq-item.is-open .faq-icon {
  background: rgba(0,229,255,0.12);
}

.faq-answer {
  overflow: hidden;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: #8BA3C0;
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ── Page Hero (shared across inner pages) ───────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h, 72px) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--nav-h, 72px) + 3rem);
    padding-bottom: 3rem;
  }
}

/* ── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #050B14; }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.50); }

/* ── Responsive Adjustments ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-card,
  .service-card,
  .industry-card { padding: 1.5rem; }

  .btn-cyan,
  .btn-outline-cyan { padding: 0.7rem 1.4rem; font-size: 0.87rem; }

  [data-tilt] { transform: none !important; }
}
