/* Layout: dark-first cinematic one-page; full-bleed bands around a centered 1240px wrap.
   Motif: the arrow from the Conversite logo (visitor → client) recurs in buttons, eyebrows and the closing section. */
:root {
  --bg: #0f0e17;
  --bg-2: #17151f;
  --bg-3: #211e2d;
  --fg: #f2f0ea;
  --fg-2: #bdb9c8;
  --fg-3: #908ca1;
  --line: rgba(200, 190, 255, .10);
  --line-2: rgba(200, 190, 255, .19);
  --brand: #6d5efc;
  --brand-2: #8174ff;
  --brand-ink: #ffffff;
  --cyan: #b3abff;
  --go: #25d366;
  --go-ink: #03210f;
  --glass: rgba(15, 14, 23, .74);
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, .6);
  --gl-bg: #0f0e17;
  --gl-a: #3d32b8;
  --gl-b: #6d5efc;
  --gl-c: #1b1833;
  --gl-r: #c9c2ff;
  --band: #14131d;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-logo: "Quicksand", "Varela Round", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --nav-h: 72px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --grad: linear-gradient(100deg, var(--brand) 0%, #a99dff 100%);
  color-scheme: dark;
}

/* Light look only when chosen explicitly (toggle): ink by default, with paper sections in between. */
:root[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-2: #ffffff;
  --bg-3: #ece9e2;
  --fg: #16151d;
  --fg-2: #4a4757;
  --fg-3: #6b6878;
  --line: rgba(22, 21, 29, .09);
  --line-2: rgba(22, 21, 29, .17);
  --brand: #5a4be0;
  --brand-2: #4a3cd0;
  --brand-ink: #ffffff;
  --cyan: #5a4be0;
  --go: #25d366;
  --go-ink: #03210f;
  --glass: rgba(245, 243, 238, .8);
  --shadow: 0 26px 56px -34px rgba(40, 30, 90, .28);
  --gl-bg: #f5f3ee;
  --gl-a: #d9d4ff;
  --gl-b: #eae6ff;
  --gl-c: #f1eee7;
  --gl-r: #5a4be0;
  --band: #eeebe3;
  color-scheme: light;
}

/* Reading sections: a slightly lighter band, so the page keeps its rhythm (ink in the dark look, paper in the light one). */
.paper { background: var(--band); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--bg);
}
::selection { background: var(--brand); color: var(--brand-ink); }
a { color: inherit; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--brand); color: var(--brand-ink); padding: .7em 1em; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(16px + env(safe-area-inset-top, 0px)); }

/* ---------- Type ---------- */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s var(--ease-io) infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font: 500 .76rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

/* ---------- Logo: the real Conversite logo, white wordmark on dark and black on light ---------- */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo-img { display: block; height: 28px; width: auto; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
.foot-brand .logo-img { height: 32px; }
@media (max-width: 420px) { .nav .logo-img { height: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 1rem/1 var(--f-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  padding: 1em 1.45em; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary {
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--brand) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-ghost {
  color: var(--fg); background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.btn-go { background: var(--go); color: var(--go-ink); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--go) 70%, transparent); }
.btn-sm { font-size: .9rem; padding: .78em 1.15em; }
.btn-lg { font-size: 1.05rem; padding: 1.12em 1.6em; }
.btn-xl { font-size: clamp(1.05rem, 1.6vw, 1.25rem); padding: 1.25em 2em; }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cyan); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s, border-color .4s;
}
.cursor.hover .cursor-ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: color-mix(in srgb, var(--cyan) 10%, transparent); border-color: transparent; }

/* ---------- Header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, transform .6s var(--ease), backdrop-filter .4s;
}
.nav.scrolled { background: var(--glass); border-color: var(--line); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.nav-links {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-links a {
  display: block; padding: .5em 1.05em; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: .93rem; font-weight: 500; color: var(--fg-2); transition: color .3s, background-color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--bg-3); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--fg-2); transition: color .3s, border-color .3s, transform .5s var(--ease);
}
.icon-btn:hover { color: var(--fg); border-color: var(--fg-3); transform: rotate(20deg); }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
.menu-btn { display: none; gap: 8px; align-items: center; padding: .7em 1.1em; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; }
.menu-btn i { display: grid; gap: 4px; width: 16px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.menu-open .menu-btn i::before { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-menu li { animation: mmIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
.mobile-menu ul a { display: flex; justify-content: space-between; align-items: center; padding: .35em 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 clamp(1.7rem, 8vw, 2.4rem)/1.2 var(--f-display); letter-spacing: -.03em; }
.mobile-menu ul a .ico { color: var(--cyan); }
@keyframes mmIn { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(40px, 8vh, 100px));
  padding-bottom: clamp(72px, 11vh, 130px);
  background:
    radial-gradient(60% 70% at 80% 30%, color-mix(in srgb, var(--gl-a) 45%, transparent), transparent 70%),
    radial-gradient(40% 50% at 95% 80%, color-mix(in srgb, var(--gl-b) 30%, transparent), transparent 70%),
    var(--bg);
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 60% 35%, #000 20%, transparent 75%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: 0; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero-copy { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .65em; margin: 0 0 30px;
  padding: .5em 1em .5em .7em; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .86rem; font-weight: 500; color: var(--fg-2);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--go); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 80%, 100% { transform: scale(3.2); opacity: 0; } }

.hero-title { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-size: clamp(2.45rem, 5.1vw, 4.7rem); }
.hero-title .kicker {
  display: block; margin-bottom: 22px;
  font: 500 clamp(.74rem, 1vw, .86rem)/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
}
.hero-title .line { display: block; overflow: hidden; padding: .04em .02em .1em; margin-bottom: -.1em; }
.hero-title .wd { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 22ms + 60ms); }
.hero-title em { display: inline-block; font-size: 1.16em; line-height: .86; padding-right: .08em; transition: transform 1.1s var(--ease) .3s; }
.lead { max-width: 33em; margin: 30px 0 38px; font-size: clamp(1.05rem, 1.35vw, 1.24rem); line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.lead strong { color: var(--fg); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ready { display: grid; gap: 12px; margin-top: 44px; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.hero-proof li {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px 8px 8px; border-radius: 14px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-proof .ico { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--cyan); }
.hero-proof strong { display: block; font: 500 .95rem/1.2 var(--f-display); letter-spacing: -.02em; }
.hero-proof small { display: block; font-size: .8rem; line-height: 1.3; color: var(--fg-3); white-space: nowrap; }
/* Narrow two-column hero: keep the three chips on one line by showing just the name. */
@media (min-width: 981px) and (max-width: 1240px) { .hero-proof small { display: none; } }
.ld { transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }

/* Load choreography: transform only, so every word is painted in the first frame (good for LCP). */
.motion.loading .hero-title .ch { transform: translateY(.42em) rotate(5deg); }
.motion.loading .hero-title em { transform: translateY(.3em); }
.motion.loading .ld { transform: translateY(18px); }
.motion.loading .hero-visual { transform: translateY(40px) scale(.97); }

/* Scroll reveal: transform only, so content is always readable even before it animates. */
.motion .rv { transition: transform 1.2s var(--ease) var(--d, 0s); }
.motion .rv:not(.in) { transform: translateY(42px); }
