/* ==========================================================================
   Southmark — design system
   Electric blue on pale blue, kept from the original identity.
   ========================================================================== */

:root {
  --blue-950: #14134a;
  --blue-900: #1c1b6e;
  --blue-700: #2b28c8;
  --blue-600: #3a37e0;
  --blue-500: #5754f0;
  --blue-400: #7f7cf7;

  --ink: #16162e;
  --ink-soft: #4d5068;
  --bg: #f7f9fd;
  --surface: #e9f0fa;
  --card: #ffffff;
  --border: #dbe3f1;

  --brand-gradient: linear-gradient(120deg, var(--blue-900), var(--blue-600) 55%, var(--blue-400));
  --surface-gradient: linear-gradient(180deg, var(--surface), var(--bg));

  --shadow-card: 0 1px 2px rgba(22, 22, 46, 0.06), 0 16px 36px -22px rgba(43, 40, 200, 0.35);
  --shadow-brand: 0 18px 40px -18px rgba(43, 40, 200, 0.55);

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.muted {
  color: var(--ink-soft);
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-outline {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.btn-on-brand {
  background: #fff;
  color: var(--blue-700);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 253, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
  color: #fff;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue-700);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
}

.nav a.nav-cta,
.nav a.nav-cta:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--surface-gradient);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 92px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(58, 55, 224, 0.25);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-700);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-top: 20px;
}

.hero p {
  margin-top: 20px;
  max-width: 30rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 32px;
  background: var(--brand-gradient);
  opacity: 0.16;
  filter: blur(34px);
}

.hero-media img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ---------- page header (inner pages) ---------- */
.page-head {
  background: var(--surface-gradient);
  border-bottom: 1px solid var(--border);
  padding: 68px 0 56px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-top: 12px;
}

.page-head p {
  margin-top: 18px;
  max-width: 46rem;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */
.section {
  padding: 80px 0;
}

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

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.stack > * + * {
  margin-top: 16px;
}

/* ---------- cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.12rem;
  margin-top: 20px;
}

.card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.icon-badge svg {
  width: 21px;
  height: 21px;
}

.spec-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.spec-list li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
}

.spec-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- feature row ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  display: flex;
  gap: 14px;
}

.feature svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--blue-700);
  margin-top: 3px;
}

.feature h3 {
  font-size: 1.02rem;
}

.feature p {
  margin-top: 6px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.stats dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-700);
}

.stats dd {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- CTA panel ---------- */
.cta {
  background: var(--brand-gradient);
  border-radius: 28px;
  box-shadow: var(--shadow-brand);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  color: #fff;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.cta p {
  margin-top: 16px;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.contact-list li:first-child {
  margin-top: 0;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.contact-list a {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
}

/* ---------- prose (legal pages) ---------- */
.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 36px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  margin-top: 12px;
}

.prose ol,
.prose ul {
  padding-left: 22px;
  margin: 8px 0 0;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.callout {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.callout h3 {
  font-size: 1.05rem;
}

.callout p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 0.94rem;
}

.site-footer li + li {
  margin-top: 10px;
}

.footer-brand .brand-text,
.footer-brand p {
  color: #fff;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 22rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.84rem;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 8px 20px 20px;
    display: none;
  }

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

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav .nav-cta {
    margin-top: 16px;
    justify-content: center;
    border-bottom: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero .wrap,
  .split,
  .cta {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero .wrap {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .split img {
    order: -1;
  }

  .section {
    padding: 60px 0;
  }

  .grid-3,
  .grid-2,
  .features {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 40px 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
