/* ==========================================================================
   GX design system — public website (Home, About, Services, Contact, Login)
   Every rule is scoped under .gx-root so dashboard pages are unaffected.
   ========================================================================== */

.gx-root {
  --gx-saffron: #f5952e;
  --gx-saffron-600: #e27c12;
  --gx-saffron-700: #c2650a;
  --gx-saffron-100: #ffe9d1;
  --gx-saffron-50: #fff6ec;
  --gx-ink: #0b2444;
  --gx-ink-950: #050f1f;
  --gx-ink-900: #081a33;
  --gx-ink-800: #0f2b4f;
  --gx-ink-600: #2a4569;
  --gx-text: #0b2444;
  --gx-muted: #56677f;
  --gx-subtle: #8593a7;
  --gx-line: #e4e9f1;
  --gx-line-strong: #d3dbe7;
  --gx-bg: #f5f7fb;
  --gx-surface: #ffffff;
  --gx-green: #16a058;
  --gx-green-50: #e8f8ef;
  --gx-blue: #1556c4;
  --gx-blue-50: #eaf1fe;
  --gx-red: #e2413b;
  --gx-red-50: #fdeceb;
  --gx-violet: #6a4fd6;
  --gx-violet-50: #f0edfd;

  --gx-radius-sm: 10px;
  --gx-radius: 14px;
  --gx-radius-lg: 22px;
  --gx-radius-xl: 30px;
  --gx-shadow-sm: 0 1px 2px rgba(11, 36, 68, 0.06), 0 2px 8px rgba(11, 36, 68, 0.04);
  --gx-shadow: 0 12px 32px -12px rgba(11, 36, 68, 0.18);
  --gx-shadow-lg: 0 30px 70px -24px rgba(11, 36, 68, 0.35);
  --gx-shadow-saffron: 0 14px 30px -10px rgba(245, 149, 46, 0.55);
  --gx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gx-font: "Plus Jakarta Sans", "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--gx-font);
  color: var(--gx-text);
  background: var(--gx-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Base reset (zero-specificity so component classes always win) ---------- */
.gx-root :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--gx-font);
  color: inherit;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.gx-root :where(p) {
  font-family: var(--gx-font);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.65;
  color: inherit;
  margin: 0;
}
.gx-root :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.gx-root :where(li) { list-style: none; }
.gx-root :where(a) { color: inherit; text-decoration: none; }
.gx-root a:hover,
.gx-root a:focus { text-decoration: none; }
.gx-root :where(button) { font-family: var(--gx-font); }
.gx-root :where(img) { max-width: 100%; }
.gx-root *,
.gx-root *::before,
.gx-root *::after { box-sizing: border-box; }
.gx-root :focus-visible { outline: 2px solid var(--gx-saffron); outline-offset: 3px; }

/* ---------- Layout ---------- */
.gx-root .gx-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.gx-root .gx-section { padding: 104px 0; position: relative; }
.gx-root .gx-section--tint { background: var(--gx-bg); }
.gx-root .gx-section--dark { background: var(--gx-ink-900); color: #fff; }
.gx-root .gx-section--tight { padding: 72px 0; }

/* Dark surface with subtle saffron glow + grid pattern */
.gx-root .gx-dark-canvas {
  position: relative;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(245, 149, 46, 0.28), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(21, 86, 196, 0.28), transparent 60%),
    linear-gradient(180deg, var(--gx-ink-900) 0%, var(--gx-ink-950) 100%);
  color: #fff;
  overflow: hidden;
}
.gx-root .gx-dark-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.gx-root .gx-dark-canvas > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.gx-root .gx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--gx-saffron-50);
  border: 1px solid var(--gx-saffron-100);
  color: var(--gx-saffron-700);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.gx-root .gx-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gx-saffron);
  box-shadow: 0 0 0 4px rgba(245, 149, 46, 0.2);
}
.gx-root .gx-eyebrow--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffd2a3;
}

.gx-root .gx-display {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.gx-root .gx-h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.gx-root .gx-h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.gx-root .gx-lead {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.7;
  color: var(--gx-muted);
}
.gx-root .gx-on-dark .gx-lead,
.gx-root .gx-lead--dark { color: rgba(226, 234, 245, 0.78); }
.gx-root .gx-body { font-size: 15px; line-height: 1.7; color: var(--gx-muted); }
.gx-root .gx-text-gradient {
  background: linear-gradient(100deg, #ffb25c 0%, var(--gx-saffron) 45%, #ff7a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gx-saffron);
}

.gx-root .gx-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.gx-root .gx-head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.gx-root .gx-head--split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.gx-root .gx-head--split > div { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.gx-root .gx-head--split .gx-lead { max-width: 440px; }

/* ---------- Buttons ---------- */
.gx-root .gx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--gx-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--gx-ease), box-shadow 0.25s var(--gx-ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.gx-root .gx-btn i { font-size: 13px; transition: transform 0.25s var(--gx-ease); }
.gx-root .gx-btn:hover { transform: translateY(-2px); }
.gx-root .gx-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.gx-root .gx-btn--primary {
  background: linear-gradient(180deg, #f9a443 0%, var(--gx-saffron) 55%, var(--gx-saffron-600) 100%);
  color: #fff;
  box-shadow: var(--gx-shadow-saffron), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.gx-root .gx-btn--primary:hover,
.gx-root .gx-btn--primary:focus { color: #fff; box-shadow: 0 18px 36px -10px rgba(245, 149, 46, 0.7); }
.gx-root .gx-btn--dark { background: var(--gx-ink); color: #fff; }
.gx-root .gx-btn--dark:hover,
.gx-root .gx-btn--dark:focus { background: var(--gx-ink-800); color: #fff; box-shadow: var(--gx-shadow); }
.gx-root .gx-btn--ghost { background: #fff; color: var(--gx-ink); border-color: var(--gx-line-strong); }
.gx-root .gx-btn--ghost:hover,
.gx-root .gx-btn--ghost:focus { color: var(--gx-ink); border-color: var(--gx-ink); }
.gx-root .gx-btn--glass {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gx-root .gx-btn--glass:hover,
.gx-root .gx-btn--glass:focus { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.gx-root .gx-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }

.gx-root .gx-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Chips ---------- */
.gx-root .gx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gx-line);
  color: var(--gx-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.gx-root .gx-chip i { color: var(--gx-saffron); font-size: 13px; }
.gx-root .gx-chip--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Icon tiles ---------- */
.gx-root .gx-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
  background: var(--gx-saffron-50);
  color: var(--gx-saffron-600);
}
.gx-root .gx-icon svg { width: 22px; height: 22px; }
.gx-root .gx-icon--sm { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; }
.gx-root .gx-icon--green { background: var(--gx-green-50); color: var(--gx-green); }
.gx-root .gx-icon--blue { background: var(--gx-blue-50); color: var(--gx-blue); }
.gx-root .gx-icon--red { background: var(--gx-red-50); color: var(--gx-red); }
.gx-root .gx-icon--violet { background: var(--gx-violet-50); color: var(--gx-violet); }
.gx-root .gx-icon--ink { background: var(--gx-ink); color: #fff; }
.gx-root .gx-icon--glass { background: rgba(255, 255, 255, 0.08); color: #ffc58a; border: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- Cards ---------- */
.gx-root .gx-card {
  position: relative;
  background: var(--gx-surface);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-lg);
  padding: 30px;
  transition: transform 0.35s var(--gx-ease), box-shadow 0.35s var(--gx-ease), border-color 0.35s ease;
}
.gx-root .gx-card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--gx-line-strong);
  box-shadow: var(--gx-shadow);
}
.gx-root .gx-card--glass {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Check list ---------- */
.gx-root .gx-checks { display: grid; gap: 12px; }
.gx-root .gx-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.gx-root .gx-checks li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gx-green-50);
  color: var(--gx-green);
}
.gx-root .gx-checks--dark li::before { background: rgba(22, 160, 88, 0.18); color: #5ee39a; }

/* ---------- Steps (How it works) ---------- */
.gx-root .gx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: gx-step;
  position: relative;
}
.gx-root .gx-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gx-line-strong) 0 8px, transparent 8px 16px);
}
.gx-root .gx-step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.gx-root .gx-step-num {
  counter-increment: gx-step;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--gx-line-strong);
  color: var(--gx-ink);
  font-size: 20px;
  box-shadow: var(--gx-shadow-sm);
  position: relative;
}
.gx-root .gx-step-num::after {
  content: counter(gx-step, decimal-leading-zero);
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gx-saffron);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gx-font);
}
.gx-root .gx-step h3 { font-size: 17.5px; font-weight: 700; }
.gx-root .gx-step p { font-size: 14.5px; color: var(--gx-muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.gx-root .gx-faq { display: grid; gap: 12px; }
.gx-root .gx-faq-item {
  background: #fff;
  border: 1px solid var(--gx-line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gx-root .gx-faq-item:hover { border-color: var(--gx-line-strong); }
.gx-root .gx-faq-item.open { border-color: rgba(245, 149, 46, 0.45); box-shadow: 0 12px 30px -18px rgba(245, 149, 46, 0.6); }
.gx-root .gx-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}
.gx-root .gx-faq-q h3 { font-size: 16.5px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.gx-root .gx-faq-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gx-bg);
  color: var(--gx-ink);
  font-size: 12px;
  transition: transform 0.3s var(--gx-ease), background 0.25s ease, color 0.25s ease;
}
.gx-root .gx-faq-item.open .gx-faq-toggle { transform: rotate(45deg); background: var(--gx-saffron); color: #fff; }
.gx-root .gx-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--gx-ease);
}
.gx-root .gx-faq-item.open .gx-faq-a { max-height: 320px; }
.gx-root .gx-faq-a p { padding: 0 24px 22px; font-size: 15px; color: var(--gx-muted); line-height: 1.7; }

/* ---------- CTA band ---------- */
.gx-root .gx-cta {
  border-radius: var(--gx-radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 40px;
}
.gx-root .gx-cta h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.gx-root .gx-cta p { margin-top: 14px; color: rgba(226, 234, 245, 0.78); font-size: 16.5px; max-width: 560px; }

/* ---------- Element UI form skin (used by Contact + Login) ---------- */
.gx-root .gx-form .el-form-item { margin-bottom: 20px; }
.gx-root .gx-form .el-form-item__label {
  font-family: var(--gx-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--gx-ink);
  line-height: 1.4;
  padding: 0 0 8px;
}
.gx-root .gx-form .el-input__inner,
.gx-root .gx-form .el-textarea__inner {
  font-family: var(--gx-font);
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--gx-line-strong);
  background: #fbfcfe;
  color: var(--gx-ink);
  font-size: 14.5px;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gx-root .gx-form .el-textarea__inner { height: auto; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.gx-root .gx-form .el-input--prefix .el-input__inner { padding-left: 42px; }
.gx-root .gx-form .el-input__prefix { left: 14px; color: var(--gx-subtle); display: flex; align-items: center; }
.gx-root .gx-form .el-input__prefix i { margin-top: 0 !important; }
.gx-root .gx-form .el-input__suffix { right: 10px; }
.gx-root .gx-form .el-input__inner::placeholder,
.gx-root .gx-form .el-textarea__inner::placeholder { color: #9aa7b8; }
.gx-root .gx-form .el-input__inner:hover,
.gx-root .gx-form .el-textarea__inner:hover { border-color: #b9c5d6; }
.gx-root .gx-form .el-input__inner:focus,
.gx-root .gx-form .el-textarea__inner:focus {
  border-color: var(--gx-saffron);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 149, 46, 0.14);
}
.gx-root .gx-form .el-form-item.is-error .el-input__inner,
.gx-root .gx-form .el-form-item.is-error .el-textarea__inner { border-color: #f56c6c; box-shadow: none; }
.gx-root .gx-form .el-form-item__error { font-family: var(--gx-font); padding-top: 5px; font-size: 12px; }
.gx-root .gx-form .el-button.gx-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  font-family: var(--gx-font);
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #f9a443 0%, var(--gx-saffron) 55%, var(--gx-saffron-600) 100%);
  box-shadow: var(--gx-shadow-saffron), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.25s var(--gx-ease), box-shadow 0.25s var(--gx-ease);
}
.gx-root .gx-form .el-button.gx-submit:hover,
.gx-root .gx-form .el-button.gx-submit:focus {
  color: #fff;
  background: linear-gradient(180deg, #f9a443 0%, var(--gx-saffron) 55%, var(--gx-saffron-600) 100%);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -10px rgba(245, 149, 46, 0.7);
}

/* ---------- Reveal-on-load micro motion (CSS only) ---------- */
@keyframes gx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gx-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 160, 88, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(22, 160, 88, 0); } }
.gx-root .gx-rise { animation: gx-rise 0.8s var(--gx-ease) both; }
.gx-root .gx-rise-2 { animation: gx-rise 0.8s var(--gx-ease) 0.12s both; }
.gx-root .gx-rise-3 { animation: gx-rise 0.8s var(--gx-ease) 0.24s both; }
@media (prefers-reduced-motion: reduce) {
  .gx-root *, .gx-root *::before, .gx-root *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gx-root .gx-section { padding: 88px 0; }
  .gx-root .gx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .gx-root .gx-steps::before { display: none; }
  .gx-root .gx-cta { grid-template-columns: 1fr; padding: 48px; }
}
@media (max-width: 760px) {
  .gx-root .gx-container { width: calc(100% - 32px); }
  .gx-root .gx-section { padding: 72px 0; }
  .gx-root .gx-section--tight { padding: 56px 0; }
  .gx-root .gx-head { margin-bottom: 40px; }
  .gx-root .gx-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gx-root .gx-card { padding: 24px; }
  .gx-root .gx-cta { padding: 36px 24px; border-radius: var(--gx-radius-lg); }
  .gx-root .gx-actions .gx-btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .gx-root .gx-steps { grid-template-columns: 1fr; }
}
