/* GS CRM — public homepage. Scoped to .home-body; builds on app.css. */

.home-body {
  --home-bg: #07111F;
  --home-bg-2: #0A1626;
  --home-text: #E8EEF6;
  --home-text-2: #AEBACB;
  --home-muted: #7F8EA3;
  --home-line: rgba(148, 163, 184, 0.14);
  --home-line-2: rgba(148, 163, 184, 0.22);
  --home-sun: #FFD84D;
  --home-sun-2: #FFE37A;
  --home-radius: 10px;
  margin: 0;
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.home-body h1,
.home-body h2,
.home-body h3 {
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  color: var(--home-text);
  margin: 0;
  letter-spacing: -0.015em;
}

:where(.home-body) p { margin: 0; }
:where(.home-body) a { color: inherit; }

.home-wrap {
  width: min(1160px, 100% - 64px);
  margin-inline: auto;
}

.home-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--home-sun);
  color: #07111F;
  font-weight: 600;
  text-decoration: none;
}
.home-skip:focus { top: 12px; }

.home-body a:focus-visible {
  outline: 2px solid var(--home-sun-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ── */

.home-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--home-line);
}

.home-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.home-brand img { border-radius: 7px; }

.home-wordmark {
  font-family: "Outfit", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.home-wordmark span { color: var(--home-sun); }

.home-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}
.home-nav a:not(.home-btn) {
  color: var(--home-text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.home-nav a:not(.home-btn):hover { color: var(--home-text); }

/* ── Buttons ── */

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid var(--home-sun);
  background: var(--home-sun);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.home-body a.home-btn { color: #15110A; }
.home-btn:hover { background: var(--home-sun-2); border-color: var(--home-sun-2); }

.home-btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.88rem; }

.home-body a.home-btn-ghost {
  background: transparent;
  color: var(--home-text);
  border-color: var(--home-line-2);
}
.home-body a.home-btn-ghost:hover { background: rgba(148, 163, 184, 0.08); border-color: rgba(203, 213, 225, 0.36); }

.home-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--home-line-2);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.home-link-btn svg { width: 16px; height: 16px; color: var(--home-sun); transition: transform 0.15s ease; }
.home-link-btn:hover { background: rgba(148, 163, 184, 0.08); border-color: rgba(203, 213, 225, 0.36); }
.home-link-btn:hover svg { transform: translateX(2px); }

/* ── Hero + product ── */

.home-hero {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, var(--home-bg-2) 0%, var(--home-bg) 560px);
  border-bottom: 1px solid var(--home-line);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
}

.home-eyebrow {
  color: var(--home-sun);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.home-hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 15ch;
}

.home-lede {
  color: var(--home-text-2);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 48ch;
}

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

.home-product {
  margin: 64px 0 0;
}

.home-product-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--home-line-2);
  background: #050C17;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.home-product-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-top: 28px;
}
.home-product-caption p { color: var(--home-text-2); font-size: 0.95rem; max-width: 62ch; }

.home-body .home-caption-title {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-caption-arch {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.home-body .home-caption-arch p { color: var(--home-muted); font-size: 0.9rem; }

/* ── Sections ── */

.home-section { padding: 104px 0; }
.home-section-alt {
  background: var(--home-bg-2);
  border-block: 1px solid var(--home-line);
}

.home-section-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  max-width: 22ch;
}
.home-section-head p {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--home-text-2);
  font-size: 1.04rem;
}

.home-body h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.35; }

/* Workflow: one connected process line, not cards */

.home-flow {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}

.home-flow-step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--home-line-2);
}
.home-flow-step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-sun);
}
.home-flow-num {
  display: block;
  margin-bottom: 10px;
  color: var(--home-muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.home-flow-step p { margin-top: 8px; color: var(--home-text-2); font-size: 0.93rem; line-height: 1.55; }

/* Features: one primary capability, six key features, then a compact list */

.home-record {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: center;
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--home-line);
  background: var(--home-bg);
}

.home-kicker {
  color: var(--home-sun);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.home-body .home-record-copy h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.2;
  max-width: 22ch;
}
.home-record-copy p:last-child { margin-top: 16px; color: var(--home-text-2); max-width: 52ch; }

.home-record-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.home-record-tabs li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--home-line);
  font-weight: 500;
}
.home-record-tabs span {
  color: var(--home-muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.home-key-features {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 56px;
}
.home-feature-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 16px;
  color: var(--home-sun);
}
.home-key-feature p { margin-top: 8px; color: var(--home-text-2); font-size: 0.95rem; }

.home-more {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--home-line);
}
.home-body .home-more-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--home-muted);
  letter-spacing: 0;
}
.home-more-list {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 40px;
}
.home-more-list dt { font-weight: 600; font-size: 0.95rem; }
.home-more-list dd { margin: 4px 0 0; color: var(--home-text-2); font-size: 0.9rem; line-height: 1.55; }

/* Split sections (integrations, multi-company) */

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 96px;
  align-items: start;
}

.home-integrations,
.home-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}
.home-integrations li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--home-line);
}
.home-integrations p { color: var(--home-text-2); font-size: 0.95rem; }

.home-checks li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--home-line);
  font-weight: 500;
}
.home-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--home-sun);
  border-bottom: 2px solid var(--home-sun);
  transform: translateY(-70%) rotate(-45deg);
}

/* Final CTA */

.home-final { padding: 88px 0; }
.home-final-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.home-final h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 600; }
.home-final p { margin-top: 8px; color: var(--home-text-2); }
.home-final .home-cta { margin-top: 0; }

/* ── Footer ── */

.home-footer {
  border-top: 1px solid var(--home-line);
  padding: 28px 0;
  color: var(--home-muted);
  font-size: 0.88rem;
}
.home-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.home-footer nav { display: flex; gap: 20px; }
.home-footer a { color: var(--home-text-2); text-decoration: none; }
.home-footer a:hover { color: var(--home-text); }

/* ── Utilities ── */

.home-nowrap { white-space: nowrap; }

.home-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;
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  .home-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .home-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-split { gap: 40px 56px; }
}

@media (max-width: 900px) {
  .home-hero { padding: 64px 0 56px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .home-hero h1 { max-width: 18ch; }
  .home-product { margin-top: 48px; }
  .home-product-caption { flex-direction: column; align-items: flex-start; }
  .home-section { padding: 88px 0; }
  .home-record { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .home-key-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .home-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-wrap { width: min(1160px, 100% - 40px); }
  .home-nav { gap: 0; }
  .home-nav a:not(.home-btn) { display: none; }
  .home-hero { padding: 44px 0 44px; }
  .home-eyebrow { margin-bottom: 14px; }
  .home-cta .home-btn { flex: 1 1 100%; }
  .home-product { margin-top: 36px; }
  .home-product-frame { border-radius: 8px; }
  .home-product-caption { margin-top: 20px; gap: 20px; }
  .home-caption-arch { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .home-link-btn { justify-content: center; }
  .home-section { padding: 64px 0; }
  .home-flow { grid-template-columns: 1fr; gap: 0; margin-top: 36px; border-left: 1px solid var(--home-line-2); }
  .home-flow-step { border-top: 0; padding: 0 0 28px 24px; }
  .home-flow-step:last-child { padding-bottom: 0; }
  .home-flow-step::before { top: 6px; left: -4px; }
  .home-flow-num { margin-bottom: 4px; }
  .home-record { padding: 24px; margin-top: 36px; }
  .home-record-tabs { column-gap: 20px; }
  .home-key-features { grid-template-columns: 1fr; margin-top: 48px; gap: 32px; }
  .home-more { margin-top: 48px; }
  .home-more-list { grid-template-columns: 1fr; }
  .home-integrations li { grid-template-columns: 1fr; gap: 4px; }
  .home-final { padding: 64px 0; }
  .home-final .home-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-body *,
  .home-body *::before,
  .home-body *::after { transition: none !important; }
}
