/* ============================
   JIEDAX BRAND THEME
   Colors: Deep Teal #1A5C78 | Red #E63946 | Dark Grey #555 | Light Grey #999
   Logo concept: Target board — precision, speed, accuracy
   ============================ */

/* --- Brand CSS Custom Properties --- */
:root {
  --jx-teal: #1A5C78;
  --jx-teal-light: #2478A0;
  --jx-teal-dark: #133E54;
  --jx-teal-faint: #1A5C7815;
  --jx-red: #E63946;
  --jx-red-light: #FF4D5A;
  --jx-red-faint: #E6394615;
  --jx-grey-dark: #333333;
  --jx-grey: #555555;
  --jx-grey-mid: #888888;
  --jx-grey-light: #BBBBBB;
  --jx-grey-faint: #F0F2F5;
  --jx-white: #FFFFFF;
  --jx-bg: #FAFBFC;
  --jx-bg-dark: #0D1117;
  --jx-bg-card: #FFFFFF;
  --jx-bg-card-dark: #161B22;
}

/* --- Global Reset --- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--jx-bg);
  color: var(--jx-grey-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* --- Brand Gradient Text --- */
.jx-gradient-text {
  background: linear-gradient(135deg, var(--jx-teal), var(--jx-teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jx-gradient-text-red {
  background: linear-gradient(135deg, var(--jx-red), var(--jx-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Brand Backgrounds --- */
.jx-bg-teal {
  background-color: var(--jx-teal);
  color: var(--jx-white);
}

.jx-bg-teal-gradient {
  background: linear-gradient(135deg, var(--jx-teal-dark), var(--jx-teal), var(--jx-teal-light));
  color: var(--jx-white);
}

.jx-bg-teal-faint {
  background-color: var(--jx-teal-faint);
}

.jx-bg-red {
  background-color: var(--jx-red);
  color: var(--jx-white);
}

.jx-bg-red-faint {
  background-color: var(--jx-red-faint);
}

.jx-bg-page {
  background-color: var(--jx-bg);
}

.jx-bg-card {
  background-color: var(--jx-bg-card);
}

.jx-bg-grey-faint {
  background-color: var(--jx-grey-faint);
}

/* --- Brand Text Colors --- */
.jx-text-teal { color: var(--jx-teal); }
.jx-text-red { color: var(--jx-red); }
.jx-text-dark { color: var(--jx-grey-dark); }
.jx-text-grey { color: var(--jx-grey); }
.jx-text-mid { color: var(--jx-grey-mid); }
.jx-text-light { color: var(--jx-grey-light); }
.jx-text-white { color: var(--jx-white); }

/* --- Brand Borders --- */
.jx-border-teal { border-color: var(--jx-teal); }
.jx-border-red { border-color: var(--jx-red); }
.jx-border-light { border-color: #E5E7EB; }
.jx-border-faint { border-color: #F0F2F5; }

/* --- Navbar --- */
.jx-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #E5E7EB;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.jx-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* --- Target Motif (Bullseye) --- */
.jx-target {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jx-target-ring {
  width: 48px;
  height: 48px;
  border: 4px solid var(--jx-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jx-target-dot {
  width: 14px;
  height: 14px;
  background-color: var(--jx-red);
  border-radius: 50%;
}

.jx-target-ring-sm {
  width: 32px;
  height: 32px;
  border: 3px solid var(--jx-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jx-target-dot-sm {
  width: 9px;
  height: 9px;
  background-color: var(--jx-red);
  border-radius: 50%;
}

.jx-target-ring-lg {
  width: 80px;
  height: 80px;
  border: 6px solid var(--jx-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jx-target-dot-lg {
  width: 22px;
  height: 22px;
  background-color: var(--jx-red);
  border-radius: 50%;
}

/* --- Buttons --- */
.jx-btn-primary {
  background: linear-gradient(135deg, var(--jx-teal), var(--jx-teal-light));
  color: var(--jx-white);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.jx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 92, 120, 0.35);
}

.jx-btn-outline {
  background: transparent;
  color: var(--jx-teal);
  border: 2px solid var(--jx-teal);
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.jx-btn-outline:hover {
  background-color: var(--jx-teal-faint);
  transform: translateY(-2px);
}

.jx-btn-red {
  background: linear-gradient(135deg, var(--jx-red), var(--jx-red-light));
  color: var(--jx-white);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Cards --- */
.jx-card {
  background: var(--jx-bg-card);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.jx-card:hover {
  border-color: var(--jx-teal);
  box-shadow: 0 8px 30px rgba(26, 92, 120, 0.08);
  transform: translateY(-2px);
}

.jx-card-teal {
  background: var(--jx-bg-card);
  border: 2px solid var(--jx-teal);
  border-radius: 16px;
  padding: 28px;
}

.jx-card-featured {
  background: linear-gradient(135deg, var(--jx-teal-dark), var(--jx-teal));
  border: 2px solid var(--jx-teal-light);
  border-radius: 16px;
  padding: 28px;
  color: var(--jx-white);
}

/* --- Icon Container --- */
.jx-icon-teal {
  width: 48px;
  height: 48px;
  background: var(--jx-teal-faint);
  border: 1px solid rgba(26, 92, 120, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jx-teal);
}

.jx-icon-red {
  width: 48px;
  height: 48px;
  background: var(--jx-red-faint);
  border: 1px solid rgba(230, 57, 70, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jx-red);
}

.jx-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* --- Stats --- */
.jx-stat {
  text-align: center;
}

.jx-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--jx-teal);
  line-height: 1;
}

.jx-stat-label {
  font-size: 0.8rem;
  color: var(--jx-grey-mid);
  margin-top: 4px;
}

/* --- Section Styling --- */
.jx-section {
  padding: 80px 0;
}

.jx-section-alt {
  padding: 80px 0;
  background: var(--jx-grey-faint);
}

.jx-section-teal {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--jx-teal-dark), var(--jx-teal));
  color: var(--jx-white);
}

.jx-section-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jx-teal);
  margin-bottom: 8px;
}

.jx-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--jx-grey-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.jx-section-subtitle {
  font-size: 1.05rem;
  color: var(--jx-grey-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Badge/Tag --- */
.jx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.jx-badge-teal {
  background: var(--jx-teal-faint);
  color: var(--jx-teal);
  border: 1px solid rgba(26, 92, 120, 0.2);
}

.jx-badge-red {
  background: var(--jx-red-faint);
  color: var(--jx-red);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.jx-badge-white {
  background: rgba(255,255,255,0.15);
  color: var(--jx-white);
  border: 1px solid rgba(255,255,255,0.25);
}

/* --- Pricing Toggle --- */
.jx-toggle-track {
  width: 240px;
  height: 44px;
  background: var(--jx-grey-faint);
  border: 1px solid #E5E7EB;
  border-radius: 22px;
  position: relative;
  display: flex;
  cursor: pointer;
}

.jx-toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jx-grey-mid);
  z-index: 1;
  transition: color 0.3s;
}

.jx-toggle-option.active {
  color: var(--jx-white);
}

.jx-toggle-slider {
  position: absolute;
  top: 3px;
  width: calc(50% - 3px);
  height: 38px;
  background: linear-gradient(135deg, var(--jx-teal), var(--jx-teal-light));
  border-radius: 19px;
  transition: left 0.3s ease;
  box-shadow: 0 2px 8px rgba(26, 92, 120, 0.25);
}

.jx-toggle-slider.left { left: 3px; }
.jx-toggle-slider.right { left: calc(50%); }

/* --- CTA Section --- */
.jx-cta {
  background: linear-gradient(135deg, var(--jx-teal-dark), var(--jx-teal), var(--jx-teal-light));
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  color: var(--jx-white);
  position: relative;
  overflow: hidden;
}

.jx-cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(255,255,255,0.03);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.jx-cta::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--jx-red);
  border-radius: 50%;
  top: 40px;
  right: 72px;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.jx-float {
  animation: float 4s ease-in-out infinite;
}

.jx-fade-in {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* --- Portal Tabs --- */
.jx-tab {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--jx-grey-mid);
  background: transparent;
  border: 1px solid transparent;
}

.jx-tab:hover {
  color: var(--jx-teal);
  background: var(--jx-teal-faint);
}

.jx-tab.active {
  color: var(--jx-white);
  background: linear-gradient(135deg, var(--jx-teal), var(--jx-teal-light));
  border-color: transparent;
}

/* --- Filter Pills --- */
.jx-pill {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--jx-grey-mid);
  background: var(--jx-grey-faint);
  border: 1px solid #E5E7EB;
}

.jx-pill:hover {
  border-color: var(--jx-teal);
  color: var(--jx-teal);
}

.jx-pill.active {
  background: var(--jx-teal);
  color: var(--jx-white);
  border-color: var(--jx-teal);
}

/* --- Flywheel --- */
.jx-flywheel-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.jx-flywheel-step:hover {
  background: var(--jx-teal-faint);
}

.jx-flywheel-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--jx-teal), var(--jx-teal-light));
  color: var(--jx-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .jx-section { padding: 48px 0; }
  .jx-section-alt { padding: 48px 0; }
  .jx-section-title { font-size: 1.75rem; }
  .jx-cta { padding: 40px 24px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--jx-grey-faint); }
::-webkit-scrollbar-thumb { background: var(--jx-grey-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--jx-grey-mid); }

/* --- Checklist --- */
.jx-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--jx-grey);
}

.jx-check-icon {
  width: 18px;
  height: 18px;
  color: var(--jx-teal);
  flex-shrink: 0;
}

/* --- Divider with target --- */
.jx-divider-target {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.jx-divider-line {
  height: 1px;
  flex: 1;
  background: #E5E7EB;
}
