/* ==========================================================================
   Dax Connect by DaxHive — marketing site
   Pure CSS, no build step. System font stack, light + dark schemes.
   ========================================================================== */

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  --ink: #0b1220;
  --text: #0b1220;
  --text-muted: #475569;
  --text-soft: #64748b;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: rgba(29, 78, 216, 0.09);
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-text: #b45309;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --link: #1d4ed8;
  --link-hover: #1e40af;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 4px 16px rgba(11, 18, 32, 0.07);
  --shadow-lg: 0 14px 34px rgba(11, 18, 32, 0.1);

  --radius: 1rem;         /* rounded-xl cards */
  --radius-sm: 0.625rem;
  --radius-pill: 999px;

  --container: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-soft: #8094ab;

    --primary-soft: rgba(96, 165, 250, 0.12);
    --accent-soft: rgba(245, 158, 11, 0.16);
    --accent-text: #fbbf24;

    --bg: #0b1220;
    --bg-alt: #0e1729;
    --card: #121c31;
    --border: #1f2b42;
    --border-strong: #2d3c58;

    --link: #7ba6f7;
    --link-hover: #a5c2fa;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: #0b1220;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #0b1220;
}

.btn-lg {
  padding: 0.875rem 1.875rem;
  font-size: 1.0625rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.wordmark:hover {
  color: var(--text);
}

.wordmark .by {
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle .bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle .bar:nth-child(3) {
  opacity: 0;
}

.nav-open .nav-toggle .bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 1.0625rem;
  }

  .site-nav a:hover {
    background: var(--bg-alt);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  text-align: center;
  background: radial-gradient(
      640px 320px at 12% -10%,
      rgba(29, 78, 216, 0.09),
      transparent 70%
    ),
    radial-gradient(
      560px 300px at 88% -6%,
      rgba(245, 158, 11, 0.11),
      transparent 70%
    ),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.375rem 1rem;
  box-shadow: var(--shadow-sm);
}

.eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: 1.25rem auto 1rem;
}

.hl {
  font-style: normal;
  background: linear-gradient(transparent 64%, rgba(245, 158, 11, 0.38) 64%);
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto 2.25rem;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.hero-note {
  margin: 1.125rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.75rem;
  padding: 0;
  list-style: none;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
}

.hero-pills svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- sections ---------- */

.section {
  padding: 4.75rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

@media (prefers-color-scheme: dark) {
  .section-head .kicker {
    color: var(--link);
  }
}

.section-head .lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- cards & grids ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: 1.375rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* ---------- how it works ---------- */

.hiw-col {
  padding: 2.25rem 2rem;
}

.role-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.875rem;
  margin-bottom: 1rem;
}

.role-tag.founder {
  background: var(--primary-soft);
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .role-tag.founder {
    color: var(--link);
  }
}

.role-tag.investor {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.hiw-col h3 {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.hiw-col > p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.375rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .steps li::before {
    color: var(--link);
  }
}

.steps.steps-accent li::before {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.steps h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.steps p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---------- trust cards ---------- */

.trust-card {
  padding: 1.75rem 1.625rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 0.875rem;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1.125rem;
}

@media (prefers-color-scheme: dark) {
  .trust-icon {
    color: var(--link);
  }
}

.trust-card:nth-child(even) .trust-icon {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.trust-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.trust-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.trust-card p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- provider band ---------- */

.provider-band {
  background: linear-gradient(
      140deg,
      rgba(29, 78, 216, 0.25),
      transparent 55%
    ),
    #0b1220;
  border: 1px solid #1f2b42;
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.provider-band h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.provider-band > p {
  color: #94a3b8;
  max-width: 60ch;
}

.provider-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}

.provider-points li {
  flex: 1 1 14rem;
  min-width: 13rem;
  padding-top: 0.875rem;
  border-top: 2px solid var(--accent);
}

.provider-points h3 {
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.provider-points p {
  margin: 0;
  font-size: 0.9375rem;
  color: #94a3b8;
}

/* ---------- community ---------- */

.community-card {
  padding: 1.875rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.community-card h3 {
  font-size: 1.1875rem;
}

.community-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.community-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.community-link .arrow {
  transition: transform 0.18s ease;
}

.community-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 50rem;
  margin: 0 auto;
  display: grid;
  gap: 0.875rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 0.25rem;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .faq-item summary:hover {
    color: var(--link);
  }
}

.faq-body {
  padding: 0 1.375rem 1.25rem;
  color: var(--text-muted);
}

.faq-body p {
  margin: 0 0 0.625rem;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- closing CTA ---------- */

.closing-cta {
  text-align: center;
  padding: 5rem 0;
}

.closing-cta h2 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  max-width: 24ch;
  margin-inline: auto;
}

.closing-cta p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 52ch;
  margin: 0 auto 2rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: #0b1220;
  border-top: 1px solid #1f2b42;
  color: #cbd5e1;
  padding: 3.75rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 2.5rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .wordmark {
  color: #ffffff;
}

.site-footer .wordmark .by {
  color: #94a3b8;
}

.footer-tagline {
  margin: 0.875rem 0 0;
  font-size: 0.9375rem;
  color: #94a3b8;
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c8ba3;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.575rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid #1f2b42;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #7c8ba3;
  max-width: 80ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-meta .sep {
  color: #3b4a66;
}

.footer-meta .amber-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.45rem;
}

/* ---------- legal / sub-pages ---------- */

.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3.25rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-updated {
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin: 0;
}

.prose {
  max-width: 47.5rem;
  padding: 3rem 0 4.75rem;
}

.prose h2 {
  font-size: 1.4375rem;
  margin: 2.5rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--text-soft);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text);
}

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.375rem;
  margin: 1.25rem 0 1.75rem;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 0.625rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.625rem 1.75rem;
  margin: 1.5rem 0;
}

.contact-card p {
  margin: 0 0 0.375rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ---------- 404 ---------- */

.error-hero {
  text-align: center;
  padding: 7rem 0 8rem;
}

.error-code {
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.error-code .amber {
  color: var(--accent);
}

.error-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.error-hero p {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .hero {
    padding: 3.75rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-ctas .btn,
  .error-actions .btn {
    width: 100%;
  }

  .provider-band {
    padding: 2rem 1.5rem;
  }

  .hiw-col {
    padding: 1.75rem 1.375rem;
  }

  .steps li {
    padding-left: 3.125rem;
  }
}
