/* ============================================
   FLOAT 3D — MOTION GRAPHICS
   Minimal Startup · Soft Physics · 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:        #F0EEFF;
  --bg2:       #E8F4FF;
  --surface:   rgba(255,255,255,0.72);
  --surface2:  rgba(255,255,255,0.55);
  --border:    rgba(255,255,255,0.9);
  --shadow:    rgba(100,80,200,0.12);
  --text:      #1A1035;
  --text-sub:  #6B7280;

  /* Gradient palette */
  --g-violet:  linear-gradient(135deg, #7C3AED, #06B6D4);
  --g-rose:    linear-gradient(135deg, #F43F5E, #FB923C);
  --g-lime:    linear-gradient(135deg, #84CC16, #14B8A6);
  --g-indigo:  linear-gradient(135deg, #6366F1, #8B5CF6);
  --g-sky:     linear-gradient(135deg, #0EA5E9, #38BDF8);
  --g-amber:   linear-gradient(135deg, #F59E0B, #EF4444);
  --g-mint:    linear-gradient(135deg, #10B981, #06B6D4);
  --g-pink:    linear-gradient(135deg, #EC4899, #8B5CF6);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: #7C3AED;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(124,58,237,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
}

/* ── AMBIENT BACKGROUND ── */
.ambient-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #EDE9FE 0%, #E0F2FE 40%, #F0FDF4 70%, #FFF7ED 100%);
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbDrift linear infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  top: -150px; left: -100px;
  animation-duration: 22s; animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.3), transparent 70%);
  top: 20%; right: -80px;
  animation-duration: 18s; animation-delay: -6s;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(244,63,94,0.25), transparent 70%);
  bottom: -100px; left: 30%;
  animation-duration: 25s; animation-delay: -12s;
}
.orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(132,204,22,0.25), transparent 70%);
  bottom: 10%; right: 20%;
  animation-duration: 20s; animation-delay: -4s;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(30px, -20px) scale(1.05); }
  50%  { transform: translate(-20px, 30px) scale(0.95); }
  75%  { transform: translate(20px, 20px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── GRID FLOOR ── */
.grid-floor {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  z-index: 1;
  background:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 100%);
}

/* ── SCENE ── */
.scene {
  position: fixed; inset: 0; z-index: 10;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* ── BASE OBJECT ── */
.obj {
  position: absolute;
  will-change: transform;
  transform-style: preserve-3d;
}

/* ── APP ICONS ── */
.app-icon {
  width: 72px; height: 72px;
}
.app-icon__face {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid var(--border);
  box-shadow:
    0 8px 32px rgba(100,80,200,0.15),
    0 2px 8px rgba(100,80,200,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.app-icon:hover .app-icon__face {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 20px 50px rgba(100,80,200,0.25), 0 4px 12px rgba(100,80,200,0.12);
}
.app-icon__shadow {
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 12px;
  background: radial-gradient(ellipse, rgba(100,80,200,0.2), transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
}

/* Icon positions */
.ai-1 { top: 8%;  left: 6%; }
.ai-2 { top: 15%; left: 22%; }
.ai-3 { top: 5%;  right: 8%; }
.ai-4 { top: 22%; right: 18%; }
.ai-5 { bottom: 28%; left: 8%; }
.ai-6 { bottom: 20%; right: 6%; }
.ai-7 { top: 42%; left: 3%; }
.ai-8 { bottom: 35%; right: 22%; }

/* ── GEOMETRIC SHAPES ── */
.geo-shape { position: absolute; }
.geo-shape__shadow {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.4;
}

/* Sphere */
.sphere {
  border-radius: 50%;
  box-shadow:
    inset -8px -8px 20px rgba(0,0,0,0.12),
    inset 4px 4px 12px rgba(255,255,255,0.6),
    0 12px 40px rgba(100,80,200,0.2);
}
.s-1 {
  width: 90px; height: 90px;
  background: var(--g-violet);
  top: 30%; left: 14%;
}
.s-1 .geo-shape__shadow { width: 70px; height: 18px; background: rgba(124,58,237,0.25); }
.s-2 {
  width: 60px; height: 60px;
  background: var(--g-rose);
  top: 55%; right: 12%;
}
.s-2 .geo-shape__shadow { width: 45px; height: 12px; background: rgba(244,63,94,0.25); }

/* Pill */
.pill {
  border-radius: 100px;
  box-shadow:
    inset -4px -4px 12px rgba(0,0,0,0.1),
    inset 2px 2px 8px rgba(255,255,255,0.5),
    0 10px 30px rgba(100,80,200,0.18);
}
.p-1 {
  width: 120px; height: 48px;
  background: var(--g-lime);
  top: 18%; left: 38%;
}
.p-1 .geo-shape__shadow { width: 90px; height: 14px; background: rgba(132,204,22,0.25); }
.p-2 {
  width: 80px; height: 32px;
  background: var(--g-amber);
  bottom: 22%; left: 28%;
}
.p-2 .geo-shape__shadow { width: 60px; height: 10px; background: rgba(245,158,11,0.25); }

/* Ring */
.ring {
  border-radius: 50%;
  border: 10px solid transparent;
  background: transparent;
}
.r-1 {
  width: 80px; height: 80px;
  border: 10px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #7C3AED, #06B6D4) border-box;
  top: 60%; left: 42%;
  box-shadow: 0 8px 24px rgba(124,58,237,0.2);
}
.r-1 .geo-shape__shadow { width: 60px; height: 14px; background: rgba(124,58,237,0.2); bottom: -22px; }
.r-2 {
  width: 55px; height: 55px;
  border: 7px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #F43F5E, #FB923C) border-box;
  top: 12%; right: 35%;
  box-shadow: 0 6px 18px rgba(244,63,94,0.2);
}
.r-2 .geo-shape__shadow { width: 40px; height: 10px; background: rgba(244,63,94,0.2); bottom: -18px; }
.ring__inner { display: none; }

/* Cube (CSS 3D) */
.cube {
  width: 60px; height: 60px;
  transform-style: preserve-3d;
  top: 70%; right: 30%;
}
.cube__face {
  position: absolute;
  border-radius: 8px;
}
.cube__face--front {
  width: 60px; height: 60px;
  background: var(--g-indigo);
  transform: translateZ(30px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.cube__face--right {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  transform: rotateY(90deg) translateZ(30px);
  filter: brightness(0.75);
}
.cube__face--top {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #818CF8, #A78BFA);
  transform: rotateX(90deg) translateZ(30px);
  filter: brightness(1.15);
}
.c-1 .geo-shape__shadow { width: 50px; height: 14px; background: rgba(99,102,241,0.25); bottom: -24px; }

/* ── UI CARDS ── */
.ui-card {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    0 16px 48px rgba(100,80,200,0.12),
    0 4px 16px rgba(100,80,200,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.ui-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 28px 64px rgba(100,80,200,0.2), 0 8px 24px rgba(100,80,200,0.1);
}
.ui-card__shadow {
  position: absolute;
  bottom: -20px; left: 10%; right: 10%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(100,80,200,0.18), transparent 70%);
  filter: blur(8px);
}

.card-1 { width: 180px; top: 28%; right: 5%; }
.card-2 { width: 160px; bottom: 18%; left: 16%; }
.card-3 { width: 150px; top: 50%; right: 14%; }

.ui-card__header { display: flex; gap: 5px; margin-bottom: 12px; }
.ui-card__dot { width: 8px; height: 8px; border-radius: 50%; }
.ui-card__bar {
  height: 6px; border-radius: 100px;
  margin-bottom: 6px;
}
.ui-card__stat { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; }
.ui-card__num { font-size: 22px; font-weight: 800; color: var(--text); }
.ui-card__label { font-size: 11px; font-weight: 500; color: var(--text-sub); }

.ui-card__icon { font-size: 24px; margin-bottom: 6px; }
.ui-card__title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ui-card__sub { font-size: 11px; color: var(--text-sub); }
.ui-card__sparkline { width: 100%; height: 30px; margin-bottom: 8px; }
.ui-card__sparkline svg { width: 100%; height: 100%; }
.ui-card__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  color: white;
}

.ui-card__avatar-row { display: flex; gap: -4px; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
  border: 2px solid white;
  margin-left: -6px;
}
.avatar:first-child { margin-left: 0; }
.av1 { background: var(--g-violet); }
.av2 { background: var(--g-rose); }
.av3 { background: var(--g-lime); }
.av-more { background: #E5E7EB; color: var(--text-sub); font-size: 10px; }

/* ── NOTIFICATION CHIPS ── */
.notif-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  box-shadow:
    0 8px 24px rgba(100,80,200,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-chip:hover { transform: translateY(-4px) scale(1.04) !important; }
.notif-chip__icon { font-size: 16px; }
.notif-chip__text { font-size: 12px; font-weight: 600; color: var(--text); }

.nc-1 { top: 8%;  left: 38%; }
.nc-2 { top: 72%; right: 38%; }
.nc-3 { bottom: 12%; left: 42%; }

/* ── HERO CENTER ── */
.hero-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 50;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7C3AED;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero-word {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-word:nth-child(1) { animation-delay: 0.5s; }
.hero-word:nth-child(2) { animation-delay: 0.65s; }
.hero-word:nth-child(3) { animation-delay: 0.8s; }
.hero-word--grad {
  background: linear-gradient(135deg, #7C3AED 0%, #06B6D4 50%, #84CC16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-sub);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 1.0s forwards;
}
.hero-cta-row {
  display: flex; gap: 12px; justify-content: center;
  pointer-events: all;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 1.15s forwards;
}
.btn-primary {
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 40px rgba(124,58,237,0.45);
}
.btn-ghost {
  padding: 14px 28px;
  border-radius: 100px;
  border: 1.5px solid rgba(124,58,237,0.3);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease;
}
.btn-ghost:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255,255,255,0.85);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BOTTOM LABEL ── */
.bottom-label {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
  color: var(--text-sub);
  box-shadow: 0 4px 16px rgba(100,80,200,0.08);
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 1.5s forwards;
}
.bottom-label__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7C3AED;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── PARTICLE DOTS ── */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  animation: particleFade linear infinite;
}
@keyframes particleFade {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.6; transform: translateY(-10px) scale(1); }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}