/* Domain (domain.com) — NebulaX Light v3
   A bright, calming UI with radically different section layouts under one style.
   Fonts: Headings "Sora"; Body "Manrope" (loaded in HTML).
   Focus: readability, airy spacing, soft depth, and fast rendering.
*/

/* =============================
   0) Base reset and tokens (Light)
   ============================= */
:root {
  /* Light palette */
  --nx-bg: #f7f9fc; /* page background */
  --nx-bg-2: #ffffff; /* elevated surfaces */
  --nx-surface: #ffffff; /* cards */
  --nx-surface-2: #f2f6fb; /* subtle panels */
  --nx-text: #0b1220; /* primary text */
  --nx-muted: #586a86; /* secondary text */
  --nx-line: #e4ebf3; /* dividers */

  /* Accents (fresh blue + mint) */
  --nx-a1: #0db37b; /* mint */
  --nx-a2: #2b6ef3; /* blue */
  --nx-a3: #7a56ff; /* iris */
  --nx-warn: #ffb84d;
  --nx-danger: #f65f6b;

  /* Elevation */
  --nx-s1: 0 4px 14px rgba(6, 28, 61, 0.06);
  --nx-s2: 0 12px 28px rgba(6, 28, 61, 0.1);
  --nx-ring: 0 0 0 3px rgba(43, 110, 243, 0.2),
    0 0 0 6px rgba(13, 179, 123, 0.12);

  /* Radii */
  --nx-r-1: 10px;
  --nx-r-2: 14px;
  --nx-r-3: 18px;
  --nx-r-4: 22px;

  /* Layout */
  --nx-container: 1200px;
  --nx-gap: clamp(16px, 2.6vw, 28px);

  /* Motion */
  --nx-fast: 120ms;
  --nx-mid: 220ms;
  --nx-slow: 460ms;
  --nx-ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--nx-bg);
  color: var(--nx-text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial;
  margin: 0 0 10px;
  line-height: 1.12;
  letter-spacing: 0.1px;
}

h1 {
  font-size: clamp(36px, 5.2vw, 64px);
}
h2 {
  font-size: clamp(22px, 3vw, 36px);
}
h3 {
  font-size: clamp(16px, 2vw, 20px);
}

p {
  margin: 0 0 12px;
}
ul,
ol {
  margin: 0 0 12px;
  padding-left: 18px;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--nx-a2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* A11y utilities */
.a11y-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.a11y-skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--nx-r-1);
  background: #fff;
  box-shadow: var(--nx-ring);
}
.a11y-sr {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
:focus-visible {
  outline: none;
  box-shadow: var(--nx-ring);
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================
   1) Layout primitives
   ============================= */
.nx-container {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 var(--nx-gap);
}
.nx-section {
  padding: clamp(28px, 7.2vw, 72px) 0;
}

/* =============================
   2) Brand atoms
   ============================= */
.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--nx-text);
}
.nx-brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(43, 110, 243, 0.18);
}
.nx-brand__text {
  font-size: 18px;
}

/* =============================
   3) Buttons
   ============================= */
.btn {
  --_bg: #fff;
  --_fg: var(--nx-text);
  --_bd: var(--nx-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 164px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  transition: background var(--nx-mid) var(--nx-ease),
    color var(--nx-mid) var(--nx-ease),
    border-color var(--nx-mid) var(--nx-ease),
    transform var(--nx-fast) var(--nx-ease),
    box-shadow var(--nx-mid) var(--nx-ease);
  box-shadow: var(--nx-s1);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn--primary {
  --_bg: linear-gradient(90deg, var(--nx-a2), var(--nx-a1));
  --_fg: #ffffff;
  --_bd: transparent;
  box-shadow: 0 10px 18px rgba(43, 110, 243, 0.18),
    0 8px 16px rgba(13, 179, 123, 0.15);
}
.btn--outline {
  --_bg: transparent;
  --_fg: var(--nx-a2);
  --_bd: var(--nx-a2);
  box-shadow: none;
}
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--nx-muted);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(15, 40, 80, 0.06);
}

/* =============================
   4) Hero — light ribbon banner (radically different)
   ============================= */
.hero-block {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f2f6fb);
  border-bottom: 1px solid var(--nx-line);
  overflow: clip;
}
.hero-block::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto auto;
  height: 280px;
  width: 380px;
  background: radial-gradient(
      220px 180px at 70% 30%,
      rgba(43, 110, 243, 0.12),
      transparent 70%
    ),
    radial-gradient(
      220px 180px at 30% 70%,
      rgba(13, 179, 123, 0.12),
      transparent 70%
    );
  filter: blur(6px);
}
.hero-headline {
  color: #0c1526;
  background: none;
  text-transform: none;
  letter-spacing: 0.2px;
}
.hero-sub {
  color: #3c4d69;
  max-width: 68ch;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* Split grid (centered) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.split-col {
  min-width: 0;
}

/* =============================
   5) Brokers — responsive list rows (radically different)
   ============================= */
.brokers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.broker-card {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 0.6fr;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-3);
  box-shadow: var(--nx-s1);
  transition: box-shadow var(--nx-mid) var(--nx-ease),
    transform var(--nx-mid) var(--nx-ease);
}
.broker-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nx-s2);
}

/* Left media block */
.broker-head {
  width: 100%;
}
.broker-head img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

/* Middle: compact stats as pills */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #f2f6fb;
  border: 1px dashed #dfe8f2;
  border-radius: 999px;
  min-width: 140px;
}
.spec-item dt {
  color: #6a7c98;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.spec-item dd {
  margin: 0;
  font-weight: 900;
  color: #0b1220;
}

/* Inline bullet chips */
.bullet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bullet-list li {
  background: #ffffff;
  border: 1px solid var(--nx-line);
  color: #31425f;
  padding: 6px 10px;
  border-radius: 999px;
}
.bullet-list li::before {
  content: none;
}

/* Right: actions */
.card-actions {
  display: grid;
  justify-items: end;
}
.card-actions .btn {
  min-width: 140px;
  width: 100%;
}

@media (max-width: 980px) {
  .broker-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .card-actions {
    justify-items: stretch;
  }
  .card-actions .btn {
    width: 100%;
  }
}

/* =============================
   6) Features — media list (radically different)
   ============================= */
.nx-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.panel {
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-2);
  padding: 14px;
  box-shadow: var(--nx-s1);
}
.panel__icon {
  display: block;
  margin-bottom: 10px;
  width: 44px;
  height: 44px;
  color: var(--nx-a2);
  grid-column: 1;
  align-self: start;
  padding: 6px;
  border: 1px solid #dfe8f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef5ff, #f6fbff);
  box-shadow: 0 4px 10px rgba(6, 28, 61, 0.07);
}
.panel h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  color: #0b1220;
}
.panel p {
  margin: 0;
  color: var(--nx-muted);
}

.panel h3,
.panel p {
  grid-column: 2;
}

@media (max-width: 900px) {
  .nx-panels {
    grid-template-columns: 1fr;
  }
}

/* =============================
   7) Steps — vertical timeline (radically different)
   ============================= */
.nx-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.nx-steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #dfe8f2, #eef4fb);
}
.step {
  position: relative;
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-2);
  padding: 12px 12px 12px 58px;
  box-shadow: var(--nx-s1);
}
.step::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--nx-a1), var(--nx-a2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0b1220;
}
.step p {
  margin: 0;
  color: var(--nx-muted);
}

/* =============================
   8) Notice / callout — light band
   ============================= */
.notice {
  background: linear-gradient(180deg, #eef5ff, #f2fbf7);
  border: 1px solid #e0eaf6;
  border-radius: var(--nx-r-2);
  padding: 14px;
  box-shadow: var(--nx-s1);
}
.notice h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0b1220;
}

/* =============================
   9) Footer — airy light
   ============================= */
.nx-footer {
  background: transparent;
}
.nx-footer-grid {
  display: grid;
  grid-template-areas: "brand" "links" "legal";
  gap: 14px;
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-4);
  padding: 16px;
  box-shadow: var(--nx-s1);
  margin-top: 24px;
}
.nx-brand-block {
  grid-area: brand;
  display: grid;
  gap: 8px;
}
.nx-brand-block p {
  margin: 6px 0 0;
  color: var(--nx-muted);
}

.nx-links-block {
  grid-area: links;
  background: #ffffff;
  border: 1px dashed #dfe8f2;
  border-radius: var(--nx-r-2);
  padding: 12px;
}
.nx-links-block ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-links-block a {
  color: #38507a;
}
.nx-links-block a:hover {
  color: var(--nx-a2);
  text-decoration: underline;
}

.nx-legal-block {
  grid-area: legal;
  background: #ffffff;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-2);
  padding: 12px;
}
.nx-legal-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.nx-legal-item {
  border: 1px dashed #e2eaf3;
  border-radius: var(--nx-r-1);
  padding: 10px;
}
.nx-legal-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0b1220;
}
.nx-legal-item p {
  margin: 0;
  color: var(--nx-muted);
}

@media (min-width: 980px) {
  .nx-footer-grid {
    grid-template-areas: "brand links" "legal legal";
    grid-template-columns: 1.6fr 1fr;
  }
}

.nx-foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 24px;
  margin-top: 18px;
  color: var(--nx-muted);
  flex-wrap: wrap;
  position: relative;
}
.nx-foot-meta::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nx-a2), var(--nx-a1));
  opacity: 0.35;
  border-radius: 2px;
}
.brand-inline {
  color: #0b1220;
  font-weight: 900;
}

.partners {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.partners img {
  width: 120px;
  height: 44px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: grayscale(12%);
}

/* =============================
   10) FAQ — single column accordion
   ============================= */
.nx-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.nx-faq-col {
  display: contents;
} /* flatten columns into a single list */
.nx-faq-qa {
  background: var(--nx-bg-2);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-2);
  padding: 12px 14px;
  box-shadow: var(--nx-s1);
}
.nx-faq-qa > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  position: relative;
  padding-right: 28px;
  color: #0b1220;
}
.nx-faq-qa > summary::-webkit-details-marker {
  display: none;
}
.nx-faq-qa > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  transform: translateY(2px);
  transition: transform var(--nx-mid) var(--nx-ease);
  font-weight: 900;
  color: var(--nx-a2);
}
.nx-faq-qa[open] > summary::after {
  content: "–";
}
.nx-faq-body {
  color: var(--nx-muted);
  margin-top: 8px;
}

/* =============================
   11) Responsive tweaks
   ============================= */
@media (max-width: 720px) {
  .hero-cta .btn {
    min-width: unset;
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 6px;
  }
}
