/* cube.css — CSS3D face panel browser chrome styles */
/* Nav8 animated homepage */

/* ── Shared face chrome ─────────────────────────────────────────────────── */
.cube-face {
  width: 880px;
  height: 880px;
  background: rgba(8, 8, 10, 0.96);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  border-radius: 12px;
  box-shadow:
    0 0 60px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.10),
    inset 0 1px 0 rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.10);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0; left: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  /* Radial accent overlay */
  background-image: radial-gradient(
    ellipse at 50% 40%,
    rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06) 0%,
    transparent 65%
  );
}

/* ── Header (traffic dots + address bar) ─────────────────────────────────── */
.face-header {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 18px;
  border-bottom: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.02);
  flex-shrink: 0;
}

.face-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.face-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  animation: faceDotAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.face-dot:nth-child(1) { animation-delay: 2.0s; }
.face-dot:nth-child(2) { animation-delay: 2.1s; }
.face-dot:nth-child(3) { animation-delay: 2.2s; }

.face-address-bar {
  flex: 1;
  height: 38px;
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.20);
  border-radius: 6px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
  position: relative;
  overflow: hidden;
  animation: faceSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.4s both;
}
/* Glow dot at right end of omnibar — CHANGE 4 */
.face-address-bar::before {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.40);
  box-shadow: 0 0 8px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.40);
  transform: translateY(-50%);
  z-index: 1;
}
.face-address-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25), transparent);
  animation: faceShimmer 3s ease-in-out 3.5s infinite;
}

/* ── Body (sidebar + content) ───────────────────────────────────────────── */
.face-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.face-sidebar {
  width: 96px;
  flex-shrink: 0;
  border-right: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.20);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
  animation: faceSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.2s both;
}

.face-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
  position: relative;
  overflow: hidden;
  animation: faceIconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.face-icon:nth-child(1) { animation-delay: 2.5s; }
.face-icon:nth-child(2) { animation-delay: 2.65s; }
.face-icon:nth-child(3) { animation-delay: 2.8s; }

.face-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  border-radius: 2px;
}

.face-icon-active {
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
  box-shadow: 0 0 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
  position: relative;
}
/* Active tab vertical indicator bar — CHANGE 5 */
.face-icon-active::after {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  width: 3px; height: 20px;
  border-radius: 2px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.60);
  transform: translateY(-50%);
}
.face-icon-active::before {
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.75);
  animation: faceIconPulse 2s ease-in-out infinite;
}

/* ── Content area ────────────────────────────────────────────────────────── */
.face-content {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

/* Background shimmer lines */
.face-bg-lines {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: absolute;
  top: 28px; left: 28px; right: 28px;
  opacity: 0.5;
}

.face-line {
  height: 12px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.18);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  animation: faceSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.face-line:nth-child(1) { animation-delay: 2.6s; width: 100%; }
.face-line:nth-child(2) { animation-delay: 2.8s; width: 80%; }
.face-line:nth-child(3) { animation-delay: 3.0s; width: 100%; }
.face-line:nth-child(4) { animation-delay: 3.2s; width: 72%; }
.face-line:nth-child(5) { animation-delay: 3.4s; width: 55%; }

.face-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45), transparent);
  animation: faceShimmer 4s ease-in-out infinite;
}
.face-line:nth-child(1)::after { animation-delay: 3.8s; }
.face-line:nth-child(2)::after { animation-delay: 4.1s; }
.face-line:nth-child(3)::after { animation-delay: 4.4s; }
.face-line:nth-child(4)::after { animation-delay: 4.7s; }
.face-line:nth-child(5)::after { animation-delay: 5.0s; }

/* ── Face text overlay ───────────────────────────────────────────────────── */
.face-text {
  position: absolute;
  top: 140px; left: 0; right: 0;
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.face-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  margin-bottom: 4px;
  text-shadow: 0 0 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.9),
               0 0 40px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
  filter: brightness(1.3);
}

.face-title-1, .face-title-2 {
  font-size: 76px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(200, 180, 255, 0.25),
               0 0 80px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3),
               0 2px 8px rgba(0,0,0,0.5);
  opacity: 0;
}

.face-subtitle {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  margin-top: 6px;
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.9),
               0 0 40px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
  filter: brightness(1.4);
}

.face-descs { display: flex; flex-direction: column; gap: 2px; }
.face-desc {
  font-size: 20px;
  color: rgba(255, 245, 255, 0.95);
  line-height: 1.5;
  opacity: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0 12px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
}

/* ── Special face elements ──────────────────────────────────────────────── */
.face-special {
  position: absolute;
  top: 20px; right: 10px;
  pointer-events: none;
}

/* Chat bubbles (face 1) */
.face-chat { top: 28px; right: 14px; width: 200px; }
.face-chat-bubble {
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.40);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.face-chat-bubble-reply { margin-left: 16px; }
.face-chat-line { height: 8px; background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.40); border-radius: 3px; }
.face-chat-line.long { width: 95%; }
.face-chat-line.medium { width: 75%; }
.face-chat-line.short { width: 55%; }

/* AI annotations (face 2) */
.face-annotations { top: 10px; left: 0; right: 0; bottom: 0; }
.face-anno-highlight {
  position: absolute;
  height: 6px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  border-radius: 3px;
  animation: faceAnnotationPulse 3s ease-in-out infinite;
}
.face-anno-badge {
  position: absolute; top: 5%; right: 14px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.7);
  color: var(--accent); font-size: 16px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; letter-spacing: 2px;
  box-shadow: 0 0 12px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
}

/* Graph bars (face 3) */
.face-graph { top: 20px; right: 10px; width: 180px; height: 140px; }
.face-graph-bars { display: flex; align-items: flex-end; height: 120px; gap: 8px; justify-content: flex-end; }
.face-graph-bar {
  width: 20px;
  background: linear-gradient(180deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.70), rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35));
  border-radius: 3px 3px 0 0;
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
}

/* Sparkle (face 4) */
.face-sparkle { top: 24px; right: 24px; width: 80px; height: 80px; }
.face-sparkle-icon {
  font-size: 64px; color: #fbbf24;
  text-shadow: 0 0 15px rgba(251,191,36,0.7), 0 0 40px rgba(251,191,36,0.5), 0 0 80px rgba(251,191,36,0.3);
  animation: faceSparkle 2s ease-in-out infinite;
  display: block; text-align: center;
}
.face-sparkle-ring {
  width: 88px; height: 88px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  position: absolute; top: -2px; left: 2px;
  animation: faceSparkleRing 2s ease-in-out infinite;
}

/* Split view (face 5) */
.face-splitview { top: 20px; right: 10px; width: 210px; height: 140px; display: flex; align-items: stretch; }
.face-split-pane { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.face-split-divider {
  width: 1px; background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
  margin: 0 2px;
}
.face-split-line {
  height: 8px; width: 100%;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.30);
  border-radius: 3px;
}
.face-split-line.short { width: 65%; }
.face-split-line.medium { width: 80%; }

/* ── Animated cursor for face 1 (Agentic) ─────────────────────────────── */
.face-cursor {
  position: absolute; bottom: 8px; right: 20px;
  font-size: 20px; color: var(--accent);
  opacity: 0.7;
  animation: faceCursorMove 3s ease-in-out infinite;
}
@keyframes faceCursorMove {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  30% { transform: translate(-60px, -20px); opacity: 1; }
  60% { transform: translate(-30px, -40px); opacity: 0.8; }
}
.face-check {
  float: right; font-size: 10px; color: var(--accent); opacity: 0.5;
  margin-right: 4px; line-height: 8px;
}
.face-check.done { opacity: 1; color: #28c840; }

/* ── Overlay card for face 2 (AI augmentation) ────────────────────────── */
.face-overlay-card {
  position: absolute; top: 40%; right: 10px;
  width: 140px; padding: 10px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.10);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  display: flex; flex-direction: column; gap: 6px;
  animation: faceOverlayFloat 4s ease-in-out infinite;
}
.face-overlay-line {
  height: 6px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  border-radius: 3px;
}
@keyframes faceOverlayFloat {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* ── Connection dots for face 3 (networked agents) ────────────────────── */
.face-conn-nodes { position: absolute; top: 110px; left: 0; width: 180px; height: 70px; }
.face-conn-dot {
  position: absolute; width: 12px; height: 12px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.6);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.8);
  border-radius: 50%;
  animation: faceConnPulse 2.5s ease-in-out infinite;
}
.face-conn-dot:nth-child(2) { animation-delay: 0.5s; }
.face-conn-dot:nth-child(3) { animation-delay: 1s; }
.face-conn-lines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.face-conn-lines line {
  stroke: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  stroke-width: 1; stroke-dasharray: 4 3;
  animation: faceConnDash 3s linear infinite;
}
@keyframes faceConnPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}
@keyframes faceConnDash {
  to { stroke-dashoffset: -20; }
}

/* ── Schema tree for face 4 (NAP Protocol) ────────────────────────────── */
.face-schema {
  top: auto !important; bottom: 60px; right: 14px; left: auto;
  width: 160px;
  display: flex; flex-direction: column; gap: 5px;
}
.face-schema-line {
  height: 7px; border-radius: 3px;
  background: rgba(251, 191, 36, 0.25);
}
.face-schema-line.l0 { width: 100%; }
.face-schema-line.l1 { width: 75%; margin-left: 16px; }
.face-schema-line.l2 { width: 55%; margin-left: 32px; }

/* ── Tab group dots for face 5 (Workspace) ────────────────────────────── */
.face-tab-dots {
  position: absolute; bottom: 6px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
}
.face-tab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  opacity: 0.6;
  animation: faceTabPulse 3s ease-in-out infinite;
}
.face-tab-dot:nth-child(2) { animation-delay: 0.4s; }
.face-tab-dot:nth-child(3) { animation-delay: 0.8s; }
@keyframes faceTabPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ── Text glow flash on appear ────────────────────────────────────────── */
.face-label, .face-title-1, .face-title-2, .face-subtitle {
  transition: filter 0.8s ease-out;
}

/* Gold face accent override — full gold treatment (CHANGE 6) */
.face-gold .face-label { color: #fbbf24; }
.face-gold .face-title-1, .face-gold .face-title-2 {
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.3),
               0 0 80px rgba(251, 191, 36, 0.15),
               0 2px 8px rgba(0,0,0,0.5);
}
.face-gold .face-subtitle { color: #fbbf24; }
.face-gold .face-address-bar::after { background: linear-gradient(90deg, transparent, rgba(251,191,36,0.2), transparent); }
.face-gold .face-line { background: rgba(251, 191, 36, 0.18); }
.face-gold { border-color: rgba(251, 191, 36, 0.20); }
.face-gold .face-header { border-bottom-color: rgba(251, 191, 36, 0.20); }
.face-gold .face-sidebar { border-right-color: rgba(251, 191, 36, 0.15); }
.face-gold .face-icon { background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.15); }
.face-gold .face-icon-active { background: rgba(251, 191, 36, 0.25); box-shadow: 0 0 16px rgba(251, 191, 36, 0.40); }
.face-gold .face-desc { text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0 12px rgba(251, 191, 36, 0.2); }

/* ── Keyframe animations ─────────────────────────────────────────────────── */
@keyframes faceDotAppear {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes faceSlideLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes faceSlideRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes faceSlideIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes faceIconPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes faceIconPulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}
@keyframes faceShimmer {
  0%   { left: -100%; }
  100% { left:  100%; }
}
@keyframes faceAnnotationPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
@keyframes faceSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.40; }
  50%       { transform: scale(1.15) rotate(20deg); opacity: 0.70; }
}
@keyframes faceSparkleRing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.2); opacity: 0.7; }
}

/* ── Responsive scaling ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .face-title-1, .face-title-2 { font-size: 58px; }
}
@media (max-width: 767px) {
  .face-title-1, .face-title-2 { font-size: 44px; }
  .face-label { font-size: 14px; letter-spacing: 3px; }
  .face-desc { font-size: 16px; }
  .face-subtitle { font-size: 16px; }
}
