/* Domain (domain.com) — Nova UI Theme v1 (Dark)
   Fresh visual language: deep navy surfaces, neon-mint & cyan accents,
   soft glass panels, micro-interactions, accessible focus, reduced motion.
   Fonts: Headings "Sora" + Body "Manrope"

   Class system is NEW and independent from previous app.css.
   Update HTML to the new class names to activate this theme.
*/

/* =============================
   1) Design tokens (Dark)
   ============================= */
:root {
  /* Palette */
  --clr-bg: #0b0f14; /* page background: deep navy */
  --clr-bg-2: #0f1620; /* elevated background */
  --clr-surface: #111a26; /* cards */
  --clr-surface-2: #0d141d; /* subtle panel */
  --clr-text: #eaf2ff; /* primary text */
  --clr-muted: #9db0c6; /* secondary text */
  --clr-border: rgba(234, 242, 255, 0.08);

  /* Accents */
  --accent: #58f1a7; /* neon mint */
  --accent-2: #22d3ee; /* cyan */
  --accent-strong: #48c48d; /* mint strong */
  --warning: #fbbf24; /* amber */
  --danger: #ef4444; /* red */

  /* Focus ring */
  --ring: 0 0 0 3px rgba(34, 211, 238, 0.55), 0 0 0 6px rgba(88, 241, 167, 0.18);

  /* Elevation */
  --shadow-1: 0 8px 26px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.44);

  /* Radii */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --r-xl: 26px;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(16px, 2vw, 28px);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =============================
   2) Base reset & typography
   ============================= */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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.15;
  letter-spacing: 0.1px;
}

h1 {
  font-size: clamp(34px, 4.6vw, 58px);
}
h2 {
  font-size: clamp(22px, 2.7vw, 36px);
}
h3 {
  font-size: 18px;
}

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: inherit;
  text-decoration: none;
}

/* =============================
   3) Accessibility utilities
   ============================= */
.u-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.u-skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--r-s);
  background: var(--clr-surface);
  outline: none;
  box-shadow: var(--ring);
}

.u-sr-only {
  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(--ring);
  border-radius: 12px;
}

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

/* =============================
   4) Layout primitives
   ============================= */
.u-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-block {
  padding: clamp(24px, 8vw, 60px) 0;
}
.grid-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================
   5) Header & Navigation (dark)
   ============================= */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 22, 32, 0.7);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--clr-border);
}
.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.brand__name {
  font-size: 18px;
  color: var(--clr-text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: 12px;
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease),
    opacity var(--dur-base) var(--ease);
}

.menu-drawer {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-drawer a {
  display: inline-block;
  padding: 6px;
  color: var(--clr-muted);
  border-radius: 8px;
  text-underline-offset: 4px;
}
.menu-drawer a:hover,
.menu-drawer a:focus-visible {
  color: var(--clr-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
}
.menu-drawer a[aria-current="page"] {
  color: var(--clr-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.main-content {
  margin-top: 73px;
}

/* =============================
   6) Buttons
   ============================= */
.btn {
  --_bg: transparent;
  --_fg: var(--clr-text);
  --_bd: var(--clr-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  height: 46px;
  padding: 0 18px;
  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(--dur-base) var(--ease),
    color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --_bg: var(--accent);
  --_fg: #0a0f14;
  --_bd: var(--accent);
  box-shadow: 0 10px 24px rgba(88, 241, 167, 0.22);
}
.btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn--secondary {
  --_bg: var(--clr-bg-2);
  --_bd: var(--accent);
  color: var(--accent);
}
.btn--secondary:hover {
  background: rgba(34, 211, 238, 0.08);
}

.btn--ghost {
  --_bg: transparent;
  color: var(--clr-muted);
}
.btn--ghost:hover {
  background: rgba(234, 242, 255, 0.04);
}

/* =============================
   7) Masthead (hero)
   ============================= */
.masthead {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(16, 24, 36, 0.7),
    rgba(11, 15, 20, 0.9)
  );
  border-bottom: 1px solid var(--clr-border);
}
.masthead__title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
.masthead__lead {
  color: var(--clr-muted);
  margin: 0 0 18px;
  max-width: 64ch;
}
.masthead__cta {
  display: flex;
  gap: 10px;
}

.pillset {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pill {
  background: rgba(234, 242, 255, 0.06);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* =============================
   8) Broker list
   ============================= */
.broker-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.broker-card {
  background: linear-gradient(
    180deg,
    rgba(15, 22, 32, 0.7),
    rgba(15, 22, 32, 0.9)
  );
  border: 1px solid var(--clr-border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}
.broker-card__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.broker-brand {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-auto-flow: row;
}
.broker-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.08);
  color: var(--clr-text);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  width: fit-content;
}

.broker-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.broker-spec {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.broker-spec dt {
  color: var(--clr-muted);
  font-size: 12px;
}
.broker-spec dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.broker-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.broker-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.broker-points li::before {
  content: "•";
  color: var(--accent-2);
  font-weight: 900;
}

.broker-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.broker-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
}

@media (max-width: 980px) {
  .broker-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 680px) {
  .broker-card__row {
    grid-template-columns: 1fr;
  }
  .broker-brand {
    grid-auto-flow: column;
    justify-content: space-between;
  }
  .broker-specs {
    grid-template-columns: 1fr 1fr;
  }
  .broker-actions .btn {
    width: 100%;
  }
}

/* =============================
   9) Process steps
   ============================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-steps > li {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-m);
  padding: 16px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.process-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -10px;
  left: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #001018;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(34, 211, 238, 0.25);
}
.process-steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.process-steps p {
  margin: 0;
  color: var(--clr-muted);
}

@media (max-width: 980px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* =============================
   10) Audit grid (method)
   ============================= */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0 0;
}
.audit-grid > div {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-m);
  padding: 14px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.audit-grid > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-top-left-radius: var(--r-m);
  border-top-right-radius: var(--r-m);
}
.audit-grid dt {
  font-weight: 900;
  margin: 6px 0 6px;
}
.audit-grid dd {
  margin: 0;
  color: var(--clr-muted);
}

@media (max-width: 980px) {
  .audit-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .audit-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================
   11) FAQ
   ============================= */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-grid .col {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-1);
  margin-bottom: 10px;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  position: relative;
  padding-right: 28px;
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 0;
  transform: translateY(3px);
  transition: transform var(--dur-base) var(--ease);
  font-weight: 900;
  color: var(--accent-2);
}
.faq-item[open] > summary::after {
  content: "–";
  transform: translateY(3px);
}
.faq-body {
  color: var(--clr-muted);
  margin-top: 8px;
}

/* =============================
   12) Footer
   ============================= */
.site-foot {
  border-top: 1px solid var(--clr-border);
  background: rgba(15, 22, 32, 0.6);
  backdrop-filter: blur(6px);
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 6px;
}
.foot-nav .menu-drawer {
  gap: 12px;
}
.foot-nav a {
  color: var(--clr-muted);
}
.foot-nav a:hover {
  color: var(--clr-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.foot-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 10px;
}
.foot-note {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 14px;
}
.foot-note h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.foot-note p {
  margin: 0;
  color: var(--clr-muted);
}

.foot-bottom {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--clr-border);
  color: var(--clr-muted);
  padding-bottom: 18px;
  text-align: center;
}
.brand-inline {
  color: var(--clr-text);
  font-weight: 900;
}

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

/* =============================
   13) Responsive helpers (nav)
   ============================= */
@media (max-width: 980px) {
  .foot-notes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-block;
  }
  .menu-drawer {
    position: absolute;
    right: var(--gutter);
    top: 68px;
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow-2);
    display: none;
    flex-direction: column;
    min-width: 220px;
  }
  .menu-drawer.is-open {
    display: flex;
  }

  .foot-nav .menu-drawer {
    position: static;
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .foot-notes {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .pillset {
    display: none;
  }
  .masthead__cta {
    gap: 6px;
  }
  .masthead__cta .btn {
    min-width: unset;
    max-width: 50%;
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 6px;
  }
}
