/* ==========================================================================
   Judisyn.in — frontend design system (white & blue SaaS theme)
   ========================================================================== */

:root {
  --jd-primary: #2563eb;
  --jd-primary-600: #1d4ed8;
  --jd-primary-400: #60a5fa;
  --jd-primary-100: #dbeafe;
  --jd-primary-50: #eff6ff;
  --jd-cyan: #06b6d4;
  --jd-indigo: #6366f1;
  --jd-ink: #0f1f45;
  --jd-body: #4a5b78;
  --jd-muted: #7b8aa5;
  --jd-border: #e3eaf5;
  --jd-surface: #ffffff;
  --jd-soft: #f5f8ff;
  --jd-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #06b6d4 100%);
  --jd-gradient-soft: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  --jd-shadow-sm: 0 1px 2px rgba(15, 31, 69, .04), 0 2px 8px rgba(15, 31, 69, .04);
  --jd-shadow: 0 10px 30px -12px rgba(37, 99, 235, .18), 0 4px 12px rgba(15, 31, 69, .05);
  --jd-shadow-lg: 0 30px 60px -20px rgba(37, 99, 235, .28), 0 12px 24px -8px rgba(15, 31, 69, .08);
  --jd-radius: 18px;
  --jd-radius-lg: 26px;
  --jd-ease: cubic-bezier(.22, .61, .36, 1);
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-hover-color: #1d4ed8;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #4a5b78;
  --bs-border-color: #e3eaf5;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--bs-body-font-family);
  color: var(--jd-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--jd-ink);
  font-weight: 700;
  letter-spacing: -.02em;
}
a { text-decoration: none; transition: color .2s var(--jd-ease); }
::selection { background: var(--jd-primary-100); color: var(--jd-ink); }

.text-gradient {
  background: var(--jd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-ink { color: var(--jd-ink) !important; }
.text-body-soft { color: var(--jd-body) !important; }
.bg-soft { background: var(--jd-soft) !important; }
.fw-800 { font-weight: 800 !important; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .7rem 1.35rem; transition: all .25s var(--jd-ease); }
.btn-lg { padding: .95rem 1.75rem; border-radius: 14px; font-size: 1.02rem; }
.btn-sm { padding: .45rem .9rem; border-radius: 10px; }
.btn-primary {
  --bs-btn-bg: var(--jd-primary);
  --bs-btn-border-color: var(--jd-primary);
  --bs-btn-hover-bg: var(--jd-primary-600);
  --bs-btn-hover-border-color: var(--jd-primary-600);
  --bs-btn-active-bg: var(--jd-primary-600);
  background-image: var(--jd-gradient);
  border: 0;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-light-blue { background: var(--jd-primary-50); color: var(--jd-primary); border: 1px solid var(--jd-primary-100); }
.btn-light-blue:hover { background: var(--jd-primary-100); color: var(--jd-primary-600); transform: translateY(-2px); }
.btn-outline-soft { background: rgba(255, 255, 255, .75); border: 1px solid var(--jd-border); color: var(--jd-ink); backdrop-filter: blur(8px); }
.btn-outline-soft:hover { border-color: var(--jd-primary-400); color: var(--jd-primary); background: #fff; transform: translateY(-2px); box-shadow: var(--jd-shadow); }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Badges / eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--jd-primary);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--jd-primary-100);
  padding: .45rem .9rem; border-radius: 999px;
  box-shadow: var(--jd-shadow-sm);
  backdrop-filter: blur(10px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jd-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); } 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, .06); } }

.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; margin: 1rem 0 .9rem; }
.section-head p { font-size: 1.1rem; color: var(--jd-body); margin: 0; }

/* ---------- Navbar ---------- */
.jd-navbar {
  padding: 18px 0;
  transition: all .35s var(--jd-ease);
  z-index: 1030;
}
.jd-navbar.is-scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(15, 31, 69, .06), 0 8px 30px -12px rgba(15, 31, 69, .12);
}
.jd-navbar .nav-link { color: var(--jd-ink); font-weight: 500; font-size: .95rem; padding: .5rem .9rem !important; border-radius: 10px; white-space: nowrap; }
.jd-navbar .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1299.98px) {
  .jd-navbar .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
}
.jd-navbar .nav-link:hover, .jd-navbar .nav-link.active { color: var(--jd-primary); background: var(--jd-primary-50); }
.jd-navbar .navbar-toggler { border: 1px solid var(--jd-border); border-radius: 12px; padding: .5rem .65rem; background: #fff; }
.jd-navbar .navbar-toggler:focus { box-shadow: 0 0 0 4px var(--jd-primary-100); }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--jd-gradient);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7);
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--jd-ink); letter-spacing: -.03em; }
.brand-name span { color: var(--jd-primary); }
.brand-tag { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--jd-muted); margin-top: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(6, 182, 212, .12), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; animation: blob 18s ease-in-out infinite alternate; }
.hero-blob.b1 { width: 460px; height: 460px; background: #bfdbfe; top: -120px; right: 8%; }
.hero-blob.b2 { width: 360px; height: 360px; background: #a5f3fc; bottom: 0; left: -80px; animation-delay: -6s; }
.hero-blob.b3 { width: 300px; height: 300px; background: #c7d2fe; top: 40%; right: -60px; animation-delay: -12s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.08); } 100% { transform: translate(-20px, 20px) scale(.96); } }

.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 220px; pointer-events: none; }
.hero-waves path { animation: wave 14s ease-in-out infinite alternate; transform-origin: center; }
.hero-waves path:nth-child(2) { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes wave { 0% { transform: translateX(0); } 100% { transform: translateX(-60px); } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 1.4rem 0 1.25rem;
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--jd-body); max-width: 560px; line-height: 1.65; }
.hero-trust { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; font-size: .9rem; color: var(--jd-muted); }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff;
  margin-left: -10px; box-shadow: var(--jd-shadow-sm);
}
.avatar-stack span:first-child { margin-left: 0; }
.hero-trust .stars { color: #f59e0b; font-size: .8rem; }
.store-badges { display: flex; gap: .6rem; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--jd-border); color: var(--jd-ink);
  box-shadow: var(--jd-shadow-sm); transition: all .25s var(--jd-ease);
}
.store-badge i { font-size: 1.35rem; color: var(--jd-primary); }
.store-badge small { display: block; font-size: .62rem; color: var(--jd-muted); line-height: 1; }
.store-badge strong { display: block; font-size: .9rem; line-height: 1.2; }
.store-badge:hover { transform: translateY(-2px); border-color: var(--jd-primary-400); color: var(--jd-ink); box-shadow: var(--jd-shadow); }

/* ---------- Device mockups ---------- */
.hero-visual { position: relative; min-height: 520px; perspective: 1800px; }
.laptop { position: relative; width: 100%; max-width: 680px; margin-left: auto; transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .8s var(--jd-ease); }
.hero-visual:hover .laptop { transform: rotateY(-3deg) rotateX(2deg); }
.laptop-screen {
  background: #0f1f45;
  border-radius: 18px 18px 6px 6px;
  padding: 12px 12px 14px;
  box-shadow: var(--jd-shadow-lg), 0 0 0 1px rgba(15, 31, 69, .08);
  position: relative;
}
.laptop-screen::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #334567; }
.laptop-base {
  height: 16px; margin: 0 -7%;
  background: linear-gradient(180deg, #e8eef8 0%, #c9d4e6 100%);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 20px 40px -12px rgba(15, 31, 69, .35);
  position: relative;
}
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 6px; transform: translateX(-50%); background: #b8c4d9; border-radius: 0 0 8px 8px; }

.app-window { background: #fff; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; flex-direction: column; font-size: 10px; color: var(--jd-body); }
.app-topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--jd-border); background: #fff; }
.app-topbar .mini-brand { display: flex; align-items: center; gap: 5px; font-weight: 800; color: var(--jd-ink); font-size: 11px; }
.app-topbar .mini-brand i { width: 16px; height: 16px; border-radius: 5px; background: var(--jd-gradient); color: #fff; display: grid; place-items: center; font-size: 8px; }
.app-topbar nav { display: flex; gap: 10px; margin-left: 10px; color: var(--jd-muted); font-weight: 500; }
.app-topbar nav span.active { color: var(--jd-primary); }
.app-topbar .login-pill { margin-left: auto; border: 1px solid var(--jd-border); border-radius: 6px; padding: 2px 8px; font-weight: 600; color: var(--jd-ink); }
.app-body { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 14px; background: linear-gradient(135deg, #f5f9ff, #eef6ff); position: relative; overflow: hidden; }
.app-hero-copy h4 { font-size: 20px; font-weight: 800; line-height: 1.08; margin: 4px 0 6px; letter-spacing: -.03em; }
.app-hero-copy p { font-size: 8.5px; margin: 0 0 8px; line-height: 1.5; }
.app-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--jd-border); border-radius: 8px; padding: 6px 8px; box-shadow: var(--jd-shadow-sm); color: var(--jd-muted); }
.app-search i { color: var(--jd-primary); }
.app-search b { margin-left: auto; background: var(--jd-gradient); color: #fff; border-radius: 5px; padding: 2px 7px; font-size: 8px; }
.app-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.app-chips span { background: #fff; border: 1px solid var(--jd-border); border-radius: 999px; padding: 2px 7px; font-size: 7.5px; font-weight: 500; }
.app-court-card { background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .9); border-radius: 10px; padding: 8px; box-shadow: var(--jd-shadow-sm); backdrop-filter: blur(6px); }
.app-court-card + .app-court-card { margin-top: 6px; }
.app-court-card .row-line { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--jd-ink); font-size: 8.5px; }
.app-court-card .row-line i { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--jd-primary-50); color: var(--jd-primary); font-size: 8px; }
.app-court-card small { display: block; font-size: 7px; color: var(--jd-muted); margin-top: 3px; }
.bar { height: 5px; border-radius: 99px; background: var(--jd-primary-100); margin-top: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--jd-gradient); }
.app-tools { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.app-tools div { background: #fff; border: 1px solid var(--jd-border); border-radius: 8px; padding: 6px 2px; text-align: center; font-size: 7px; font-weight: 600; color: var(--jd-ink); }
.app-tools i { display: block; color: var(--jd-primary); font-size: 11px; margin-bottom: 3px; }

.phone {
  position: absolute;
  width: 210px;
  left: 0; bottom: -10px;
  background: #0f1f45;
  border-radius: 36px;
  padding: 9px;
  box-shadow: var(--jd-shadow-lg), 0 0 0 1px rgba(15, 31, 69, .1);
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #1e2f57; z-index: 2; }
.phone-screen { background: #fff; border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 19; display: flex; flex-direction: column; font-size: 9px; }
.phone-status { display: flex; justify-content: space-between; padding: 8px 18px 4px; font-weight: 600; font-size: 8px; color: var(--jd-ink); }
.phone-head { padding: 8px 14px 10px; }
.phone-head .mini-brand { display: flex; align-items: center; gap: 5px; font-weight: 800; color: var(--jd-ink); font-size: 12px; }
.phone-head .mini-brand i { width: 18px; height: 18px; border-radius: 6px; background: var(--jd-gradient); color: #fff; display: grid; place-items: center; font-size: 8px; }
.phone-hero { margin: 0 12px; border-radius: 14px; padding: 12px; color: #fff; background: var(--jd-gradient); position: relative; overflow: hidden; }
.phone-hero::after { content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.phone-hero b { display: block; font-size: 11px; }
.phone-hero small { opacity: .85; font-size: 7.5px; }
.phone-menu { padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; }
.phone-menu div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--jd-border); color: var(--jd-ink); font-weight: 600; }
.phone-menu i.lead { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--jd-primary-50); color: var(--jd-primary); font-size: 9px; }
.phone-menu i.fa-chevron-right { margin-left: auto; color: var(--jd-muted); font-size: 7px; }
.phone-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 6px 12px; border-top: 1px solid var(--jd-border); color: var(--jd-muted); font-size: 11px; }
.phone-nav .active { color: var(--jd-primary); }

.float-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--jd-shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .8rem; color: var(--jd-ink); font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--jd-primary-50); color: var(--jd-primary); }
.float-chip small { display: block; font-weight: 500; color: var(--jd-muted); font-size: .7rem; }
.float-chip.c1 { top: 4%; right: -2%; animation-delay: -1s; }
.float-chip.c2 { top: 44%; right: -4%; animation-delay: -3s; }
.float-chip.c3 { bottom: 6%; right: 18%; animation-delay: -2s; }
.float-chip.c4 { top: -5%; left: 6%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-visual-img { min-height: 0; padding: 4% 0 10%; }
.hero-laptop { display: block; width: 112%; margin-right: -10%; transition: transform .8s var(--jd-ease); }
.hero-laptop img, .hero-phones img, .showcase-phones img { display: block; width: 100%; height: auto; }
.hero-laptop img { filter: drop-shadow(0 30px 45px rgba(30, 64, 175, .18)); }
.hero-visual-img:hover .hero-laptop { transform: translateY(-4px); }
.hero-phones {
  position: absolute; z-index: 3;
  width: 36%; left: -9%; bottom: 0;
  filter: drop-shadow(0 24px 30px rgba(15, 31, 69, .22));
  animation: floaty 7s ease-in-out infinite;
}
.hero-visual-img .float-chip.c1 { top: 0; right: -4%; }
.hero-visual-img .float-chip.c3 { bottom: 4%; right: 6%; }
.showcase-phones { display: block; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(30, 64, 175, .16)); }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: -30px; position: relative; z-index: 5; }
.stats-card {
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--jd-radius-lg);
  box-shadow: var(--jd-shadow-lg);
  backdrop-filter: blur(20px);
  padding: 2rem 1rem;
}
.stat { text-align: center; padding: .75rem 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--jd-border); }
.stat-icon { width: 52px; height: 52px; margin: 0 auto .85rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: var(--jd-primary); background: var(--jd-gradient-soft); border: 1px solid var(--jd-primary-100); }
.stat-value { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--jd-ink); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: .92rem; color: var(--jd-body); margin-top: .45rem; font-weight: 500; }

/* ---------- Feature cards ---------- */
.feature-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--jd-border);
  border-radius: var(--jd-radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--jd-ease), box-shadow .35s var(--jd-ease), border-color .35s var(--jd-ease);
}
.feature-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 160px at 0% 0%, rgba(37, 99, 235, .08), transparent 70%);
  opacity: 0; transition: opacity .35s var(--jd-ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--jd-shadow-lg); border-color: var(--jd-primary-100); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.35rem;
  color: var(--jd-primary);
  background: var(--jd-gradient-soft);
  border: 1px solid var(--jd-primary-100);
  margin-bottom: 1.25rem;
  transition: all .35s var(--jd-ease);
  position: relative; z-index: 1;
}
.feature-card:hover .feature-icon { background: var(--jd-gradient); color: #fff; border-color: transparent; transform: scale(1.06) rotate(-4deg); box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .6); }
.feature-card h3 { font-size: 1.12rem; margin-bottom: .55rem; position: relative; z-index: 1; }
.feature-card p { font-size: .94rem; margin: 0; line-height: 1.6; position: relative; z-index: 1; }

/* ---------- Showcase ---------- */
.showcase { background: linear-gradient(180deg, #fff 0%, var(--jd-soft) 100%); }
.showcase-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: .4rem; background: #fff; border: 1px solid var(--jd-border); border-radius: 16px; box-shadow: var(--jd-shadow-sm); }
.showcase-tabs .nav-link { border-radius: 12px; color: var(--jd-body); font-weight: 600; font-size: .92rem; padding: .6rem 1.1rem; display: flex; align-items: center; gap: .5rem; }
.showcase-tabs .nav-link:hover { color: var(--jd-primary); background: var(--jd-primary-50); }
.showcase-tabs .nav-link.active { background: var(--jd-gradient); color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .6); }
.showcase-stage { margin-top: 3rem; }
.showcase-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .85rem; color: var(--jd-body); }
.check-list li i { width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--jd-primary-50); color: var(--jd-primary); font-size: .72rem; margin-top: 1px; }
.screen-frame {
  background: #fff; border-radius: 20px; border: 1px solid var(--jd-border);
  box-shadow: var(--jd-shadow-lg); overflow: hidden;
}
.screen-frame .chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--jd-border); background: #fafcff; }
.screen-frame .chrome span { width: 10px; height: 10px; border-radius: 50%; background: #dbe4f3; }
.screen-frame .chrome .url { margin-left: 12px; flex: 1; max-width: 320px; height: 24px; border-radius: 8px; background: #fff; border: 1px solid var(--jd-border); font-size: .72rem; color: var(--jd-muted); display: flex; align-items: center; padding: 0 10px; gap: 6px; width: auto; }
.screen-body { padding: 1.4rem; font-size: .86rem; }
.mock-card { border: 1px solid var(--jd-border); border-radius: 14px; padding: 1rem; background: #fff; }
.mock-card + .mock-card { margin-top: .75rem; }
.mock-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jd-primary); }
.mock-title { font-weight: 700; color: var(--jd-ink); font-size: .95rem; margin: .25rem 0; }
.mock-meta { font-size: .75rem; color: var(--jd-muted); }
.mock-line { height: 8px; border-radius: 99px; background: #edf2fa; margin-top: 8px; }
.mock-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--jd-primary-50); color: var(--jd-primary); }
.mock-pill.green { background: #ecfdf5; color: #059669; }
.mock-pill.amber { background: #fffbeb; color: #d97706; }
.mock-pill.rose { background: #fff1f2; color: #e11d48; }
.ai-glow { position: relative; border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--jd-gradient) border-box; }
.graph { position: relative; height: 260px; }
.graph .node {
  position: absolute; transform: translate(-50%, -50%);
  padding: .45rem .7rem; border-radius: 12px; font-size: .72rem; font-weight: 600;
  background: #fff; border: 1px solid var(--jd-border); box-shadow: var(--jd-shadow-sm); color: var(--jd-ink); white-space: nowrap;
}
.graph .node.core { background: var(--jd-gradient); color: #fff; border: 0; padding: .7rem 1rem; font-size: .8rem; box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .7); }
.graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph svg line { stroke: #bfd3f5; stroke-width: 1.5; stroke-dasharray: 4 4; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.diary-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--jd-border); }
.diary-row:last-child { border-bottom: 0; }
.diary-date { width: 52px; text-align: center; border-radius: 12px; background: var(--jd-primary-50); color: var(--jd-primary); padding: .35rem 0; flex-shrink: 0; }
.diary-date b { display: block; font-size: 1.1rem; line-height: 1; color: var(--jd-ink); }
.diary-date small { font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.showcase-phone { position: relative; width: 250px; margin: 0 auto; animation: none; left: auto; bottom: auto; }

/* ---------- Why choose ---------- */
.why-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--jd-radius);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--jd-border);
  backdrop-filter: blur(10px);
  transition: all .35s var(--jd-ease); height: 100%;
}
.why-card:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--jd-shadow); border-color: var(--jd-primary-100); }
.why-card .icon { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--jd-gradient); color: #fff; font-size: 1.15rem; box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .7); }
.why-card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.why-card p { margin: 0; font-size: .93rem; }
.why-panel {
  border-radius: var(--jd-radius-lg);
  background: var(--jd-gradient);
  color: #fff; padding: 2.5rem; position: relative; overflow: hidden;
  box-shadow: var(--jd-shadow-lg);
}
.why-panel::before, .why-panel::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.why-panel::before { width: 260px; height: 260px; top: -90px; right: -70px; }
.why-panel::after { width: 180px; height: 180px; bottom: -70px; left: -50px; }
.why-panel h3 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.why-panel p { color: rgba(255, 255, 255, .88); }
.why-panel .metric { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); border-radius: 16px; padding: 1rem; backdrop-filter: blur(8px); position: relative; z-index: 1; }
.why-panel .metric b { display: block; font-size: 1.6rem; font-weight: 800; }
.why-panel .metric small { opacity: .85; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  height: 100%; background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius);
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: all .35s var(--jd-ease); position: relative;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--jd-shadow-lg); border-color: var(--jd-primary-100); }
.testimonial-card .quote-icon { position: absolute; top: 1.4rem; right: 1.5rem; font-size: 2rem; color: var(--jd-primary-100); }
.testimonial-card .stars { color: #f59e0b; font-size: .85rem; margin-bottom: 1rem; }
.testimonial-card blockquote { color: var(--jd-ink); font-size: .98rem; line-height: 1.7; margin: 0 0 1.5rem; flex: 1; }
.person { display: flex; align-items: center; gap: .85rem; }
.person-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--jd-gradient); }
.person b { display: block; color: var(--jd-ink); font-size: .95rem; }
.person small { color: var(--jd-muted); font-size: .82rem; }

/* ---------- Pricing ---------- */
.pricing-card {
  height: 100%; background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius-lg);
  padding: 2.25rem 2rem; position: relative; display: flex; flex-direction: column;
  transition: all .35s var(--jd-ease);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--jd-shadow-lg); }
.pricing-card.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--jd-gradient) border-box; box-shadow: var(--jd-shadow-lg); }
.pricing-card .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--jd-gradient); color: #fff; font-size: .74rem; font-weight: 700; padding: .35rem .9rem; border-radius: 999px; box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .7); white-space: nowrap; }
.pricing-card .plan-cycle { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jd-primary); }
.pricing-card .plan-name { font-size: 1.4rem; margin: .4rem 0 .3rem; }
.pricing-card .plan-tag { font-size: .92rem; min-height: 2.8em; }
.price { display: flex; align-items: flex-end; gap: .3rem; margin: 1.25rem 0 .25rem; }
.price .amount { font-size: 2.9rem; font-weight: 800; color: var(--jd-ink); letter-spacing: -.04em; line-height: 1; }
.price .currency { font-size: 1.4rem; font-weight: 700; color: var(--jd-ink); align-self: flex-start; margin-top: .3rem; }
.price .per { color: var(--jd-muted); font-weight: 500; margin-bottom: .35rem; }
.price-note { font-size: .82rem; color: var(--jd-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; flex: 1; }
.pricing-card li { display: flex; gap: .65rem; margin-bottom: .75rem; font-size: .94rem; color: var(--jd-body); }
.pricing-card li i { color: var(--jd-primary); margin-top: .25rem; font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--jd-border); border-radius: 16px !important; margin-bottom: .85rem; overflow: hidden; background: #fff; transition: box-shadow .3s var(--jd-ease); }
.faq .accordion-item:hover { box-shadow: var(--jd-shadow-sm); }
.faq .accordion-button { font-weight: 600; color: var(--jd-ink); padding: 1.2rem 1.4rem; background: #fff; box-shadow: none !important; }
.faq .accordion-button:not(.collapsed) { color: var(--jd-primary); background: var(--jd-primary-50); }
.faq .accordion-body { padding: 0 1.4rem 1.3rem; background: var(--jd-primary-50); line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-card {
  border-radius: 32px; padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(6, 182, 212, .45), transparent 60%),
    linear-gradient(135deg, #2563eb 0%, #3b82f6 60%, #0ea5e9 100%);
  box-shadow: var(--jd-shadow-lg);
}
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.cta-card p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 620px; margin: 1rem auto 2rem; }
.cta-card .btn-white { background: #fff; color: var(--jd-primary); border: 0; box-shadow: 0 12px 24px -10px rgba(15, 31, 69, .35); }
.cta-card .btn-white:hover { transform: translateY(-2px); color: var(--jd-primary-600); }
.cta-card .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; transform: translateY(-2px); }

/* ---------- Footer (light) ---------- */
.jd-footer { background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%); border-top: 1px solid var(--jd-border); padding: 80px 0 28px; }
.jd-footer h6 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jd-ink); margin-bottom: 1.1rem; }
.jd-footer ul { list-style: none; padding: 0; margin: 0; }
.jd-footer li { margin-bottom: .65rem; }
.jd-footer a { color: var(--jd-body); font-size: .94rem; }
.jd-footer a:hover { color: var(--jd-primary); }
.social { display: flex; gap: .5rem; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--jd-border); color: var(--jd-body); transition: all .25s var(--jd-ease); }
.social a:hover { background: var(--jd-gradient); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: 0 10px 18px -8px rgba(37, 99, 235, .6); }
.footer-bottom { border-top: 1px solid var(--jd-border); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; color: var(--jd-muted); }
.trust-pills { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.trust-pills span { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; color: var(--jd-body); }
.trust-pills i { color: var(--jd-primary); }

/* ---------- Inner pages ---------- */
.page-hero {
  padding: 150px 0 70px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(59, 130, 246, .16), transparent 65%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; margin: 1rem 0; }
.page-hero p { font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; font-size: 1rem; line-height: 1.8; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.prose ul { padding-left: 1.2rem; }
.glass-card { background: rgba(255, 255, 255, .85); border: 1px solid var(--jd-border); border-radius: var(--jd-radius-lg); box-shadow: var(--jd-shadow); backdrop-filter: blur(16px); }
.info-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--jd-radius); border: 1px solid var(--jd-border); background: #fff; transition: all .3s var(--jd-ease); }
.info-tile:hover { box-shadow: var(--jd-shadow); transform: translateY(-3px); }
.info-tile i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--jd-primary-50); color: var(--jd-primary); flex-shrink: 0; font-size: 1.1rem; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 12px; border: 1px solid var(--jd-border); padding: .75rem 1rem; color: var(--jd-ink);
  transition: border-color .2s var(--jd-ease), box-shadow .2s var(--jd-ease); background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--jd-primary-400); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.form-label { font-weight: 600; color: var(--jd-ink); font-size: .9rem; margin-bottom: .4rem; }
.form-check-input:checked { background-color: var(--jd-primary); border-color: var(--jd-primary); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--jd-muted); pointer-events: none; z-index: 5; }
.input-icon > .form-control { padding-left: 2.7rem; }
.input-icon .toggle-pass { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--jd-muted); padding: .35rem .5rem; z-index: 5; }
.input-icon .invalid-feedback { position: static; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(6, 182, 212, .35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #0ea5e9 100%);
  color: #fff;
}
.auth-side h2 { color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1.15; }
.auth-side p { color: rgba(255, 255, 255, .88); }
.auth-side .brand-name, .auth-side .brand-name span, .auth-side .brand-tag { color: #fff; }
.auth-side .brand-mark { background: rgba(255, 255, 255, .2); box-shadow: none; border: 1px solid rgba(255, 255, 255, .35); }
.auth-side .glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 1.25rem; backdrop-filter: blur(10px); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: linear-gradient(180deg, #f9fbff, #fff); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--jd-muted); font-size: .82rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--jd-border); }

/* ---------- Account area ---------- */
.account-shell { padding: 120px 0 60px; background: linear-gradient(180deg, #f7faff, #fff 40%); min-height: 100vh; }
.dash-card { background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); padding: 1.5rem; box-shadow: var(--jd-shadow-sm); height: 100%; }
.dash-stat .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--jd-primary-50); color: var(--jd-primary); font-size: 1.1rem; }
.dash-stat b { font-size: 1.6rem; color: var(--jd-ink); font-weight: 800; letter-spacing: -.02em; }
.plan-banner { border-radius: var(--jd-radius-lg); padding: 2rem; background: var(--jd-gradient); color: #fff; position: relative; overflow: hidden; box-shadow: var(--jd-shadow-lg); }
.plan-banner::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -60px; top: -80px; }
.plan-banner h2, .plan-banner h3 { color: #fff; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--jd-ease), transform .8s var(--jd-ease); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--jd-gradient); color: #fff; box-shadow: var(--jd-shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--jd-ease); z-index: 1040; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* SweetAlert theming */
.swal2-popup { border-radius: 22px !important; font-family: var(--bs-body-font-family) !important; }
.swal2-title { color: var(--jd-ink) !important; font-weight: 700 !important; }
.swal2-styled.swal2-confirm { background: var(--jd-gradient) !important; border-radius: 12px !important; font-weight: 600 !important; }
.swal2-styled.swal2-cancel { border-radius: 12px !important; background: #eef2f8 !important; color: var(--jd-ink) !important; font-weight: 600 !important; }

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
  .hero-visual .phone { left: -4%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-visual .phone { scale: .72; transform-origin: bottom left; left: -6%; bottom: 10px; }
  .float-chip.c4 { display: none; }
  .float-chip.c2 { right: 0; }
  .float-chip.c3 { right: 6%; }
}
@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 70px; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-trust, .hero .d-flex.flex-wrap, .hero .store-badges { justify-content: center; }
  .hero-visual { margin-top: 3.5rem; min-height: auto; padding-bottom: 40px; }
  .laptop { transform: none; margin: 0 auto; max-width: 620px; }
  .hero-visual:hover .laptop { transform: none; }
  .hero-visual .phone { scale: .72; transform-origin: bottom left; left: 2%; bottom: -20px; }
  .float-chip.c4, .float-chip.c2 { display: none; }
  .float-chip.c1 { top: -18px; right: 2%; }
  .float-chip.c3 { bottom: -10px; right: 4%; }
  .hero-visual-img { max-width: 640px; margin: 2.5rem auto 0; padding: 0 0 8%; }
  .hero-laptop { width: 100%; margin: 0; }
  .hero-phones { width: 34%; left: -2%; }
  .hero-visual-img .float-chip.c1 { top: -18px; right: 0; }
  .hero-visual-img .float-chip.c3 { bottom: 0; right: 2%; }
  .stat:nth-child(3)::before { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .jd-navbar .navbar-collapse { background: #fff; border: 1px solid var(--jd-border); border-radius: 18px; padding: 1rem; margin-top: .75rem; box-shadow: var(--jd-shadow); }
  .jd-navbar:not(.is-scrolled) { background: rgba(255, 255, 255, .7); backdrop-filter: blur(12px); }
}
@media (max-width: 767.98px) {
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(2)::before, .stat:nth-child(4)::before { display: block; }
  .app-body { grid-template-columns: 1fr; }
  .app-body > div:nth-child(2) { display: none; }
  .app-tools { grid-template-columns: repeat(3, 1fr); }
  .app-hero-copy h4 { font-size: 16px; }
  .showcase-tabs .nav-link span { display: none; }
  .cta-card { padding: 3rem 1.25rem; border-radius: 24px; }
  .pricing-card { padding: 2rem 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero-visual .phone { scale: .6; }
  .float-chip { font-size: .72rem; padding: .45rem .6rem; }
  .float-chip i { width: 26px; height: 26px; }
  .stats-card { padding: 1.25rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
