/* Connect landing — signature experience layer.
   Purpose: make the marketing page feel authored for Connect rather than like a
   generic dark Awwwards template. It keeps the existing content and interaction
   contracts, then adds a warm-graphite visual system and scroll-story affordances. */

.connect-site {
  --sig-graphite: #101210;
  --sig-graphite-2: #171916;
  --sig-graphite-3: #20211d;
  --sig-ivory: #fffaf2;
  --sig-paper: #f4ebdf;
  --sig-copper: #aa682b;
  --sig-champagne: #e2b176;
  --sig-teal: #3eb49d;
  --sig-line: rgba(95, 66, 39, .18);
}

/* ---------- Floating compact header ---------- */
@media (min-width: 960px) {
  .connect-site .lp-header {
    padding-top: 10px;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
  }
  .connect-site .lp-header-inner {
    pointer-events: auto;
    width: min(1120px, calc(100% - 32px));
    min-height: 58px;
    padding: 7px 9px 7px 15px;
    border: 1px solid rgba(91, 68, 43, .14);
    border-radius: 999px;
    background: rgba(255, 251, 244, .86);
    box-shadow: 0 12px 36px rgba(58, 40, 22, .07), inset 0 1px 0 rgba(255,255,255,.82);
    backdrop-filter: blur(22px) saturate(128%);
    transition: transform 420ms cubic-bezier(.32,.72,0,1), background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
  }
  .connect-site .lp-header:is(.is-scrolled,.scrolled) .lp-header-inner {
    transform: translateY(-2px);
    background: rgba(255, 251, 244, .95);
    border-color: rgba(91, 68, 43, .20);
    box-shadow: 0 18px 46px rgba(58, 40, 22, .10), inset 0 1px 0 rgba(255,255,255,.92);
  }
  .connect-site .lp-brand img { width: 34px; height: 34px; }
  /*  `opacity: .68` composited --muted (#6B6862, 5.70:1 on the header) down to
      #9b9791, which is 2.77:1. The tagline under the wordmark is text, not a
      texture; it is dimmed by being --muted and small, not by being faded. */
  .connect-site .lp-brand small { opacity: 1; }
}

html[data-theme="dark"] .connect-site {
  --bg: #0b0d0c;
  --bg-2: #10120f;
  --surface: #151713;
  --surface-2: #1b1d18;
  --ink: #f4eee5;
  --muted: #aaa49a;
  --line: rgba(226, 177, 118, .11);
  --line-strong: rgba(226, 177, 118, .20);
  --accent: #ce8846;
  --accent-2: #efc18b;
  --accent-soft: rgba(206, 136, 70, .11);
  --accent-text: #efc18b;
  --lp-navy: #0d100f;
  --lp-on-navy: #fff7ec;
  --lp-navy-muted: #b8afa4;
  --lp-success: #4bc3a9;
  --lp-success-soft: rgba(75,195,169,.11);
}

html[data-theme="dark"] body.connect-site::before {
  background:
    radial-gradient(900px 520px at 82% 4%, rgba(213, 143, 72, .18), transparent 68%),
    radial-gradient(680px 480px at 8% 18%, rgba(75, 195, 169, .050), transparent 74%),
    radial-gradient(760px 520px at 50% 82%, rgba(138, 98, 55, .065), transparent 76%),
    linear-gradient(180deg, #0b0d0c 0%, #10110f 50%, #090b0a 100%);
}

@media (min-width: 960px) {
  html[data-theme="dark"] .connect-site .lp-header-inner {
    background: rgba(14, 16, 14, .82);
    border-color: rgba(239, 193, 139, .12);
    box-shadow: 0 16px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
  }
  html[data-theme="dark"] .connect-site .lp-header:is(.is-scrolled,.scrolled) .lp-header-inner {
    background: rgba(15, 17, 15, .95);
    border-color: rgba(239, 193, 139, .18);
    box-shadow: 0 20px 56px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.045);
  }
}

/* ---------- Hero: warm material, not generic black ---------- */
.connect-site .lp-hero {
  isolation: isolate;
  overflow: clip;
}
.connect-site .lp-hero::before,
.connect-site .lp-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.connect-site .lp-hero::before {
  width: min(760px, 64vw);
  aspect-ratio: 1;
  right: -19%;
  top: -30%;
  border-radius: 50%;
  border: 1px solid rgba(174, 113, 51, .14);
  box-shadow: 0 0 0 58px rgba(174, 113, 51, .025), 0 0 0 118px rgba(174, 113, 51, .018);
}
.connect-site .lp-hero::after {
  inset: auto 0 0 auto;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,180,157,.52), rgba(226,177,118,.72));
  transform-origin: right center;
}
html[data-theme="dark"] .connect-site .lp-hero {
  background:
    radial-gradient(760px 460px at 79% 14%, rgba(206,136,70,.13), transparent 68%),
    linear-gradient(145deg, rgba(27,26,21,.96) 0%, rgba(14,17,15,.98) 54%, rgba(10,15,13,.99) 100%);
  border-color: rgba(239,193,139,.14);
  box-shadow: 0 42px 110px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-theme="dark"] .connect-site .lp-demo {
  border-color: rgba(239,193,139,.16);
  background: linear-gradient(150deg, rgba(37,35,29,.92), rgba(17,21,18,.96));
  box-shadow: 0 38px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .connect-site .lp-workspace {
  background: linear-gradient(180deg, rgba(20,22,19,.96), rgba(12,15,13,.98));
}

/* ---------- Relationship signal ribbon ---------- */
.connect-signal-ribbon {
  width: min(1320px, calc(100% - 28px));
  margin: clamp(12px, 2vw, 24px) auto clamp(48px, 6vw, 86px);
  overflow: hidden;
  border-block: 1px solid rgba(126, 91, 54, .14);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.connect-signal-track {
  display: flex;
  width: max-content;
  gap: 34px;
  align-items: center;
  min-height: 54px;
  will-change: transform;
}
.connect-signal-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.connect-signal-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sig-copper);
  box-shadow: 0 0 0 4px rgba(170,104,43,.08);
}
.connect-signal-item:nth-child(4n+2)::before { background: var(--sig-teal); box-shadow: 0 0 0 4px rgba(62,180,157,.08); }
.connect-signal-item:nth-child(4n+3)::before { background: var(--sig-champagne); }
html[data-theme="dark"] .connect-signal-ribbon { border-block-color: rgba(239,193,139,.10); }

/* ---------- Lifecycle becomes a real scroll progression ---------- */
.connect-site #lifecycle .lp-journey {
  --journey-progress: 0;
  position: relative;
}
@media (min-width: 960px) {
  .connect-site #lifecycle .lp-journey::before,
  .connect-site #lifecycle .lp-journey::after {
    content: "";
    position: absolute;
    left: 4.5%;
    right: 4.5%;
    top: 26px;
    height: 1px;
    pointer-events: none;
    transform-origin: left center;
  }
  .connect-site #lifecycle .lp-journey::before { background: rgba(126,91,54,.18); }
  .connect-site #lifecycle .lp-journey::after {
    background: linear-gradient(90deg, var(--sig-copper), var(--sig-champagne) 68%, var(--sig-teal));
    transform: scaleX(var(--journey-progress));
    transition: transform 80ms linear;
  }
  html[data-theme="dark"] .connect-site #lifecycle .lp-journey::before { background: rgba(239,193,139,.12); }
}
.connect-site #lifecycle .lp-journey article {
  transition: opacity 420ms ease, border-color 420ms ease, box-shadow 420ms ease, background 420ms ease;
}
.connect-site #lifecycle .lp-journey article:not(.is-current) { opacity: .62; }
.connect-site #lifecycle .lp-journey article.is-current {
  opacity: 1;
  border-color: rgba(170,104,43,.34);
  box-shadow: 0 24px 58px rgba(65,46,27,.10), inset 0 1px 0 rgba(255,255,255,.72);
}
html[data-theme="dark"] .connect-site #lifecycle .lp-journey article:not(.is-current) { opacity: .54; }
html[data-theme="dark"] .connect-site #lifecycle .lp-journey article.is-current {
  border-color: rgba(239,193,139,.25);
  background: linear-gradient(145deg, rgba(31,30,25,.94), rgba(16,20,17,.96));
  box-shadow: 0 28px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
}

/* ---------- Channels: a bronze observatory, not a black card strip ---------- */
.connect-site #channels {
  background:
    radial-gradient(860px 500px at 72% 18%, rgba(210,139,69,.16), transparent 68%),
    radial-gradient(620px 420px at 14% 76%, rgba(62,180,157,.055), transparent 72%),
    linear-gradient(145deg, #211a14 0%, #121714 48%, #0c1210 100%);
}
.connect-site #channels::before {
  content: "";
  position: absolute;
  inset: 18px 5% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,193,139,.34), transparent);
  pointer-events: none;
}
.connect-site #channels .lp-channel {
  background: linear-gradient(150deg, rgba(46,37,28,.78), rgba(16,22,19,.90));
  border-color: rgba(239,193,139,.17);
}
.connect-site #channels .lp-channel::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,193,139,.36), transparent);
  opacity: .65;
}
.connect-site #channels .lp-channel.is-current {
  border-color: rgba(239,193,139,.38);
  box-shadow: 0 34px 78px rgba(0,0,0,.38), 0 0 0 1px rgba(239,193,139,.05) inset;
}

/* ---------- Product proof: scroll-controlled gallery with intentional light break in dark mode ---------- */
.connect-site .lp-proof-layout {
  position: relative;
  border-radius: 2rem;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(126,91,54,.14);
  background: linear-gradient(145deg, rgba(255,252,247,.70), rgba(238,226,210,.64));
  box-shadow: 0 32px 86px rgba(59,42,23,.08), inset 0 1px 0 rgba(255,255,255,.78);
}
.connect-proof-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.connect-proof-status::before {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--sig-copper), var(--sig-teal));
}
.connect-proof-status strong { color: var(--ink); font-weight: 700; }
.connect-site .lp-proof-tabs button {
  position: relative;
  transition: color 320ms ease, background 320ms ease, border-color 320ms ease, transform 420ms cubic-bezier(.32,.72,0,1);
}
.connect-site .lp-proof-tabs button[aria-selected="true"] { transform: translateX(5px); }
.connect-site .lp-proof-screen {
  position: relative;
  background: #111513;
  border-color: rgba(126,91,54,.18);
  box-shadow: 0 28px 72px rgba(31,22,14,.16), inset 0 1px 0 rgba(255,255,255,.06);
}
.connect-site .lp-proof-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(226,177,118,.55), rgba(62,180,157,.34), transparent);
}
html[data-theme="dark"] .connect-site .lp-proof-layout {
  color: #191a17;
  border-color: rgba(226,177,118,.24);
  background:
    radial-gradient(620px 360px at 84% 4%, rgba(75,195,169,.075), transparent 70%),
    linear-gradient(145deg, #f6eee4 0%, #eadfce 100%);
  box-shadow: 0 42px 110px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.82);
}
html[data-theme="dark"] .connect-site .lp-proof-layout :is(h2,h3,strong) { color: #171916; }
html[data-theme="dark"] .connect-site .lp-proof-layout :is(p,.lp-label,.connect-proof-status) { color: #67635c; }
html[data-theme="dark"] .connect-site .lp-proof-layout .lp-label { color: #89511f; }
html[data-theme="dark"] .connect-site .lp-proof-layout .connect-proof-status strong { color: #171916; }
html[data-theme="dark"] .connect-site .lp-proof-tabs button {
  color: #4f4d48;
  border-color: rgba(86,65,42,.16);
  background: rgba(255,255,255,.22);
}
html[data-theme="dark"] .connect-site .lp-proof-tabs button[aria-selected="true"] {
  color: #171916;
  border-color: rgba(137,81,31,.30);
  background: rgba(255,250,242,.74);
}

/* ---------- Closing message: restrained editorial finish ---------- */
.connect-site .lp-closing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 300px at 88% 20%, rgba(226,177,118,.13), transparent 70%),
    linear-gradient(145deg, #171814 0%, #0d1210 100%);
  color: #fff7ec;
  border-color: rgba(239,193,139,.17);
  box-shadow: 0 40px 96px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035);
}
.connect-site .lp-closing::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -190px;
  border-radius: 50%;
  border: 1px solid rgba(239,193,139,.14);
  box-shadow: 0 0 0 55px rgba(239,193,139,.025), 0 0 0 110px rgba(62,180,157,.018);
}
.connect-site .lp-closing :is(p,.lp-signin) { color: #c8c0b6; }
.connect-site .lp-closing .lp-label { color: #e4ad6c; }
.connect-site .lp-closing .connect-word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Dark mode should feel like a crafted night material, not uniform black cards. */
html[data-theme="dark"] .connect-site .lp-pain-grid article,
html[data-theme="dark"] .connect-site .lp-journey article,
html[data-theme="dark"] .connect-site .lp-policy,
html[data-theme="dark"] .connect-site .lp-knowledge-map,
html[data-theme="dark"] .connect-site .lp-why-now,
html[data-theme="dark"] .connect-site .lp-start-steps > li {
  background: linear-gradient(145deg, rgba(31,30,25,.92), rgba(16,20,17,.96));
  border-color: rgba(239,193,139,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="dark"] .connect-site #problem,
html[data-theme="dark"] .connect-site #who,
html[data-theme="dark"] .connect-site #start {
  background:
    linear-gradient(180deg, rgba(11,13,12,.18), rgba(22,20,16,.34));
}

@media (max-width: 959px) {
  .connect-signal-ribbon { width: calc(100% - 20px); margin-bottom: 48px; }
  .connect-signal-track { min-height: 46px; gap: 26px; }
  .connect-site #lifecycle .lp-journey article:not(.is-current) { opacity: 1; }
  .connect-site .lp-proof-layout { padding: 22px 16px; border-radius: 1.45rem; }
  html[data-theme="dark"] .connect-site .lp-proof-layout {
    background: linear-gradient(145deg, #f2e9dd, #e5d8c5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-signal-track { transform: none !important; }
  .connect-site #lifecycle .lp-journey article { opacity: 1 !important; }
  .connect-site .lp-proof-tabs button[aria-selected="true"] { transform: none; }
  .connect-site .lp-closing .connect-word { opacity: 1 !important; transform: none !important; }
}
