/* services.css — services page + cuboid */

.services-page {
  position: relative;
  padding-bottom: 200px; /* room for fixed cuboid */
}

.services-glow {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px; height: 1000px;
  pointer-events: none;
  z-index: 0;
  transition: background 600ms var(--ease-standard);
  opacity: var(--glow-intensity);
}

.services-hero { padding: var(--space-9) 0 var(--space-7); position: relative; z-index: 2; }
.services-h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: var(--space-4) 0 var(--space-5);
}

.services-content-wrap { position: relative; z-index: 2; }

.vertical-content {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-enter), transform var(--duration-slow) var(--ease-enter);
}
.vertical-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.vc-header {
  margin-bottom: var(--space-8);
  max-width: 880px;
}
.vc-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: var(--space-4) 0;
}
.vc-desc { font-size: 18px; }

/* service items */
.vc-services {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-7);
}
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: padding var(--duration-base), background var(--duration-base);
  position: relative;
}
.service-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width var(--duration-base);
}
.service-item:hover {
  padding-left: var(--space-5);
}
.service-item:hover::before {
  width: 3px;
}
.service-item:hover .service-arrow { transform: translateX(4px); color: var(--accent); }

.service-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}
.service-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}
.service-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 640px;
}
.service-arrow {
  color: var(--color-text-muted);
  transition: transform var(--duration-base), color var(--duration-base);
}

@media (max-width: 768px) {
  .service-item { grid-template-columns: 60px 1fr 24px; gap: var(--space-3); }
  .service-name { font-size: 18px; }
}

/* proof block */
.vc-proof {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-7);
  padding: var(--space-7);
  align-items: center;
  margin-bottom: var(--space-7);
  border-color: rgba(var(--accent-rgb), 0.2);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04), rgba(20, 20, 24, 0.6));
}
@media (max-width: 768px) { .vc-proof { grid-template-columns: 1fr; } }

.vc-proof-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.vc-proof-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.vc-proof-quote blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}
.vc-proof-quote cite {
  font-style: normal;
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.vc-cta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

/* ============ CUBOID NAVIGATOR ============ */
.cuboid-navigator {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cuboid-platform {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 14px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.18) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  opacity: var(--glow-intensity);
}

.cuboid {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  position: relative;
  transform-style: preserve-3d;
}

.cuboid-face {
  width: 110px;
  height: 72px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-standard);
  background: rgba(var(--face-rgb), 0.08);
  border: 1px solid rgba(var(--face-rgb), 0.18);
  color: var(--face-accent);
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  will-change: transform;
}

.cuboid-face-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  position: relative;
}

.cuboid-face-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--duration-base);
}

.cuboid-face:hover {
  transform: translateY(-3px);
  background: rgba(var(--face-rgb), 0.16);
  border-color: rgba(var(--face-rgb), 0.35);
}
.cuboid-face:hover .cuboid-face-label { color: var(--color-text-primary); }

.cuboid-face.active {
  background: rgba(var(--face-rgb), 0.28);
  border-color: rgba(var(--face-rgb), 0.6);
  border-top: 2px solid var(--face-accent);
  box-shadow: 0 0 0 1px rgba(var(--face-rgb), 0.3), 0 0 24px rgba(var(--face-rgb), 0.25);
}
.cuboid-face.active .cuboid-face-label { color: var(--color-text-primary); }

.cuboid-face-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at top, rgba(var(--face-rgb), 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Style: flat — minimize 3D */
.cuboid-style-flat .cuboid {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.cuboid-style-flat .cuboid-platform { display: none; }
.cuboid-style-flat .cuboid-face.active { transform: none; }

/* Style: isometric — tilt + shear */
.cuboid-style-isometric .cuboid {
  transform: rotateX(8deg);
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 107, 53, 0.05) inset;
}
.cuboid-style-isometric .cuboid::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 4px;
  right: 4px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(20,20,24,0.9), rgba(20,20,24,0));
  border-radius: 0 0 12px 12px;
  transform: rotateX(-90deg);
  transform-origin: top;
}

/* Style: depth — tall cuboid with side faces */
.cuboid-style-depth .cuboid {
  position: relative;
}
.cuboid-style-depth .cuboid::before {
  content: '';
  position: absolute;
  top: 4px; bottom: -8px;
  left: 4px; right: 4px;
  background: rgba(13, 13, 15, 0.9);
  border-radius: 14px;
  z-index: -1;
  transform: translateY(8px);
  border: 1px solid var(--color-border);
  filter: blur(2px);
}
.cuboid-style-depth .cuboid-face.active {
  transform: translateY(-2px);
}

.cuboid-hint {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}
.cuboid-hint-key {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 11px;
  margin: 0 1px;
}

@media (max-width: 768px) {
  .cuboid-face { width: 90px; height: 60px; }
  .cuboid-face-label { font-size: 10px; }
  .cuboid-hint { display: none; }
}

@media (max-width: 480px) {
  .cuboid-face { width: 70px; height: 56px; }
  .cuboid-face-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cuboid-face, .cuboid, .vertical-content { transition: none !important; }
}
