/* ==========================================================================
   AppChant — 3D Mobile App Development Studio
   Sculpted Obsidian & Luminous Glass Design System
   ========================================================================== */

:root {
  --bg-deep: #05070e;
  --bg-base: #090d1a;
  --bg-elevated: rgba(16, 22, 42, 0.72);
  --bg-glass: rgba(18, 25, 48, 0.56);
  --bg-glass-strong: rgba(15, 21, 40, 0.84);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --cyan: #38bdf8;
  --blue: #2563eb;
  --emerald: #10b981;
  --amber: #f59e0b;
  --pink: #ec4899;

  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 55%, #38bdf8 100%);
  --grad-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 100%);
  --shadow-3d: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-glow: 0 20px 50px -15px rgba(124, 58, 237, 0.55);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Ambient 3D Background Canvas & Glow Mesh ---------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  will-change: transform;
}

.ambient-orb.orb-1 {
  width: 620px;
  height: 620px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.72), transparent 70%);
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-2 {
  width: 540px;
  height: 540px;
  top: 22%;
  right: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 70%);
  animation: orbFloat 22s ease-in-out infinite alternate-reverse;
}

.ambient-orb.orb-3 {
  width: 500px;
  height: 500px;
  bottom: -140px;
  left: 30%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
  animation: orbFloat 26s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(42px, 34px, 0) scale(1.08); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 90%);
}

header,
main,
footer {
  position: relative;
  z-index: 2;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 104px 0;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.65; }
}

.gradient-text {
  background: linear-gradient(125deg, #ffffff 0%, #c4b5fd 42%, #38bdf8 85%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease,
              background 0.22s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px -10px rgba(56, 189, 248, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 139, 250, 0.5);
}

.btn-play {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-play:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.55);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
  border-radius: 12px;
}

.play-icon {
  flex: 0 0 auto;
}

/* ---------- Header / Glass Nav ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 14px 0;
  transition: padding 0.25s ease, background 0.25s ease;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  border-radius: 20px;
  background: rgba(10, 14, 28, 0.55);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

header.scrolled .nav-shell {
  background: rgba(8, 12, 24, 0.86);
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-cube {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transform: perspective(300px) rotateY(-12deg) rotateX(8deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand-cube {
  transform: perspective(300px) rotateY(12deg) rotateX(-8deg) scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 13px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  border-radius: 2px;
  transition: 0.25s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero 3D Stage ---------- */
.hero {
  padding: 136px 0 88px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 530px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
}

.metric-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
}

.metric-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 20%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-pill span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* 3D Interactive Phone Stage */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage-viewport {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 570px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.stage-viewport:active {
  cursor: grabbing;
}

.stage-halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42) 0%, rgba(56, 189, 248, 0.22) 45%, transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  animation: haloBreath 6s ease-in-out infinite alternate;
}

@keyframes haloBreath {
  from { transform: scale(0.95); opacity: 0.75; }
  to { transform: scale(1.1); opacity: 1; }
}

#phone3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

/* Graceful CSS 3D Phone Fallback (shown only if WebGL unavailable) */
.phone-fallback {
  display: none;
  position: relative;
  z-index: 2;
  perspective: 1100px;
}

.phone-fallback.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-fallback-body {
  width: 256px;
  height: 520px;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(145deg, #27324a, #0f172a 55%, #1e293b);
  box-shadow:
    -18px 26px 55px rgba(0, 0, 0, 0.75),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 50px -10px rgba(124, 58, 237, 0.45);
  transform: rotateY(-16deg) rotateX(6deg);
  transition: transform 0.5s ease;
}

.phone-fallback-body:hover {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
}

.phone-fallback-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #0b1022;
}

.phone-fallback-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating 3D HUD Cards around Hero Phone */
.hud-card {
  position: absolute;
  z-index: 4;
  background: rgba(13, 19, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 22px 45px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
  will-change: transform;
}

.hud-card.hud-top {
  top: 44px;
  left: -8px;
  animation: hudFloat1 5.5s ease-in-out infinite;
}

.hud-card.hud-bottom {
  bottom: 72px;
  right: -12px;
  animation: hudFloat2 6.5s ease-in-out infinite;
}

.hud-card.hud-mid {
  top: 46%;
  right: -20px;
  animation: hudFloat1 7s ease-in-out infinite reverse;
}

@keyframes hudFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes hudFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 10px, 0); }
}

.hud-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.hud-icon.emerald { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.hud-icon.amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.hud-icon.violet { background: rgba(124, 58, 237, 0.22); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.38); }

.hud-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hud-meta span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Interactive 3D Phone Dock Controls */
.stage-dock {
  position: relative;
  z-index: 5;
  margin-top: -10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.85);
}

.dock-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dock-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(56, 189, 248, 0.28));
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 4px 16px -4px rgba(124, 58, 237, 0.55);
}

.dock-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Tech & Platform Ribbon ---------- */
.ribbon {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 28, 0.65);
  backdrop-filter: blur(12px);
  padding: 22px 0;
  overflow: hidden;
}

.ribbon-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ribbon-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ---------- 3D Tilt Card System ---------- */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(167, 139, 250, 0.16),
    rgba(56, 189, 248, 0.08) 38%,
    transparent 70%
  );
  transition: opacity 0.25s ease;
}

.tilt-card:hover::after {
  opacity: 1;
}

.depth-1 { transform: translateZ(18px); }
.depth-2 { transform: translateZ(34px); }
.depth-3 { transform: translateZ(50px); }

/* ---------- Capabilities / Mobile App Craft ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}

.cap-card {
  background: var(--grad-surface), var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-3d);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cap-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 36px 75px -20px rgba(0, 0, 0, 0.85), 0 0 32px -12px rgba(124, 58, 237, 0.45);
}

.cap-icon-3d {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.28), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 14px 28px -10px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cap-card h3 {
  font-size: 20px;
  margin: 4px 0 0;
}

.cap-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.cap-tags {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cap-tags span {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Flagship Spotlight 3D Stage ---------- */
.spotlight-wrap {
  perspective: 1400px;
}

.spotlight-3d {
  background:
    radial-gradient(55% 85% at 88% 15%, rgba(124, 58, 237, 0.34), transparent 62%),
    radial-gradient(50% 70% at 12% 90%, rgba(56, 189, 248, 0.2), transparent 60%),
    rgba(13, 19, 38, 0.86);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 44px;
  align-items: center;
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.spotlight-3d h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
}

.spotlight-3d p.desc {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 520px;
  margin: 0 0 30px;
}

.spotlight-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.spotlight-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.spotlight-stats div span {
  font-size: 13px;
  color: var(--text-secondary);
}

.spotlight-pedestal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
  transform-style: preserve-3d;
}

.pedestal-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.35);
  animation: spinSlow 24s linear infinite;
}

.pedestal-ring.r2 {
  width: 310px;
  height: 310px;
  border-color: rgba(56, 189, 248, 0.22);
  animation-direction: reverse;
  animation-duration: 34s;
}

@keyframes spinSlow {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

.spotlight-icon-3d {
  width: 196px;
  height: 196px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 34px 64px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 60px -10px rgba(124, 58, 237, 0.6);
  animation: iconHover 5s ease-in-out infinite;
}

@keyframes iconHover {
  0%, 100% { transform: translateZ(48px) translateY(0) rotateY(-8deg); }
  50% { transform: translateZ(62px) translateY(-10px) rotateY(8deg); }
}

.spotlight-icon-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 3D Language Orbit / 19-Language Showcase ---------- */
.languages-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.orbit-stage {
  position: relative;
  isolation: isolate;
  height: 450px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 45%, rgba(124, 58, 237, 0.22), rgba(9, 13, 26, 0.74) 70%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
}

#globe3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.orbit-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-chip {
  position: absolute;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(167, 139, 250, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: auto;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.orbit-chip:hover {
  transform: scale(1.12);
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.22);
}

.orbit-footer-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(6, 9, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.orbit-footer-pill strong {
  color: #fff;
}

.studio-checklist {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.studio-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: #cbd5e1;
}

.studio-checklist li i {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  margin-top: 2px;
}

/* ---------- Portfolio 3D Showcase ---------- */
.portfolio-section {
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.55) 0%, rgba(7, 10, 22, 0.85) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.filter-pill:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.35);
}

.filter-pill.active {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.7);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 12px;
  background: rgba(12, 18, 36, 0.75);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  perspective: 1200px;
}

.app-card {
  background: var(--grad-surface), rgba(14, 20, 38, 0.76);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 28px -10px rgba(124, 58, 237, 0.45);
}

.app-card.featured {
  border-color: rgba(167, 139, 250, 0.45);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    rgba(16, 22, 44, 0.88);
}

.featured-tag {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -4px rgba(124, 58, 237, 0.75);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
}

.app-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.app-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #e2e8f0;
}

.app-rating .star {
  color: var(--amber);
}

.app-cat-pill {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.app-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-card a.view {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease, gap 0.18s ease;
}

.app-card a.view:hover {
  color: var(--cyan);
  gap: 9px;
}

.apps-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.apps-more {
  text-align: center;
  margin-top: 48px;
}

/* ---------- 3D Process Pipeline ---------- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.pipe-step {
  background: var(--grad-surface), var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-3d);
}

.pipe-step:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.pipe-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pipe-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.pipe-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- CTA 3D Chamber ---------- */
.cta-chamber {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 74px 48px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(124, 58, 237, 0.52), transparent 65%),
    radial-gradient(50% 70% at 85% 100%, rgba(56, 189, 248, 0.35), transparent 65%),
    linear-gradient(150deg, #131936 0%, #0a0f22 100%);
  border: 1px solid rgba(167, 139, 250, 0.34);
  box-shadow: 0 42px 95px -26px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-chamber h2 {
  font-size: clamp(30px, 4vw, 44px);
  max-width: 680px;
  margin: 0 auto 16px;
}

.cta-chamber p {
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 17px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.copy-toast {
  margin-top: 14px;
  font-size: 13px;
  color: #34d399;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.copy-toast.show {
  opacity: 1;
}

/* ---------- Footer ---------- */
footer {
  padding: 68px 0 38px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 14, 0.92);
  backdrop-filter: blur(14px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 310px;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero {
    padding-top: 118px;
    min-height: auto;
  }
  .hero-copy {
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-metrics {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .stage-viewport {
    height: 500px;
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-3d {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 42px 28px;
  }
  .spotlight-3d p.desc {
    margin-left: auto;
    margin-right: auto;
  }
  .spotlight-stats {
    justify-content: center;
  }
  .languages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 90px;
    left: 24px;
    right: 24px;
    background: rgba(10, 14, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    transform: translateY(-14px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
  }
  .nav-links.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    padding: 12px 14px;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 760px) {
  section {
    padding: 72px 0;
  }
  .nav-actions .btn-play .label {
    display: none;
  }
  .hud-card {
    display: none;
  }
  .stage-viewport {
    height: 430px;
  }
  .capabilities-grid,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .metric-pill {
    padding: 12px 10px;
  }
  .metric-pill strong {
    font-size: 21px;
  }
  .cta-chamber {
    padding: 52px 24px;
  }
  .footer-grid {
    flex-direction: column;
  }
  .search-box {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
