/* =========================================================================
   ANAGHA — Tabbed SPA shell  |  tabs.css
   ========================================================================= */

/* ---- Tab strip ---- */
.page-tabs {
  position: sticky;
  top: 80px;          /* header height */
  z-index: 99;
  background: rgba(13,10,36,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tabs-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2px;
}
.tabs-inner::-webkit-scrollbar { display:none; }

.pt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 22px;
  font-family: var(--display);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.45);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.pt-btn:hover { color: rgba(255,255,255,.82); }
.pt-btn.active {
  color: #fff;
  border-bottom-color: var(--gold-500);
}
.pt-btn svg { width:15px; height:15px; flex-shrink:0; opacity:.6; transition: opacity .2s; }
.pt-btn:hover svg, .pt-btn.active svg { opacity:1; }
.pt-ext .ext-icon { width:11px; height:11px; opacity:.45; margin-left:-2px; }

/* ---- Page panels ---- */
.page-panel { display:none; }
.page-panel.active { display:block; animation: panelIn .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes panelIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ---- Products panel intro ---- */
.products-panel { background:var(--paper); }

/* =========================================================================
   PREMIUM PRODUCT CARDS — full redesign
   ========================================================================= */
.prod-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.prod-card {
  position: relative;
  border-radius: 18px;
  padding: 26px 24px 22px;
  background: linear-gradient(160deg, #141230 0%, #0d0b22 100%);
  border: 1px solid rgba(255,255,255,.09);
  /* top accent glow line */
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--accent) 38%, transparent),
    0 1px 3px rgba(0,0,0,.5);
  color: #fff;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, border-color .28s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.prod-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.06));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--accent) 55%, transparent),
    0 24px 56px -16px rgba(0,0,0,.75),
    0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Corner glow — shifts on hover */
.prod-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 180px; height: 140px;
  background: radial-gradient(ellipse 80% 60% at 100% 0%,
    color-mix(in srgb, var(--accent) 18%, transparent),
    transparent 68%);
  pointer-events: none;
  border-radius: 0 18px 0 0;
  transition: opacity .3s;
}
.prod-card:hover::before { opacity: 1.5; }

/* Orbs hidden */
.prod-orb, .prod-orb2 { display: none !important; }

/* ---- Card header row ---- */
.prod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Icon — fixed 52×52 with min/max to prevent override */
.prod-icon {
  width: 52px;  min-width: 52px;  max-width: 52px;
  height: 52px; min-height: 52px; max-height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 15%, rgba(10,8,30,.9));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, rgba(255,255,255,.06));
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  flex-grow: 0;
  overflow: hidden;
}
.prod-icon svg {
  display: block;
  width: 26px; height: 26px;
  flex-shrink: 0;
}
/* Images: explicit px, not %, to prevent natural-size blowout */
.prod-icon img {
  display: block;
  width: 36px;  height: 36px;
  object-fit: contain;
}

/* Category badge */
.prod-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 90%, #fff);
  padding: 4px 9px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 11%, rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, rgba(255,255,255,.04));
  white-space: nowrap;
  line-height: 1.6;
}

/* Product name */
.prod-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Description */
.prod-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,.56);
  line-height: 1.62;
  margin: 0;
  flex: 1;
}

/* Metrics row */
.prod-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  padding: 7px 11px;
  flex: 1;
  min-width: 64px;
}
.pmv {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.pml {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,.38);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* CTA link */
.prod-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
  transition: gap .18s;
}
.prod-card:hover .link-arrow { gap: 10px; }
.prod-card .link-arrow svg { width: 14px; height: 14px; flex-shrink: 0; }

/* =========================================================================
   CASE STUDY PANEL
   ========================================================================= */
.cs-section { padding: 80px 0 100px; background: var(--paper); }
.cs-section .section-head { margin-bottom: 60px; }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cs-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card header band */
.cs-head {
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-800));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.cs-head::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.cs-picon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.08));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.cs-picon svg { width:22px; height:22px; }
.cs-picon img { width:100%; height:100%; object-fit:cover; border-radius:8px; }

.cs-head-info { flex: 1; min-width: 0; }
.cs-industry {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
  display: block;
}
.cs-product-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.cs-client {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
}

/* Card body */
.cs-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.cs-story h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 6px;
  font-weight: 500;
}
.cs-story p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.cs-story p:last-child { margin-bottom: 0; }

/* Outcomes strip */
.cs-outcomes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-stat {
  background: var(--off);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  flex: 1;
  min-width: 90px;
}
.cs-stat-val {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo-700);
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}
.cs-stat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
}

/* Quote */
.cs-quote {
  margin: 0;
  padding: 16px 18px;
  background: var(--off-2);
  border-left: 3px solid var(--accent, var(--gold-500));
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.cs-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================================
   TEAM PANEL
   ========================================================================= */
.team-panel { background: var(--off); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .prod-grid-full { grid-template-columns: repeat(2, 1fr); }
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .prod-grid-full { grid-template-columns: 1fr; }
  .pt-btn { padding: 13px 15px; font-size: .8rem; }
  .cs-head { padding: 20px; }
  .cs-body { padding: 18px 20px 22px; }
}

/* ---- Client logo strip ---- */
.clogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  height: 58px;
  transition: background .2s;
}
.clogo img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .25s;
}
.velocity:hover .clogo:hover { background: rgba(255,255,255,.09); }
.velocity:hover .clogo:hover img { opacity: .9; }

/* ---- Products teaser on home ---- */
.ptease-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.ptease-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--off);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.ptease-item:hover { background: var(--off-2); border-color: var(--line-strong); }
.ptease-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.ptease-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.ptease-item small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.ptease-cta { display:flex; gap:14px; flex-wrap:wrap; margin-top:36px; }

/* Named text client chips alongside image logos */
.clogo-name {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  height: 58px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.velocity:hover .clogo-name:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
}
