/* ============================================
   JP Immersive Home — Light Glass Edition
   Matches the Awwwards-style reference image
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --jp-bg: #e8f0ff;
  --jp-bg-soft: #f4f7ff;
  --jp-text: #0a0a1a;
  --jp-text-muted: #5a6a8a;
  --jp-accent: #3b8bff;
  --jp-accent-2: #8b5cf6;
  --jp-accent-3: #ec4899;
  --jp-glass: rgba(255, 255, 255, 0.45);
  --jp-glass-border: rgba(255, 255, 255, 0.7);
  --jp-shadow: 0 8px 32px rgba(59, 139, 255, 0.12);
  --jp-radius: 20px;
  --jp-font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.jp-has-immersive-home,
body.jp-immersive-body {
  font-family: var(--jp-font) !important;
  background: var(--jp-bg) !important;
  color: var(--jp-text) !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.jp-world {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Sky background ---- */
.jp-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(180, 210, 255, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(200, 180, 255, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(150, 200, 255, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #d4e4ff 0%, #eef3ff 40%, #f8faff 70%, #e8f0ff 100%);
  pointer-events: none;
}

.jp-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.jp-glow-center {
  width: 600px; height: 600px;
  top: 15%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(100, 180, 255, 0.45) 0%, transparent 70%);
}
.jp-glow-left {
  width: 300px; height: 300px;
  bottom: 10%; left: 5%;
  background: radial-gradient(circle, rgba(140, 100, 255, 0.25) 0%, transparent 70%);
}
.jp-glow-right {
  width: 280px; height: 280px;
  bottom: 15%; right: 8%;
  background: radial-gradient(circle, rgba(80, 160, 255, 0.3) 0%, transparent 70%);
}

#jp-3d-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---- Navigation ---- */
.jp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.jp-logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--jp-text);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.jp-logo span {
  background: linear-gradient(135deg, var(--jp-accent), var(--jp-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jp-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.jp-nav-links a {
  color: var(--jp-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.jp-nav-links a:hover,
.jp-nav-links a.is-active {
  color: var(--jp-text);
}
.jp-nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--jp-accent);
  border-radius: 2px;
}

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

.jp-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b9fff, #7b6cff);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(91, 159, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.jp-btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(91, 159, 255, 0.5);
}

.jp-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--jp-text-muted);
  transition: background 0.2s;
}
.jp-icon-btn:hover { background: rgba(255,255,255,0.8); }

.jp-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.jp-menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--jp-text);
  border-radius: 2px;
}

/* ---- Hero ---- */
.jp-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
}

.jp-hero-center {
  position: relative;
  z-index: 5;
  max-width: 720px;
}

.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jp-text-muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.jp-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b8bff, #8b5cf6);
  box-shadow: 0 0 8px rgba(59, 139, 255, 0.6);
}

.jp-title {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  color: var(--jp-text);
}
.jp-title-line {
  display: block;
}
.jp-title-gradient {
  background: linear-gradient(135deg, #3b8bff 0%, #7c5cfc 45%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jp-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--jp-text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.jp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a9fff 0%, #7b6cff 50%, #a855f7 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(91, 140, 255, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
}
.jp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(91, 140, 255, 0.55);
}
.jp-btn-primary span {
  font-size: 1.15em;
  transition: transform 0.2s;
}
.jp-btn-primary:hover span {
  transform: translateX(3px);
}

/* ---- Floating glass cards ---- */
.jp-float-card {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 240px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(59, 139, 255, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  text-decoration: none;
  color: var(--jp-text);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  animation: jpFloat 6s ease-in-out infinite;
}
.jp-float-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(59, 139, 255, 0.18);
}

.jp-float-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,139,255,0.15), rgba(139,92,246,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jp-accent);
}
.jp-float-body {
  flex: 1;
  text-align: left;
  min-width: 0;
}
.jp-float-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.jp-float-body span {
  display: block;
  font-size: 0.78rem;
  color: var(--jp-text-muted);
  line-height: 1.4;
}
.jp-float-arrow {
  flex-shrink: 0;
  color: var(--jp-accent);
  font-size: 1.1rem;
  opacity: 0.6;
  align-self: center;
  transition: opacity 0.2s, transform 0.2s;
}
.jp-float-card:hover .jp-float-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.jp-float-tl { top: 18%; left: 6%; animation-delay: 0s; }
.jp-float-bl { bottom: 22%; left: 5%; animation-delay: -2s; }
.jp-float-tr { top: 18%; right: 6%; animation-delay: -1s; }
.jp-float-br { bottom: 28%; right: 5%; animation-delay: -3.5s; }

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

/* ---- Stats bar ---- */
.jp-stats-bar {
  position: absolute;
  bottom: 100px;
  left: 40px;
  z-index: 6;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.jp-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.jp-stat-icon { font-size: 1.1rem; }
.jp-stat-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}
.jp-stat-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--jp-text-muted);
}

/* ---- Scroll hint ---- */
.jp-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--jp-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.jp-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(90, 106, 138, 0.4);
  border-radius: 12px;
  position: relative;
}
.jp-mouse-wheel {
  width: 3px; height: 8px;
  background: var(--jp-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: jpScrollWheel 1.6s ease-in-out infinite;
}
@keyframes jpScrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ---- Social ---- */
.jp-social {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jp-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jp-text-muted);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}
.jp-social a:hover {
  color: var(--jp-accent);
  background: rgba(255,255,255,0.85);
  transform: scale(1.08);
}

.jp-corner-quote {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 6;
  font-size: 0.8rem;
  color: var(--jp-text-muted);
  text-align: right;
  line-height: 1.5;
  max-width: 180px;
  opacity: 0.85;
}

/* ---- Sections below hero ---- */
.jp-section {
  position: relative;
  z-index: 3;
  padding: 100px 24px;
}
.jp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.jp-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jp-accent);
  margin-bottom: 12px;
}
.jp-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--jp-text);
}
.jp-section-desc {
  font-size: 1.1rem;
  color: var(--jp-text-muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.jp-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.jp-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--jp-radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--jp-text);
  box-shadow: var(--jp-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.jp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(59, 139, 255, 0.15);
}
.jp-card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.jp-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.jp-card p {
  font-size: 0.92rem;
  color: var(--jp-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.jp-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--jp-accent);
}
.jp-card-accent {
  background: linear-gradient(145deg, rgba(59,139,255,0.12), rgba(139,92,246,0.12));
  border-color: rgba(59,139,255,0.25);
}

/* ---- CTA ---- */
.jp-cta-section {
  padding-bottom: 80px;
}
.jp-cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 32px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  box-shadow: 0 12px 48px rgba(59, 139, 255, 0.1);
}
.jp-cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.jp-cta-box p {
  color: var(--jp-text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---- Footer ---- */
.jp-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 36px 24px;
  background: rgba(255,255,255,0.3);
}
.jp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.jp-footer-brand strong {
  display: block;
  font-size: 1.05rem;
}
.jp-footer-brand span {
  font-size: 0.85rem;
  color: var(--jp-text-muted);
}
.jp-footer-links {
  display: flex;
  gap: 24px;
}
.jp-footer-links a {
  color: var(--jp-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.jp-footer-links a:hover { color: var(--jp-text); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .jp-float-card { width: 200px; padding: 14px 16px; }
  .jp-float-body span { display: none; }
  .jp-float-tl { top: 16%; left: 3%; }
  .jp-float-tr { top: 16%; right: 3%; }
  .jp-float-bl { bottom: 20%; left: 3%; }
  .jp-float-br { bottom: 26%; right: 3%; }
}

@media (max-width: 800px) {
  .jp-nav { padding: 12px 18px; }
  .jp-nav-links { display: none; }
  .jp-menu-toggle { display: flex; }
  .jp-float-card { display: none; }
  .jp-social { display: none; }
  .jp-corner-quote { display: none; }
  .jp-stats-bar {
    position: static;
    justify-content: center;
    margin-top: 40px;
    left: auto;
  }
  .jp-hero { padding: 90px 18px 40px; }
  .jp-scroll-hint { bottom: 20px; }
}

@media (max-width: 500px) {
  .jp-stats-bar { flex-direction: column; align-items: center; }
  .jp-title { font-size: 2.8rem; }
}
