/* ---------------------------------------------------------
   UserTrait marketing site
   Brand: Navy #0F172A (structure) · Teal #14B8A6 (signal)
   Light-first. Teal is a spotlight, never a flood.
--------------------------------------------------------- */

:root {
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white: #FFFFFF;

  --teal-800: #115E59;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;

  --bg: var(--white);
  --surface: var(--slate-50);
  --fg: var(--navy-900);
  --muted: var(--slate-500);
  --border: #E7ECF2;

  --container: 1180px;
  --radius: 16px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 32px 80px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* -------- Reveal on scroll --------
   Gated behind .js so the page is fully visible if JS never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 12px; }

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-outline {
  background: var(--white);
  color: var(--fg);
  border-color: var(--slate-200);
}
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-700); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }

/* -------- Announcement bar -------- */
.announce {
  background: var(--navy-900);
  color: var(--slate-300);
  font-size: 13.5px;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  flex-wrap: wrap;
}
.announce-pill {
  background: rgba(20, 184, 166, 0.16);
  color: var(--teal-400);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.announce a { color: var(--white); font-weight: 600; }
.announce a:hover { color: var(--teal-400); }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-lockup { display: block; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-600);
}
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--fg); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 92px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(circle at 50% 40%, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0) 62%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 7px 15px;
  border-radius: 999px;
  margin: 0 0 24px;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 15ch;
}

/* rotating word — cycles the "points" one at a time.
   It sits on its own line and is centred there, so nothing above it moves and
   short words leave no gap. Pure CSS: works with JS off; the sizer (last child,
   invisible) is the only in-flow child and sets the line height. */
.rotator {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--teal-600);
  /* The headline runs a tight line-height (1.04), so the line box is ~15px
     shorter than the font's natural ascent+descent and `overflow: hidden` was
     slicing descenders off "opportunity." / "signal.". Pad the clip area out
     and pull it back with an equal negative margin: bigger mask, same layout. */
  padding: 0.16em 0;
  margin: -0.16em 0;
}
.rotator-sizer { display: block; visibility: hidden; }
.rotator-word {
  position: absolute;
  left: 0; right: 0; top: 0;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(65%);
  animation: rotate-word 9s infinite;
}
.rotator-word:nth-child(1) { animation-delay: 0s; }
.rotator-word:nth-child(2) { animation-delay: 2.25s; }
.rotator-word:nth-child(3) { animation-delay: 4.5s; }
.rotator-word:nth-child(4) { animation-delay: 6.75s; }

@keyframes rotate-word {
  0%       { opacity: 0; transform: translateY(65%); }
  3%       { opacity: 1; transform: translateY(0); }
  22%      { opacity: 1; transform: translateY(0); }
  25%,100% { opacity: 0; transform: translateY(-65%); }
}

@media (prefers-reduced-motion: reduce) {
  .rotator-word { animation: none; opacity: 0; transform: none; }
  .rotator-word:first-child { opacity: 1; }
}

.hero-sub {
  max-width: 640px;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-micro { font-size: 13.5px; color: var(--slate-400); margin: 18px 0 0; }

/* hero product shot */
.hero-shot { width: 100%; margin-top: 62px; }

/* -------- Browser frame -------- */
.browser {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: inline-flex; gap: 6px; flex: none; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-200); }
.browser-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--slate-400);
  padding: 4px 14px;
  text-align: center;
}
.browser img { width: 100%; height: auto; }
.browser-sm { border-radius: 14px; }
.browser-sm .browser-bar { height: 36px; }

/* -------- Value strip -------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin-top: 92px;
  padding: 34px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.strip-grid div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-700);
}
.strip-grid span { font-size: 13.5px; color: var(--muted); }

/* -------- Sections -------- */
.section { padding: 112px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin: 0 0 16px;
}
.section-sub { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.62; }

/* -------- Bento -------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.bento-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--slate-200); }
.bento-lg {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
  padding: 40px;
}
.bento-copy { max-width: 420px; }
.bento-shot {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.bento-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 10px;
}
.bento-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* -------- Alternating feature rows -------- */
.feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-shot { order: 1; }
.feature-copy .section-title { font-size: clamp(28px, 3.4vw, 38px); }

.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  color: var(--navy-700);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  border-radius: 6px;
  background: var(--teal-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/62% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/62% no-repeat;
}

/* -------- Steps -------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 26px; border-top: 2px solid var(--slate-200); }
.steps li::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 42px; height: 2px;
  background: var(--teal-500);
}
.step-num {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal-700);
  margin-bottom: 10px;
}
.steps h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* -------- Channels -------- */
.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.channel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.channel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 16px;
}
.channel-icon svg { width: 21px; height: 21px; }
.channel-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 7px; }
.channel-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.channels-shot { margin-top: 56px; }

/* -------- Developers -------- */
.section-dev { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dev code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.code-card {
  background: var(--navy-900);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.code-bar .browser-dots i { background: rgba(255, 255, 255, 0.18); }
.code-file { font-size: 12.5px; color: var(--slate-400); font-family: "JetBrains Mono", monospace; }

.code-card pre {
  margin: 0;
  padding: 26px 24px 30px;
  overflow-x: auto;
}
.code-card code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #E2E8F0;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
}
.c-key { color: #5EEAD4; }
.c-str { color: #FDBA74; }
.c-fn  { color: #7DD3FC; }
.c-com { color: var(--slate-500); font-style: italic; }

/* -------- CTA -------- */
.cta-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 76px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.14), rgba(20, 184, 166, 0) 65%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-mark { margin: 0 auto 22px; }
.cta-panel h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
}
.cta-panel p { color: var(--muted); font-size: 16.5px; margin: 0 0 30px; }

.cta-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 480px; margin: 0 auto; }
.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.cta-form input::placeholder { color: var(--slate-400); }
.cta-form input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}
.cta-note { font-size: 13.5px; color: var(--slate-400); margin: 18px 0 0; }

/* -------- Footer -------- */
.site-footer { border-top: 1px solid var(--border); background: var(--white); }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; max-width: 24ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0 0 14px;
}
.footer-cols a { display: block; font-size: 14.5px; color: var(--muted); padding: 5px 0; }
.footer-cols a:hover { color: var(--teal-700); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--slate-400);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--teal-700); }

/* -------- Responsive -------- */
@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature-reverse .feature-copy,
  .feature-reverse .feature-shot { order: 0; }
  .bento-lg { grid-template-columns: 1fr; gap: 28px; }
  .bento-copy { max-width: none; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 28px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; font-size: 16px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 44px; }
  .strip { margin-top: 68px; }
  .bento { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { padding: 52px 22px; border-radius: 22px; }
  .browser-url { display: none; }
  .announce-text { display: none; }
  .announce-inner { font-size: 12.5px; gap: 8px; }
}
