/* SourcePair Partners — v3 */

:root {
  --teal: #0083AD;
  --teal-bright: #08A7C7;
  --midnight: #081320;
  --midnight-deep: #050B12;
  --slate: #1B263B;
  --stone: #F2F4F6;
  --stone-muted: #C0CAD3;
  --sand: #E6D7B8;
  --coral: #E36A5C;
  --coral-hot: #F17466;
  --line: rgba(242, 244, 246, .115);
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
  --radius: 18px;
  --max: 1140px;
  --header: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--midnight-deep);
}

body {
  margin: 0;
  color: var(--stone);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  background:
    radial-gradient(circle at 76% 5%, rgba(0, 131, 173, .12), transparent 29rem),
    radial-gradient(circle at 12% 20%, rgba(230, 215, 184, .045), transparent 28rem),
    linear-gradient(180deg, #06101A 0%, #081320 44%, #060F19 100%);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background:
    repeating-radial-gradient(circle at 73% 12%, transparent 0 21px, rgba(242, 244, 246, .052) 22px, transparent 24px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.88) 30%, transparent 90%);
}

a { color: inherit; text-decoration: none; }

p {
  margin: 0;
  color: var(--stone-muted);
}

.site-grid {
  width: min(var(--max), calc(100% - 52px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(26px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 18, .82);
  backdrop-filter: blur(18px);
}

.header-logo {
  display: block;
  width: 185px;
  max-width: 42vw;
  height: auto;
}

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

nav a {
  color: rgba(242, 244, 246, .79);
  font-size: 13px;
  font-weight: 700;
}

nav a:hover { color: var(--stone); }

.nav-cta {
  border: 1px solid rgba(242, 244, 246, .34);
  padding: 9px 14px;
  border-radius: 999px;
}

.section {
  position: relative;
  padding: 108px 0;
}

.hero {
  min-height: calc(100vh - var(--header));
  display: flex;
  align-items: center;
  padding: 94px 0 112px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(340px, .82fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  color: var(--teal-bright);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .36em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--stone);
  font-family: "Raleway", sans-serif;
  line-height: 1;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(50px, 5.9vw, 86px);
  max-width: 720px;
}

h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  max-width: 720px;
}

h3 {
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -.018em;
}

.lead {
  max-width: 720px;
  font-size: clamp(17px, 1.35vw, 20px);
  color: rgba(242, 244, 246, .82);
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #06101A;
  background: var(--coral);
  box-shadow: 0 14px 40px rgba(227, 106, 92, .22);
}

.button-primary:hover { background: var(--coral-hot); }

.button-secondary {
  color: var(--stone);
  border-color: var(--line);
  background: rgba(242, 244, 246, .048);
}

.hero-brand-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(27, 38, 59, .44), rgba(6, 16, 26, .78));
  box-shadow: var(--shadow);
  min-height: 420px;
  display: grid;
  align-items: center;
}

.hero-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 72% 30%, transparent 0 21px, rgba(242,244,246,.035) 22px, transparent 24px);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.04);
}

.what, .approach, .contact {
  background: rgba(5, 11, 18, .18);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 22px;
}

.copy-stack p,
.section-copy {
  font-size: 17px;
  color: rgba(242, 244, 246, .78);
  max-width: 780px;
}

.section-heading {
  margin-bottom: 38px;
  max-width: 740px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.process-card,
.contact-form,
.proof-card,
.thanks-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 38, 59, .88), rgba(12, 24, 38, .92));
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.card {
  min-height: 242px;
  padding: 25px;
}

.card-number,
.process-card span {
  color: var(--sand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.card h3 { margin-top: 20px; }

.card p,
.process-card p {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(242, 244, 246, .75);
}

.wide-card {
  grid-column: span 2;
  min-height: 205px;
}

.approach-intro {
  align-items: end;
  margin-bottom: 36px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  padding: 23px;
  min-height: 234px;
}

.process-card h3 { margin-top: 48px; }

.proof-card {
  position: relative;
  overflow: hidden;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr);
  gap: 64px;
}

.proof-card::after {
  content: "";
  position: absolute;
  right: -96px;
  top: 20px;
  width: 370px;
  height: 370px;
  opacity: .22;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(0, 131, 173, .35) 23px, transparent 25px);
}

.proof-card > * {
  position: relative;
  z-index: 1;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-top: 1px solid var(--line);
  color: rgba(242, 244, 246, .86);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 5px;
  height: 5px;
  background: var(--teal-bright);
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(380px, 1fr);
  gap: 74px;
  align-items: start;
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 13px;
  font-weight: 900;
  color: rgba(242, 244, 246, .86);
}

input, textarea {
  width: 100%;
  border: 1px solid rgba(242, 244, 246, .12);
  border-radius: 10px;
  color: var(--stone);
  background: rgba(5, 11, 18, .68);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(0, 131, 173, .16);
}

textarea { resize: vertical; }

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 4px;
}

.hidden { display: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  background: rgba(5, 11, 18, .6);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  width: 160px;
}

.site-footer p { font-size: 13px; }

.thank-you-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.thanks-card {
  max-width: 760px;
  padding: 54px;
}

.thanks-logo {
  width: 280px;
  max-width: 100%;
  margin-bottom: 30px;
}

.thanks-card h1 {
  font-size: clamp(42px, 7vw, 76px);
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-col,
  .proof-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero { min-height: auto; }
  .hero-brand-panel { min-height: 0; }
  .hero-logo { transform: none; }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wide-card {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  :root { --header: auto; }

  .site-grid {
    width: min(100% - 34px, var(--max));
  }

  .site-header {
    position: relative;
    padding: 18px 17px;
    align-items: flex-start;
    gap: 16px;
  }

  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  nav a { font-size: 12px; }

  .header-logo {
    width: 150px;
    max-width: 48vw;
  }

  .section { padding: 76px 0; }
  .hero { padding: 60px 0 80px; }

  h1 { font-size: clamp(46px, 13vw, 64px); }
  h2 { font-size: clamp(34px, 10vw, 50px); }

  .lead,
  .copy-stack p,
  .section-copy {
    font-size: 16.5px;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .wide-card { grid-column: auto; }

  .card,
  .process-card,
  .proof-card,
  .contact-form,
  .thanks-card {
    padding: 24px;
  }

  .process-card { min-height: 188px; }
  .process-card h3 { margin-top: 28px; }

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

  .footer-logo {
    width: 150px;
  }
}


/* =========================
   v4 refinements
   ========================= */

/* Header logo: prevent vertical clipping with raster lockup */
:root {
  --header: 84px;
  --sand-soft: rgba(230, 215, 184, .12);
  --sand-panel: rgba(230, 215, 184, .075);
  --sand-line: rgba(230, 215, 184, .24);
}

.site-header {
  height: var(--header);
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: visible;
  align-items: center;
  border-bottom-color: rgba(230, 215, 184, .14);
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: visible;
}

.header-logo {
  width: auto;
  height: 54px;
  max-height: 54px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Hero alignment: pull logo panel up to align with headline mass */
.hero-grid {
  align-items: start;
}

.hero-copy {
  padding-top: 42px;
}

.hero-brand-panel {
  margin-top: 22px;
  min-height: 330px;
  border-color: rgba(230, 215, 184, .16);
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 131, 173, .08), transparent 18rem),
    linear-gradient(180deg, rgba(9, 20, 31, .06), rgba(6, 16, 26, .48));
}

/* Remove visual top band/artifact from the raster panel */
.hero-brand-panel::before {
  display: none !important;
  content: none !important;
}

.hero-brand-panel::after {
  opacity: .52;
}

.hero-logo {
  transform: scale(.98);
}

/* More warm/sand relief without abandoning dark brand */
body {
  background:
    radial-gradient(circle at 76% 5%, rgba(0, 131, 173, .12), transparent 29rem),
    radial-gradient(circle at 10% 18%, rgba(230, 215, 184, .075), transparent 32rem),
    linear-gradient(180deg, #06101A 0%, #081320 42%, #07111C 100%);
}

.warm-section,
.warm-band {
  background:
    radial-gradient(circle at 16% 0%, rgba(230, 215, 184, .08), transparent 24rem),
    linear-gradient(180deg, rgba(230, 215, 184, .022), rgba(5, 11, 18, .18));
}

.warm-copy,
.warm-copy p {
  color: rgba(230, 215, 184, .86);
}

/* Cards: warmer, less generic SaaS, category labels instead of sterile numbers */
.service-card,
.process-card {
  background:
    linear-gradient(180deg, rgba(230, 215, 184, .09), rgba(27, 38, 59, .82) 26%, rgba(12, 24, 38, .92));
  border-color: rgba(230, 215, 184, .18);
}

.card-number,
.process-card span {
  color: var(--sand);
  font-size: 11px;
  letter-spacing: .20em;
}

.service-card p,
.process-card p {
  color: rgba(230, 215, 184, .76);
}

.process-card h3 {
  margin-top: 40px;
}

/* CTA/nav warmth */
.nav-cta,
.button-secondary {
  border-color: rgba(230, 215, 184, .38);
}

.button-secondary {
  background: rgba(230, 215, 184, .055);
}

/* Footer logo: same clipping protection */
.footer-logo {
  width: auto;
  height: 58px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

/* Desktop landing balance */
@media (min-width: 1041px) {
  .hero {
    padding-top: 70px;
  }

  .hero-brand-panel {
    align-self: start;
  }
}

/* Mobile/tablet: keep header safe */
@media (max-width: 720px) {
  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-logo {
    height: 48px;
    max-height: 48px;
    max-width: 170px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-brand-panel {
    margin-top: 0;
  }

  .footer-logo {
    height: 50px;
    max-height: 50px;
  }
}
