:root {
  --black: #111116;
  --black-2: #0b0b10;
  --charcoal: #171720;
  --graphite: #25252e;
  --slate: #3a3a46;
  --cool-grey: #747481;
  --soft-grey: #a8a8b5;
  --off-white: #f6f6f8;
  --white: #ffffff;
  --purple: #7c3aed;
  --violet: #8b5cf6;
  --lavender: #c4b5fd;
  --border-dark: rgba(255, 255, 255, 0.13);
  --border-light: rgba(17, 17, 22, 0.13);
  --shadow-dark: 0 30px 90px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 22px 70px rgba(17, 17, 22, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
p { line-height: 1.62; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 9999; background: var(--white); color: var(--black); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 14%, rgba(124, 58, 237, 0.24), transparent 31%),
    radial-gradient(circle at 10% 22%, rgba(196, 181, 253, 0.10), transparent 27%),
    linear-gradient(135deg, var(--black-2) 0%, var(--black) 46%, var(--charcoal) 100%);
}
.section-light {
  color: var(--black);
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.055), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--off-white) 100%);
}
.texture { position: relative; overflow: hidden; }
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .43;
  background-image: url("/assets/ripple.svg");
  background-size: 1120px auto;
  background-position: 50% 10%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}
.texture > * { position: relative; z-index: 1; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 40px));
  min-height: 76px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: rgba(17, 17, 22, 0.72);
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.site-header.scrolled { background: rgba(17, 17, 22, 0.9); border-color: rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; box-shadow: 0 16px 36px rgba(124,58,237,.24); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-word { color: var(--white); font-size: 25px; font-weight: 650; letter-spacing: -0.06em; line-height: .95; }
.brand-word span { color: var(--violet); }
.brand-line { color: rgba(255,255,255,.58); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: rgba(255,255,255,.76); padding: 12px 14px; border-radius: 999px; font-size: 14px; transition: color 180ms ease, background 180ms ease; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav .nav-cta { color: var(--white); background: rgba(124,58,237,.22); border: 1px solid rgba(196,181,253,.24); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--white); border-radius: 99px; transition: transform 180ms ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero { min-height: 780px; padding: 170px 0 104px; display: flex; align-items: center; }
.page-hero { min-height: 720px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .72fr); gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--lavender); font-size: 13px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.purple { color: var(--purple); }
h1 { margin-bottom: 24px; max-width: 880px; font-size: clamp(48px, 7.3vw, 88px); line-height: .94; letter-spacing: -0.078em; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.065em; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.14; letter-spacing: -0.04em; }
.hero-lede { max-width: 740px; color: rgba(255,255,255,.72); font-size: 19px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 21px; border-radius: 999px; font-weight: 760; font-size: 15px; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--purple), var(--violet)); box-shadow: 0 18px 48px rgba(124,58,237,.34); }
.button-secondary { color: var(--white); border: 1px solid var(--border-dark); background: rgba(255,255,255,.055); }
.section-light .button-secondary { color: var(--black); border-color: var(--border-light); background: rgba(17,17,22,.035); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-strip span { padding: 9px 12px; border: 1px solid var(--border-dark); border-radius: 999px; color: rgba(255,255,255,.68); font-size: 13px; }

.hero-panel, .quote-card, .flow-card, .bullets-card, .contact-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(22px);
}
.hero-panel { padding: 24px; }
.panel-header { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border-dark); }
.panel-header img { width: 48px; height: 48px; border-radius: 14px; }
.panel-header strong { display: block; letter-spacing: -.035em; }
.panel-header span { display: block; margin-top: 2px; color: var(--soft-grey); font-size: 13px; }
.system-stack { padding: 26px 0; }
.stack-row { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border-dark); border-radius: 16px; background: rgba(17,17,22,.55); }
.stack-row span { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--lavender); border: 1px solid rgba(196,181,253,.25); border-radius: 50%; font-size: 12px; font-weight: 800; }
.stack-row b { color: rgba(255,255,255,.9); letter-spacing: -.025em; }
.stack-row em { grid-column: 2; margin-top: 3px; color: rgba(255,255,255,.48); font-size: 13px; font-style: normal; }
.stack-row.active { border-color: rgba(139,92,246,.6); box-shadow: 0 0 0 4px rgba(124,58,237,.08); }
.stack-connector { width: 1px; height: 24px; margin-left: 32px; background: linear-gradient(var(--violet), rgba(255,255,255,.14)); }
.panel-note { margin-bottom: 0; color: var(--soft-grey); font-size: 14px; line-height: 1.55; }

.section { padding: 98px 0; }
.section-heading { margin-bottom: 42px; }
.section-heading.narrow { max-width: 790px; }
.section-heading p, .section-intro p { max-width: 760px; color: inherit; opacity: .68; }
.split-section { display: grid; grid-template-columns: .92fr .78fr; gap: 54px; align-items: start; }
.quote-card { padding: 34px; color: var(--white); background: linear-gradient(135deg, rgba(17,17,22,.92), rgba(42,36,64,.88)); }
.quote-card p { margin-bottom: 0; font-size: 22px; line-height: 1.42; letter-spacing: -.035em; color: rgba(255,255,255,.86); }
.value-grid, .service-grid, .use-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.value-grid { margin-top: 28px; }
.value-grid article, .use-case-grid article, .service-grid article { padding: 24px; border-radius: var(--radius-lg); }
.value-grid article, .use-case-grid article { border: 1px solid var(--border-light); background: rgba(255,255,255,.74); box-shadow: var(--shadow-soft); }
.value-grid span { display: block; margin-bottom: 16px; color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.value-grid p, .use-case-grid p { margin-bottom: 0; color: rgba(17,17,22,.66); }
.service-grid article { color: var(--white); border: 1px solid var(--border-dark); background: rgba(255,255,255,.055); }
.service-grid p { margin-bottom: 0; color: rgba(255,255,255,.66); }

.demo-grid, .process-grid { display: grid; grid-template-columns: .85fr 1.05fr; gap: 58px; align-items: start; }
.flow-card { padding: 18px; display: grid; gap: 12px; }
.flow-step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border-dark); border-radius: 16px; background: rgba(255,255,255,.052); }
.flow-step b, .mortgage-flow b { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); background: linear-gradient(135deg, var(--purple), var(--violet)); font-size: 13px; }
.flow-step span { color: rgba(255,255,255,.84); }
.timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.timeline div { padding: 24px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.timeline span { display: block; margin-bottom: 14px; color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.timeline p { margin-bottom: 0; color: rgba(17,17,22,.66); }

.mortgage-flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.mortgage-flow div { padding: 24px; border: 1px solid var(--border-dark); border-radius: var(--radius-lg); background: rgba(255,255,255,.055); }
.mortgage-flow h3 { margin: 18px 0 10px; color: var(--white); }
.mortgage-flow p { margin-bottom: 0; color: rgba(255,255,255,.66); }
.bullets-card { padding: 34px; background: #fff; border-color: var(--border-light); box-shadow: var(--shadow-soft); }
.bullets-card ul { margin: 0; padding-left: 20px; color: rgba(17,17,22,.74); line-height: 1.95; }
.contact-section { padding-top: 110px; padding-bottom: 110px; }
.contact-card { max-width: 920px; padding: clamp(34px, 6vw, 62px); margin: 0 auto; text-align: center; }
.contact-card p { margin-left: auto; margin-right: auto; max-width: 720px; color: rgba(255,255,255,.68); }
.contact-actions { justify-content: center; margin-bottom: 0; }

.site-footer { padding: 32px 0; color: var(--white); background: #0b0b10; border-top: 1px solid var(--border-dark); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.footer-brand .brand-word { font-size: 22px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.58); font-size: 14px; }
.footer-links a:hover { color: var(--white); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 230ms; }

@media (max-width: 1020px) {
  .brand-line { display: none; }
  .nav a { padding: 11px 10px; }
  .hero-grid, .split-section, .demo-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .value-grid, .service-grid, .use-case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mortgage-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { top: 12px; width: calc(100% - 24px); border-radius: 28px; align-items: flex-start; flex-wrap: wrap; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-word { font-size: 23px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; padding: 4px 2px 8px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { text-align: center; padding: 13px 14px; }
  .hero { min-height: auto; padding: 146px 0 78px; }
  h1 { font-size: clamp(43px, 13vw, 58px); }
  h2 { font-size: clamp(32px, 10vw, 44px); }
  .hero-lede { font-size: 17px; }
  .section { padding: 72px 0; }
  .value-grid, .service-grid, .use-case-grid, .timeline, .mortgage-flow { grid-template-columns: 1fr; }
  .quote-card, .bullets-card, .contact-card { padding: 26px; border-radius: 24px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .site-header, .nav a { transition: none; }
}
