/* ============================================================
   EVERXP PRIMARY STYLES
   Depends on: design-system.css (loaded before this file)
   ============================================================ */

/* ---- Override styles.min.css body defaults ---- */
body {
  font-family: var(--font-body) !important;
  background-color: var(--xp-white) !important;
  color: var(--xp-navy-dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm) !important;
  padding: 12px 28px;
  border: 2px solid transparent;
  transition: all var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  text-decoration: none;
}

/* Primary — Gold CTA (main conversion button) */
.btn-xp-primary {
  background-color: var(--xp-gold);
  color: var(--xp-navy-dark);
  border-color: var(--xp-gold);
  box-shadow: var(--shadow-gold);
}
.btn-xp-primary:hover,
.btn-xp-primary:focus,
.btn-xp-primary:active,
.btn-xp-primary:visited {
  background-color: var(--xp-gold-dark);
  border-color: var(--xp-gold-dark);
  color: var(--xp-navy-dark);
  box-shadow: 0 6px 32px rgba(245, 197, 24, 0.50);
  transform: translateY(-1px);
}

/* Primary Two — Navy solid */
.btn-xp-primary-two {
  background-color: var(--xp-navy);
  color: var(--xp-white);
  border-color: var(--xp-navy);
}
.btn-xp-primary-two:hover,
.btn-xp-primary-two:active,
.btn-xp-primary-two:visited {
  background-color: var(--xp-navy-mid);
  border-color: var(--xp-navy-mid);
  color: var(--xp-white);
  transform: translateY(-1px);
}

/* Secondary — Navy outline */
.btn-xp-secondary {
  background-color: transparent;
  color: var(--xp-navy);
  border-color: var(--xp-border);
}
.btn-xp-secondary:hover,
.btn-xp-secondary:active,
.btn-xp-secondary:visited {
  background-color: var(--xp-light);
  border-color: var(--xp-navy);
  color: var(--xp-navy);
}

/* Ghost — for dark backgrounds */
.btn-xp-ghost {
  background-color: transparent;
  color: var(--xp-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-xp-ghost:hover,
.btn-xp-ghost:active {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--xp-white);
}

/* Info / outline light */
.btn-xp-info {
  background-color: var(--xp-navy);
  color: var(--xp-white);
  border-color: var(--xp-navy);
}
.btn-xp-info:hover,
.btn-xp-info:active,
.btn-xp-info:visited {
  background-color: var(--xp-navy-mid);
  color: var(--xp-white);
}

/* Warning — maps to gold */
.btn-xp-warning {
  background-color: var(--xp-gold);
  color: var(--xp-navy-dark);
  border-color: var(--xp-gold);
}
.btn-xp-warning:hover,
.btn-xp-warning:active,
.btn-xp-warning:visited {
  background-color: var(--xp-gold-dark);
  color: var(--xp-navy-dark);
}

/* Size variants */
.btn-lg {
  padding: 15px 36px;
  font-size: var(--text-base);
}
.btn-sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
}

/* ============================================================
   BACKGROUNDS
   ============================================================ */

.bg-xp-primary {
  background-color: var(--xp-navy) !important;
  border-color: var(--xp-navy-mid) !important;
}

.bg-xp-dark {
  background-color: var(--xp-navy-dark) !important;
}

.bg-xp-button-primary {
  background-color: var(--xp-gold) !important;
  border-color: var(--xp-gold-dark) !important;
}

.bg-xp-secondary {
  background-color: var(--xp-light) !important;
  border-color: var(--xp-border) !important;
}

.bg-xp-info {
  background-color: var(--xp-navy-mid) !important;
  border-color: var(--xp-navy) !important;
}

.bg-xp-warning {
  background-color: var(--xp-gold) !important;
  border-color: var(--xp-gold-dark) !important;
}

/* ============================================================
   TEXT COLORS
   ============================================================ */

.text-xp-primary   { color: var(--xp-navy); }
.text-xp-secondary { color: var(--xp-muted); }
.text-xp-info      { color: var(--xp-navy-mid); }
.text-xp-warning   { color: var(--xp-gold-dark); }
.text-xp-gold      { color: var(--xp-gold); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  padding: var(--space-4) 0;
}

.navbar-brand img,
.navbar-brand object {
  height: 58px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--xp-navy);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--ease-default), background-color var(--ease-default);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--xp-navy);
  background-color: var(--xp-light);
}

.navbar-nav li {
  padding-right: var(--space-1);
}

.dropdown-item {
  font-size: var(--text-sm);
  color: var(--xp-navy);
  padding: var(--space-2) var(--space-4);
  transition: background-color var(--ease-fast), color var(--ease-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--xp-light);
  color: var(--xp-navy);
}

.dropdown-item:active {
  background-color: var(--xp-navy);
  color: var(--xp-white);
}

.dropdown-header {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xp-gold-dark) !important;
  padding: var(--space-3) var(--space-4) var(--space-2);
}

.dropdown-menu {
  border: 1px solid var(--xp-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   HIGHLIGHT / DEMO BLOCK (dark navy section)
   ============================================================ */

.highlight-blue {
  color: var(--xp-white);
  padding: var(--space-16) var(--space-8);
  border-radius: var(--radius-lg);
  background-color: var(--xp-navy);
}

.highlight-blue p {
  color: rgba(255, 255, 255, 0.75);
}

.highlight-blue h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  color: var(--xp-white);
  margin-bottom: var(--space-6);
}

.highlight-blue small {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.highlight-blue a {
  color: var(--xp-gold);
}

.highlight-blue .intro {
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  border: 1px solid var(--xp-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow var(--ease-smooth), transform var(--ease-smooth);
}

.card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--xp-navy);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  border-radius: var(--radius-full) !important;
  padding: 4px 10px;
}

.badge.bg-primary,
.badge.bg-xp-warning {
  background-color: var(--xp-gold) !important;
  color: var(--xp-navy-dark) !important;
}

.badge.bg-xp-info {
  background-color: var(--xp-navy-mid) !important;
  color: var(--xp-white) !important;
}

/* ============================================================
   TIMELINE (Analytics section)
   ============================================================ */

.timeline-steps,
.timeline-steps-muted {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.timeline-steps .timeline-step,
.timeline-steps-muted .timeline-step {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 1rem;
}

@media (min-width: 768px) {
  .timeline-steps .timeline-step:not(:last-child)::after {
    content: "";
    display: block;
    border-top: 0.25rem dotted var(--xp-gold);
    width: 3.46rem;
    position: absolute;
    left: 7.5rem;
    top: 0.3125rem;
  }
  .timeline-steps-muted .timeline-step:not(:last-child)::after {
    content: "";
    display: block;
    border-top: 0.25rem dotted var(--xp-border);
    width: 3.46rem;
    position: absolute;
    left: 7.5rem;
    top: 0.3125rem;
  }
  .timeline-steps .timeline-step:not(:first-child)::before {
    content: "";
    display: block;
    border-top: 0.25rem dotted var(--xp-gold);
    width: 3.8125rem;
    position: absolute;
    right: 7.5rem;
    top: 0.3125rem;
  }
  .timeline-steps-muted .timeline-step:not(:first-child)::before {
    content: "";
    display: block;
    border-top: 0.25rem dotted var(--xp-border);
    width: 3.8125rem;
    position: absolute;
    right: 7.5rem;
    top: 0.3125rem;
  }
}

.timeline-steps .timeline-content,
.timeline-steps-muted .timeline-content {
  width: 10rem;
  text-align: center;
}

.timeline-steps .timeline-content .inner-circle {
  border-radius: 1.5rem;
  height: 1rem;
  width: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--xp-gold);
}

.timeline-steps-muted .timeline-content .inner-circle {
  border-radius: 1.5rem;
  height: 1rem;
  width: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--xp-border);
}

.timeline-steps .timeline-content .inner-circle::before {
  content: "";
  background-color: var(--xp-gold);
  display: inline-block;
  height: 3rem;
  width: 3rem;
  min-width: 3rem;
  border-radius: 6.25rem;
  opacity: 0.2;
}

.timeline-steps-muted .timeline-content .inner-circle::before {
  content: "";
  background-color: var(--xp-border);
  display: inline-block;
  height: 3rem;
  width: 3rem;
  min-width: 3rem;
  border-radius: 6.25rem;
  opacity: 0.4;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */

.pricing-table-wrapper {
  max-width: 71rem;
  margin: 0 auto;
}

.pricing-table {
  --pricing-table-color: var(--xp-navy);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
  gap: 2em;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
}

.pricing-table__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--xp-white);
  padding: 2em;
  border-radius: var(--radius-xl);
  border: 1px solid var(--xp-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease-smooth), transform var(--ease-smooth);
}

.pricing-table__item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pricing-table__item--popular::before {
  position: absolute;
  content: attr(data-popular);
  top: 2em;
  right: 2em;
  font-size: 0.9em;
  padding: 0 1em;
  background-color: var(--xp-gold);
  border-radius: var(--radius-full);
  color: var(--xp-navy-dark);
  font-weight: var(--weight-bold);
}

.pricing-table__price {
  color: var(--xp-navy);
  font-size: 2em;
  margin: 1em auto 0;
  font-weight: var(--weight-extrabold);
}

.pricing-table__product::before {
  content: " ";
  width: 0.5em;
  height: 0.5em;
  margin-inline-end: 1em;
  border-radius: 50%;
  background-color: var(--xp-gold);
}

.pricing-table__button {
  background: var(--xp-navy);
  border: 1px solid var(--xp-navy);
  color: var(--xp-white);
  margin-top: auto;
  padding: 1em 2em;
  text-decoration: none;
  width: 100%;
  border-radius: var(--radius-full);
  text-align: center;
  transition: background var(--ease-default);
  font-weight: var(--weight-semibold);
}

.pricing-table__button:hover {
  background-color: var(--xp-gold);
  border-color: var(--xp-gold);
  color: var(--xp-navy-dark);
}

/* ============================================================
   MARKET FAILS TABS
   ============================================================ */

.market-fails {
  color: rgba(255, 255, 255, 0.85);
}

.market-fails .nav-item .nav-link {
  color: var(--xp-white);
}

.market-fails .nav-item .active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--xp-gold);
}

.market-fails .documentation {
  color: var(--xp-white);
}

.market-fails .tabs [class*=" tab"] label,
.market-fails .tabs [class^=tab] label {
  color: rgba(255, 255, 255, 0.8);
}

.market-fails .tabs [class*=" tab"] [type=radio],
.market-fails .tabs [class^=tab] [type=radio] {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.market-fails .tabs [class*=" tab"] [type=radio]:hover,
.market-fails .tabs [class^=tab] [type=radio]:hover,
.market-fails .tabs [class*=" tab"] [type=radio]:focus,
.market-fails .tabs [class^=tab] [type=radio]:focus {
  border-bottom: 1px solid var(--xp-gold);
}

.market-fails .tabs [class*=" tab"] [type=radio]:checked,
.market-fails .tabs [class^=tab] [type=radio]:checked {
  border-bottom: 2px solid var(--xp-gold);
}

.market-fails .tabs [class*=" tab"] [type=radio]:checked + div,
.market-fails .tabs [class^=tab] [type=radio]:checked + div {
  opacity: 1;
}

/* ============================================================
   DOT / STATUS INDICATOR
   ============================================================ */

.dot {
  height: 8px;
  width: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-clean {
  padding: var(--space-16) 0 var(--space-8);
  background-color: var(--xp-white);
  color: var(--xp-navy);
}

.footer-clean h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xp-navy);
  margin-bottom: var(--space-4);
}

.footer-clean ul {
  padding: 0;
  list-style: none;
  line-height: 1.8;
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.footer-clean ul a {
  color: var(--xp-muted);
  text-decoration: none;
  transition: color var(--ease-default);
}

.footer-clean ul a:hover {
  color: var(--xp-gold-dark);
}

.footer-clean .copyright {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--xp-muted);
}

.footer-clean .item.social > a {
  font-size: 18px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--xp-border);
  margin-left: var(--space-2);
  color: var(--xp-navy);
  transition: all var(--ease-default);
}

.footer-clean .item.social > a:hover {
  border-color: var(--xp-gold);
  color: var(--xp-gold-dark);
  background-color: var(--xp-gold-glow);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-control {
  border: 1px solid var(--xp-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--xp-navy);
  transition: border-color var(--ease-default), box-shadow var(--ease-default);
}

.form-control:focus {
  border-color: var(--xp-gold);
  box-shadow: 0 0 0 3px var(--xp-gold-glow);
  outline: none;
}

/* Dark background form fields */
.contact-box .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--xp-white);
}

.contact-box input[type=text]::placeholder,
.contact-box input[type=email]::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* ============================================================
   DECORATIVE ELEMENTS (legacy circle images)
   ============================================================ */

.circle_one,
.circle_two,
.circle_three {
  width: 130px;
  height: 260px;
  position: absolute;
  z-index: 999;
}

.circle_one  { background-image: url("../img/1_circle.png"); top: 10px;    left: -90px; }
.circle_two  { background-image: url("../img/3_circle.png"); top: -140px;  right: -90px; }
.circle_three{ background-image: url("../img/2_circle.png"); top: -140px;  right: -90px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .circle_one,
  .circle_two,
  .circle_three { display: none; }

  .main-header .row  { margin-top: 60px !important; }
  .main-image        { top: 45px !important; }
  .timeline          { display: none; }

  .highlight-blue    { padding: var(--space-10) var(--space-4); }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .main-header .row  { margin-top: -50px !important; }
  .main-header h1    { font-size: var(--text-3xl); }
  .main-image        { top: 50px !important; }
  .timeline          { display: block; }
  .timeline-container{ display: none; }
}

@media (min-width: 1200px) {
  .circle_one        { left: -60px; }
  .circle_two,
  .circle_three      { right: -60px; }
  .timeline-container{ display: none; }
}

@media (min-width: 2000px) {
  .circle_one        { left: 0; }
  .circle_two,
  .circle_three      { right: 0; }
}

/* ============================================================
   TYPING ANIMATION (demo block)
   ============================================================ */

.xp-typing {
  width: 50ch;
  animation: 2s steps(22) typing, .5s step-end infinite alternate blink;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-mono);
  text-align: center;
  color: var(--xp-gold);
}

@keyframes typing {
  from { width: 0; }
}

@keyframes blink {
  50% { border-right-color: transparent; }
}

/* ============================================================
   PARAMS TABLE (docs)
   ============================================================ */

.params td {
  font-size: var(--text-sm);
}
