@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --navy-deep: #0A1A2F;
  --navy-mid: #123255;
  --blue-royal: #2656FF;
  --blue-royal-dark: #1E40AF;
  --blue-sky: #DDE7FF;
  --surface: #F7F9FD;
  --panel: #F2F5FF;
  --muted: #6F7782;
  --text: #30363D;
  --stroke: rgba(10, 26, 47, 0.12);
  --stroke-strong: rgba(38, 86, 255, 0.18);
  --shadow-soft: 0 14px 34px rgba(10, 26, 47, 0.12);
  --shadow-strong: 0 18px 46px rgba(38, 86, 255, 0.22);
  --radius-lg: 22px;
  --radius-md: 14px;
  --grad-primary: linear-gradient(135deg, #2D6BFF 0%, #1E40AF 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Inter", system-ui, sans-serif;
  background: linear-gradient(140deg, #FFFFFF 0%, #EBF1FF 45%, #F7FAFF 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow-x: hidden;
}

/* Ambient blobs for consistency with landing */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -1;
}

body::before {
  width: 360px;
  height: 360px;
  inset: 14% auto auto 8%;
  background: rgba(38, 86, 255, 0.12);
}

body::after {
  width: 320px;
  height: 320px;
  inset: auto 12% 12% auto;
  background: rgba(17, 196, 131, 0.12);
}

.container {
  width: min(1120px, 96vw);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.left-box {
  padding: 56px 56px 48px;
  background: linear-gradient(145deg, var(--navy-deep) 0%, #0F2740 45%, var(--navy-deep) 100%);
  border-right: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  color: #FFFFFF;
}

.left-box::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(38, 86, 255, 0.14), transparent 68%);
  filter: blur(32px);
  opacity: 0.65;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #E5ECF8;
  font-weight: 650;
  letter-spacing: 0.3px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.left-box h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.left-box p {
  margin: 0;
  color: #DDE7FF;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E5ECF8;
  font-size: 13px;
  letter-spacing: 0.1px;
}

.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; }

.stat {
  flex: 1 1 140px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-number { display: block; font-size: 22px; font-weight: 700; color: #FFFFFF; }
.stat-label { color: rgba(221, 231, 255, 0.82); font-size: 13px; }

.right-box {
  padding: 48px 48px 40px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-head { display: flex; flex-direction: column; gap: 4px; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.right-box h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; color: var(--navy-deep); }
.subtext { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 14px; color: var(--muted); }

.input-group input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #FFFFFF;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 3px rgba(38, 86, 255, 0.16);
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: rgba(10, 26, 47, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

#strength-fill {
  height: 100%;
  width: 0%;
  background: var(--blue-royal);
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 999px;
}

#strength-text { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }

.btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn.primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-strong);
}

.btn.primary:hover { transform: translateY(-2px); filter: brightness(0.98); }

.btn.ghost {
  background: #FFFFFF;
  color: var(--navy-deep);
  border-color: rgba(38, 86, 255, 0.4);
  box-shadow: 0 10px 20px rgba(10, 26, 47, 0.08);
}

.btn.ghost:hover { border-color: var(--blue-royal); box-shadow: var(--shadow-soft); color: var(--blue-royal); }

.switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 4px; }
.switch a { color: var(--blue-royal); text-decoration: none; font-weight: 700; }
.switch a:hover { text-decoration: underline; }

.form-msg { min-height: 18px; font-size: 13px; color: var(--text); }

.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 200;
}

.popup-content {
  background: #FFFFFF;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  width: 320px;
  box-shadow: var(--shadow-soft);
  animation: popUp 0.35s ease;
  border: 1px solid rgba(38, 86, 255, 0.14);
}

@keyframes popUp { 0% { opacity: 0; transform: translateY(12px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.popup-content h3 { margin-top: 12px; font-size: 18px; color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  body { padding: 18px; }
  .container { grid-template-columns: 1fr; border-radius: 22px; }
  .left-box { border-right: none; border-bottom: 1px solid var(--stroke); padding: 42px 32px; }
  .right-box { padding: 36px 32px 30px; }
  .left-box h1 { font-size: 32px; }
}

@media (max-width: 620px) {
  .container { width: 98vw; }
  .left-box { padding: 32px 24px; }
  .right-box { padding: 30px 24px 26px; }
  .left-box h1 { font-size: 26px; }
  .brand-pill { padding: 9px 14px; }
}@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  --bg: #FFFFFF;
  --surface: #F2F3F5;
  --panel: #F8F9FB;
  --muted: #6F7782;
  --text: #30363D;
  --accent: #2656FF;
  --accent-strong: #1E40AF;
  --accent-alt: #11C483;
  --stroke: rgba(38, 86, 255, 0.12);
  --shadow: 0 12px 32px rgba(10, 26, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Inter", system-ui, sans-serif;
  background: linear-gradient(135deg, #FFFFFF 0%, #DDE7FF 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 18% auto auto 12%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 86, 255, 0.1), transparent 60%);
  filter: blur(28px);
  opacity: 0.6;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 14% 10% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 196, 131, 0.08), transparent 62%);
  filter: blur(30px);
  opacity: 0.6;
  z-index: -1;
}

.container {
  width: min(1120px, 96vw);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border: 1px solid rgba(38, 86, 255, 0.15);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.left-box {
  padding: 56px 56px 48px;
  background: linear-gradient(145deg, #0A1A2F 0%, #1B3A52 45%, #0A1A2F 100%);
  border-right: 1px solid rgba(38, 86, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.left-box::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(38, 86, 255, 0.15), transparent 70%);
  filter: blur(30px);
  opacity: 0.6;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.3px;
  width: fit-content;
  border: 1px solid var(--stroke);
  backdrop-filter: blur(6px);
}

.left-box h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.left-box p {
  margin: 0;
  color: #DDE7FF;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1px;
}

.stat-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: auto;
}

.stat {
  flex: 1 1 140px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.right-box {
  padding: 48px 48px 40px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.right-box h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.subtext {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  color: var(--muted);
}

.input-group input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.9);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

#strength-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 999px;
}

#strength-text {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 10px;
}

.btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #2656FF 0%, #1E40AF 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(38, 86, 255, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(249, 115, 22, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: #2656FF;
}

.btn.ghost:hover {
  border-color: #2656FF;
  background: rgba(38, 86, 255, 0.12);
  box-shadow: 0 8px 20px rgba(38, 86, 255, 0.15);
}

.switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.switch a:hover {
  text-decoration: underline;
}

.form-msg {
  min-height: 18px;
  font-size: 13px;
  color: var(--text);
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 200;
}

.popup-content {
  background: #FFFFFF;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  width: 320px;
  box-shadow: var(--shadow);
  animation: popUp 0.35s ease;
  border: 1px solid rgba(38, 86, 255, 0.1);
}

@keyframes popUp {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-content h3 {
  margin-top: 12px;
  font-size: 18px;
  color: var(--text);
}

@media (max-width: 980px) {
  body {
    padding: 18px;
  }

  .container {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .left-box {
    border-right: none;
    border-bottom: 1px solid var(--stroke);
    padding: 38px 28px;
  }

  .right-box {
    padding: 34px 28px 28px;
  }

  .left-box h1 {
    font-size: 30px;
  }
}

@media (max-width: 540px) {
  .container {
    width: 98vw;
  }

  .left-box {
    padding: 32px 22px;
  }

  .right-box {
    padding: 28px 22px 24px;
  }

  .left-box h1 {
    font-size: 26px;
  }

  .btn {
    padding: 13px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  body {
    padding: 14px;
  }

  .left-box h1 {
    font-size: 22px;
  }

  .stat-row {
    gap: 12px;
  }
}

/* ============================================================================
   3D ILLUSTRATION AND ANIMATION STYLES FOR SIGNIN/SIGNUP PAGES
   ============================================================================ */

/* 3D Illustration Scene */
.illustration-scene {
    position: relative;
    width: 100%;
    height: 600px;
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateZ(0px); }
    50% { transform: translateY(-20px) translateZ(20px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) translateZ(0px) rotate(0deg); }
    50% { transform: translateY(-30px) translateZ(30px) rotate(5deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) translateZ(0px); }
    50% { transform: translateY(-15px) translateZ(15px); }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; filter: blur(8px); }
    50% { opacity: 1; filter: blur(12px); }
}

@keyframes slide-in-left {
    0% { transform: translateX(-100px) translateZ(-50px); opacity: 0; }
    100% { transform: translateX(0) translateZ(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(100px) translateZ(-50px); opacity: 0; }
    100% { transform: translateX(0) translateZ(0); opacity: 1; }
}

@keyframes bounce-in {
    0% { transform: scale(0) translateZ(-100px); opacity: 0; }
    50% { transform: scale(1.1) translateZ(20px); }
    100% { transform: scale(1) translateZ(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-10px) translateZ(10px); }
}

@keyframes particle-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* Phone mockup */
.phone-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg);
    width: 280px;
    height: 520px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(102, 126, 234, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    animation: float-medium 8s ease-in-out infinite;
    transform-style: preserve-3d;
    z-index: 5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Decorative leaf elements */
.leaf-1, .leaf-2, .leaf-3 {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: float-fast 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

.leaf-1 {
    top: 80px;
    left: 100px;
    animation-delay: 0s;
    filter: drop-shadow(0 10px 20px rgba(167, 139, 250, 0.3));
}

.leaf-2 {
    top: 50px;
    right: 120px;
    animation-delay: 2s;
    filter: drop-shadow(0 10px 20px rgba(249, 168, 212, 0.3));
}

.leaf-3 {
    bottom: 100px;
    right: 80px;
    animation-delay: 4s;
    filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
}

/* Shield icon */
.shield-icon {
    position: absolute;
    top: 60px;
    right: 80px;
    width: 100px;
    height: 100px;
    animation: bounce-in 1s ease-out, float-slow 6s ease-in-out infinite 1s;
    transform-style: preserve-3d;
    z-index: 15;
    filter: drop-shadow(0 15px 30px rgba(236, 72, 153, 0.4));
}

/* Chat bubble */
.chat-bubble {
    position: absolute;
    bottom: 120px;
    left: 80px;
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    border-radius: 20px;
    animation: slide-in-left 1s ease-out, float-fast 4s ease-in-out infinite 1s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    z-index: 12;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f472b6;
}

/* Dots decoration */
.dot-pattern {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: rotate-slow 20s linear infinite, float-slow 5s ease-in-out infinite;
}

.dot-pattern.top-left {
    top: 120px;
    left: 30px;
}

.dot-pattern.bottom-right {
    bottom: 80px;
    right: 40px;
}

/* Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: float-fast 4s ease-in-out infinite;
    filter: blur(1px);
}

.particle-1 {
    top: 30%;
    left: 20%;
    background: #a78bfa;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    right: 15%;
    background: #f9a8d4;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 40%;
    left: 15%;
    background: #fbbf24;
    animation-delay: 2s;
}

.particle-4 {
    top: 45%;
    right: 25%;
    background: #93c5fd;
    animation-delay: 3s;
}

/* Paper plane */
.paper-plane {
    position: absolute;
    top: 40px;
    left: 200px;
    width: 60px;
    height: 60px;
    animation: slide-in-right 1.5s ease-out, float-medium 7s ease-in-out infinite 1.5s;
    transform-style: preserve-3d;
    z-index: 20;
    filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
}

/* Background wave */
.wave-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 400px;
    opacity: 0.1;
    animation: float-slow 10s ease-in-out infinite;
}

/* Glow effects */
.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
}

.glow-1 {
    top: 20%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: rgba(167, 139, 250, 0.3);
}

.glow-2 {
    bottom: 30%;
    right: 20%;
    width: 250px;
    height: 250px;
    background: rgba(236, 72, 153, 0.3);
    animation-delay: 2s;
}

/* Stats cards 3D animations */
.stat-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.stat-card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.5), 
        rgba(147, 51, 234, 0.5), 
        rgba(236, 72, 153, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.stat-card-3d:hover::before {
    opacity: 1;
}

.stat-card-3d:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 25px 50px -12px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.stat-card-3d:nth-child(1):hover {
    box-shadow: 
        0 25px 50px -12px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3);
}

.stat-card-3d:nth-child(2):hover {
    box-shadow: 
        0 25px 50px -12px rgba(234, 179, 8, 0.5),
        0 0 40px rgba(234, 179, 8, 0.3);
}

.stat-card-3d:nth-child(3):hover {
    box-shadow: 
        0 25px 50px -12px rgba(34, 197, 94, 0.5),
        0 0 40px rgba(34, 197, 94, 0.3);
}

.stat-inner {
    transform: translateZ(30px);
    transition: transform 0.6s ease;
}

.stat-card-3d:hover .stat-inner {
    transform: translateZ(50px);
}

/* Animated number */
.stat-number {
    background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: attr(data-value);
    position: absolute;
    left: 0;
    top: 0;
    filter: blur(10px);
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.stat-card-3d:hover .stat-number::after {
    opacity: 0.8;
}

/* Floating animation for stat cards */
.stat-card-3d:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.stat-card-3d:nth-child(2) {
    animation: float 6s ease-in-out infinite 2s;
}

.stat-card-3d:nth-child(3) {
    animation: float 6s ease-in-out infinite 4s;
}

/* Particle effect on hover */
.stat-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.stat-card-3d:hover .stat-particle {
    animation: particle-rise 2s ease-out forwards;
}

/* Glass morphism effect */
.stat-glass {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card-3d:hover .stat-glass {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(16px);
    border-color: rgba(147, 197, 253, 0.5);
}

/* Icon pulse */
.stat-icon {
    display: inline-block;
    transition: transform 0.6s ease;
}

.stat-card-3d:hover .stat-icon {
    transform: scale(1.2) rotateY(360deg);
}

        body { font-family: 'Inter', sans-serif; }
        
        /* 3D Illustration Scene */
        .illustration-scene {
            position: relative;
            width: 100%;
            height: 600px;
            transform-style: preserve-3d;
            perspective: 1200px;
        }
        
        /* Floating animations */
        @keyframes float-slow {
            0%, 100% { transform: translateY(0px) translateZ(0px); }
            50% { transform: translateY(-20px) translateZ(20px); }
        }
        
        @keyframes float-medium {
            0%, 100% { transform: translateY(0px) translateZ(0px) rotate(0deg); }
            50% { transform: translateY(-30px) translateZ(30px) rotate(5deg); }
        }
        
        @keyframes float-fast {
            0%, 100% { transform: translateY(0px) translateZ(0px); }
            50% { transform: translateY(-15px) translateZ(15px); }
        }
        
        @keyframes rotate-slow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes pulse-glow {
            0%, 100% { opacity: 0.6; filter: blur(8px); }
            50% { opacity: 1; filter: blur(12px); }
        }
        
        @keyframes slide-in-left {
            0% { transform: translateX(-100px) translateZ(-50px); opacity: 0; }
            100% { transform: translateX(0) translateZ(0); opacity: 1; }
        }
        
        @keyframes slide-in-right {
            0% { transform: translateX(100px) translateZ(-50px); opacity: 0; }
            100% { transform: translateX(0) translateZ(0); opacity: 1; }
        }
        
        @keyframes bounce-in {
            0% { transform: scale(0) translateZ(-100px); opacity: 0; }
            50% { transform: scale(1.1) translateZ(20px); }
            100% { transform: scale(1) translateZ(0); opacity: 1; }
        }
        
        /* Person illustration */
        .person-sitting {
            position: absolute;
            bottom: 50px;
            left: 50px;
            width: 180px;
            animation: float-slow 6s ease-in-out infinite;
            transform-style: preserve-3d;
            z-index: 10;
        }
        
        /* Phone mockup */
        .phone-mockup {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg);
            width: 280px;
            height: 520px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 40px;
            padding: 12px;
            box-shadow: 
                0 40px 80px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(102, 126, 234, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
            animation: float-medium 8s ease-in-out infinite;
            transform-style: preserve-3d;
            z-index: 5;
        }
        
        .phone-screen {
            width: 100%;
            height: 100%;
            background: white;
            border-radius: 32px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        /* Decorative elements */
        .leaf-1, .leaf-2, .leaf-3 {
            position: absolute;
            width: 80px;
            height: 80px;
            animation: float-fast 5s ease-in-out infinite;
            transform-style: preserve-3d;
        }
        
        .leaf-1 {
            top: 80px;
            left: 100px;
            animation-delay: 0s;
            filter: drop-shadow(0 10px 20px rgba(167, 139, 250, 0.3));
        }
        
        .leaf-2 {
            top: 50px;
            right: 120px;
            animation-delay: 2s;
            filter: drop-shadow(0 10px 20px rgba(249, 168, 212, 0.3));
        }
        
        .leaf-3 {
            bottom: 100px;
            right: 80px;
            animation-delay: 4s;
            filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
        }
        
        /* Shield icon */
        .shield-icon {
            position: absolute;
            top: 60px;
            right: 80px;
            width: 100px;
            height: 100px;
            animation: bounce-in 1s ease-out, float-slow 6s ease-in-out infinite 1s;
            transform-style: preserve-3d;
            z-index: 15;
            filter: drop-shadow(0 15px 30px rgba(236, 72, 153, 0.4));
        }
        
        /* Chat bubble */
        .chat-bubble {
            position: absolute;
            bottom: 120px;
            left: 80px;
            width: 80px;
            height: 60px;
            background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
            border-radius: 20px;
            animation: slide-in-left 1s ease-out, float-fast 4s ease-in-out infinite 1s;
            transform-style: preserve-3d;
            box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
            z-index: 12;
        }
        
        .chat-bubble::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 20px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid #f472b6;
        }
        
        /* Dots decoration */
        .dot-pattern {
            position: absolute;
            width: 60px;
            height: 60px;
            animation: rotate-slow 20s linear infinite, float-slow 5s ease-in-out infinite;
        }
        
        .dot-pattern.top-left {
            top: 120px;
            left: 30px;
        }
        
        .dot-pattern.bottom-right {
            bottom: 80px;
            right: 40px;
        }
        
        /* Particles */
        .particle {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            animation: float-fast 4s ease-in-out infinite;
            filter: blur(1px);
        }
        
        .particle-1 {
            top: 30%;
            left: 20%;
            background: #a78bfa;
            animation-delay: 0s;
        }
        
        .particle-2 {
            top: 60%;
            right: 15%;
            background: #f9a8d4;
            animation-delay: 1s;
        }
        
        .particle-3 {
            bottom: 40%;
            left: 15%;
            background: #fbbf24;
            animation-delay: 2s;
        }
        
        .particle-4 {
            top: 45%;
            right: 25%;
            background: #93c5fd;
            animation-delay: 3s;
        }
        
        /* Paper plane */
        .paper-plane {
            position: absolute;
            top: 40px;
            left: 200px;
            width: 60px;
            height: 60px;
            animation: slide-in-right 1.5s ease-out, float-medium 7s ease-in-out infinite 1.5s;
            transform-style: preserve-3d;
            z-index: 20;
            filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
        }
        
        /* Background waves */
        .wave-bg {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 500px;
            height: 400px;
            opacity: 0.1;
            animation: float-slow 10s ease-in-out infinite;
        }
        
        /* Glow effects */
        .glow-circle {
            position: absolute;
            border-radius: 50%;
            filter: blur(40px);
            animation: pulse-glow 4s ease-in-out infinite;
        }
        
        .glow-1 {
            top: 20%;
            left: 30%;
            width: 200px;
            height: 200px;
            background: rgba(167, 139, 250, 0.3);
        }
        
        .glow-2 {
            bottom: 30%;
            right: 20%;
            width: 250px;
            height: 250px;
            background: rgba(236, 72, 153, 0.3);
            animation-delay: 2s;
        }
        
        /* Stats cards remain the same */
        .stat-card-3d {
            transform-style: preserve-3d;
            perspective: 1000px;
            transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
        }
        
        .stat-card-3d::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 1rem;
            padding: 2px;
            background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.5), 
                rgba(147, 51, 234, 0.5), 
                rgba(236, 72, 153, 0.5));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.6s ease;
        }
        
        .stat-card-3d:hover::before {
            opacity: 1;
        }
        
        .stat-card-3d:hover {
            transform: translateY(-12px) rotateX(5deg) rotateY(5deg) scale(1.05);
            box-shadow: 
                0 25px 50px -12px rgba(59, 130, 246, 0.4),
                0 0 40px rgba(59, 130, 246, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
        }
        
        .stat-card-3d:nth-child(1):hover {
            box-shadow: 
                0 25px 50px -12px rgba(59, 130, 246, 0.5),
                0 0 40px rgba(59, 130, 246, 0.3);
        }
        
        .stat-card-3d:nth-child(2):hover {
            box-shadow: 
                0 25px 50px -12px rgba(234, 179, 8, 0.5),
                0 0 40px rgba(234, 179, 8, 0.3);
        }
        
        .stat-card-3d:nth-child(3):hover {
            box-shadow: 
                0 25px 50px -12px rgba(34, 197, 94, 0.5),
                0 0 40px rgba(34, 197, 94, 0.3);
        }
        
        .stat-inner {
            transform: translateZ(30px);
            transition: transform 0.6s ease;
        }
        
        .stat-card-3d:hover .stat-inner {
            transform: translateZ(50px);
        }
        
        /* Animated number */
        .stat-number {
            background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            display: inline-block;
        }
        
        .stat-number::after {
            content: attr(data-value);
            position: absolute;
            left: 0;
            top: 0;
            filter: blur(10px);
            opacity: 0.5;
            transition: opacity 0.6s ease;
        }
        
        .stat-card-3d:hover .stat-number::after {
            opacity: 0.8;
        }
        
        /* Floating animation */
        @keyframes float {
            0%, 100% { transform: translateY(0px) translateZ(0); }
            50% { transform: translateY(-10px) translateZ(10px); }
        }
        
        .stat-card-3d:nth-child(1) {
            animation: float 6s ease-in-out infinite;
        }
        
        .stat-card-3d:nth-child(2) {
            animation: float 6s ease-in-out infinite 2s;
        }
        
        .stat-card-3d:nth-child(3) {
            animation: float 6s ease-in-out infinite 4s;
        }
        
        /* Particle effect */
        .stat-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: currentColor;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
        }
        
        .stat-card-3d:hover .stat-particle {
            animation: particle-rise 2s ease-out forwards;
        }
        
        @keyframes particle-rise {
            0% {
                opacity: 0;
                transform: translateY(0) scale(0);
            }
            50% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateY(-100px) scale(1);
            }
        }
        
        /* Glass morphism effect */
        .stat-glass {
            background: rgba(31, 41, 55, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(75, 85, 99, 0.5);
            transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        }
        
        .stat-card-3d:hover .stat-glass {
            background: rgba(31, 41, 55, 0.6);
            backdrop-filter: blur(16px);
            border-color: rgba(147, 197, 253, 0.5);
        }
        
        /* Icon pulse */
        .stat-icon {
            display: inline-block;
            transition: transform 0.6s ease;
        }

/* Shake animation for error messages */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}