:root {
  --green:        #00A184;
  --green-bright: #00C9A7;
  --green-dim:    rgba(0,161,132,0.12);
  --green-glow:   rgba(0,161,132,0.22);
  --bg:           #181D2A;
  --bg-card:      #1F2535;
  --bg-elevated:  #262D3F;
  --bg-raised:    #2D3548;
  --text-1:       #F5F6F0;
  --text-2:       #D8E8F0;
  --text-3:       #A8C4D4;
  --border:       rgba(145,172,189,0.1);
  --border-green: rgba(0,161,132,0.28);
  --accent-blue:  #506A85;
  --accent-soft:  #9CD08F;
  --accent-warm:  #E4E9B2;
}

/* ─── Light theme overrides ─────────────────────────────── */
[data-theme="light"] {
  --bg:           #F2F4F9;
  --bg-card:      #FFFFFF;
  --bg-elevated:  #E9ECF5;
  --bg-raised:    #DDE2EF;
  --text-1:       #0D1320;
  --text-2:       #2B3A52;
  --text-3:       #5A6F84;
  --border:       rgba(0,0,0,0.09);
  --border-green: rgba(0,161,132,0.3);
  --accent-warm:  #8A7A20;
}
[data-theme="light"] nav {
  background: rgba(242,244,249,0.85);
}
[data-theme="light"] body::after { opacity: 0; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Grain overlay ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 7px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97) !important; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 0 0 rgba(0,161,132,0);
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,161,132,.35), 0 1px 3px rgba(0,0,0,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-green);
  color: var(--text-1);
  transform: translateY(-1px);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center;
  background: rgba(24,29,42,0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-logo { height: 36px; flex-shrink: 0; display: block; }
.nav-links {
  display: flex; gap: 0.25rem; list-style: none; margin-left: 0.5rem;
}
.nav-links a {
  display: block; padding: 0.4rem 0.875rem;
  font-size: 1.0625rem; color: var(--text-2); text-decoration: none;
  border-radius: 5px;
  transition: color .15s, text-decoration-color .2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}
.nav-links a:hover {
  color: var(--green-bright);
  text-decoration-color: var(--green);
}
.nav-links a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav-right { margin-left: auto; display: flex; gap: 0.625rem; align-items: center; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 9rem 2rem 7rem;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
#hero-shader {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
#hero-shader canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-glow-1 {
  position: absolute; top: -15%; left: -8%; z-index: 1;
  width: 55vw; height: 65vh;
  background: radial-gradient(ellipse at 30% 40%, rgba(0,161,132,.10) 0%, transparent 68%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: -10%; right: -5%; z-index: 1;
  width: 50vw; height: 55vh;
  background: radial-gradient(ellipse at 70% 60%, rgba(80,106,133,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-3 {
  position: absolute; top: 40%; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 60vw; height: 40vh;
  background: radial-gradient(ellipse, rgba(0,161,132,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 5rem;
  position: relative; z-index: 1;
}

.hero-text { max-width: 780px; width: 100%; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.5rem;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 400;
  color: var(--green);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.4; transform:scale(.75); }
}

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  color: var(--text-1);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.hero h1 em { font-style: italic; color: var(--green); }

.hero-desc {
  font-size: 1.125rem; line-height: 1.75;
  color: var(--text-2); font-weight: 300;
  max-width: 580px; margin: 0 auto 2.5rem;
}

.hero-ctas { display: flex; gap: 0.875rem; align-items: center; flex-wrap: wrap; justify-content: center; }

.hero-proof {
  display: flex; align-items: center; gap: 0.875rem;
  margin-top: 2.75rem; justify-content: center;
}
.avatar-row { display: flex; }
.avatar-ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.avatar-ring:first-child { margin-left: 0; }
.proof-text { font-size: 0.8125rem; color: var(--text-3); }
.proof-text b { color: var(--text-2); font-weight: 400; }

/* ─── Hero visual ────────────────────────────────────────── */
.hero-visual {
  position: relative; width: 100%; max-width: 1200px;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}

.hero-visual-pills {
  display: flex; gap: 0.625rem; flex-wrap: wrap; justify-content: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem; color: var(--text-2); font-weight: 300;
}
.hero-pill-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0;
}

/* ─── Platform diagram (hero visual) ─────────────────────── */
.platform-diagram {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.25),
    0 40px 100px rgba(0,0,0,.6),
    0 0 120px rgba(0,161,132,.08);
}
.pd-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.pd-bar-label {
  font-size: 0.75rem; color: var(--text-3); font-weight: 300;
}
.pd-body {
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0;
}
.pd-layer {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}
.pd-layer-risk { margin-top: 0; }
.pd-layer-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.pd-layer-icon { font-size: 0.875rem; }
.pd-layer-title {
  font-size: 0.75rem; font-weight: 600; color: var(--text-1);
  letter-spacing: 0.02em; flex: 1;
}
.pd-layer-tag {
  font-size: 0.6875rem; padding: 0.2rem 0.6rem;
  border-radius: 100px; font-weight: 400;
  background: var(--green-dim); color: var(--green);
  border: 1px solid var(--border-green);
}
.pd-layer-tag.free { background: var(--green-dim); color: var(--green); }

/* OKR rows */
.pd-okrs { display: flex; flex-direction: column; gap: 0.5rem; }
.pd-okr {
  display: flex; align-items: center; gap: 0.75rem;
}
.pd-okr-name {
  font-size: 0.75rem; color: var(--text-2); font-weight: 300; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-okr-track {
  width: 80px; height: 4px; background: rgba(255,255,255,.07);
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.pd-okr-fill { height: 100%; background: var(--green); border-radius: 2px; }
.pd-okr-fill.amber { background: #E4A03A; }
.pd-okr-pct { font-size: 0.6875rem; min-width: 28px; text-align: right; font-weight: 400; }
.pd-okr-pct.green { color: var(--green); }
.pd-okr-pct.amber { color: #E4A03A; }

/* Connector */
.pd-connector {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem;
}
.pd-connector-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-green), transparent);
}
.pd-connector-badge {
  font-size: 0.6875rem; color: var(--green); font-weight: 400;
  padding: 0.2rem 0.7rem;
  background: var(--green-dim); border: 1px solid var(--border-green);
  border-radius: 100px; white-space: nowrap;
}

/* Project rows */
.pd-projs { display: flex; flex-direction: column; gap: 0.5rem; }
.pd-proj {
  display: flex; align-items: center; gap: 0.6rem;
}
.pd-proj-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pd-proj-dot.green { background: var(--green); }
.pd-proj-dot.amber { background: #E4A03A; }
.pd-proj-name {
  font-size: 0.75rem; color: var(--text-2); font-weight: 300; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-proj-kpi {
  font-size: 0.6875rem; color: var(--text-3); font-weight: 300;
  white-space: nowrap;
}
.pd-proj-status {
  font-size: 0.6563rem; padding: 0.15rem 0.5rem;
  border-radius: 100px; font-weight: 400; flex-shrink: 0;
}
.pd-proj-status.on-track { background: rgba(0,161,132,.12); color: var(--green); }
.pd-proj-status.at-risk { background: rgba(228,160,58,.12); color: #E4A03A; }

/* Risk indicators */
.pd-risks {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.pd-risk-item {
  font-size: 0.6875rem; padding: 0.2rem 0.6rem;
  border-radius: 6px; font-weight: 400;
}
.pd-risk-item.high { background: rgba(204,41,54,.15); color: #E05A65; border: 1px solid rgba(204,41,54,.2); }
.pd-risk-item.medium { background: rgba(228,160,58,.12); color: #E4A03A; border: 1px solid rgba(228,160,58,.2); }
.pd-risk-item.low { background: rgba(0,161,132,.1); color: var(--green); border: 1px solid var(--border-green); }
.pd-risk-item.decisions { background: var(--bg-raised); color: var(--text-3); border: 1px solid var(--border); }

.float-anim { animation: floatUp 6s ease-in-out infinite; }
.float-anim-slow { animation: floatUp 8s ease-in-out infinite 1.5s; }
@keyframes floatUp {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-14px); }
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.25),
    0 32px 80px rgba(0,0,0,.55),
    0 0 100px rgba(0,161,132,.06);
}

.card-titlebar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.traffic-lights { display: flex; gap: 5px; }
.tl { width: 9px; height: 9px; border-radius: 50%; }
.tl-r { background: #CC2936; opacity:.7; }
.tl-y { background: #E4E9B2; opacity:.7; }
.tl-g { background: #9CD08F; opacity:.7; }
.card-titlebar-label {
  font-size: 0.7188rem; color: var(--text-3); margin-left: 0.25rem;
}

.dash-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  margin: 1rem; border-radius: 10px; overflow: hidden;
}
.dash-stat { background: var(--bg-elevated); padding: 0.875rem 1rem; }
.ds-label { font-size: 0.6875rem; color: var(--text-3); margin-bottom: 0.3rem; }
.ds-value { font-size: 1.375rem; font-weight: 600; color: var(--text-1); line-height: 1; }
.ds-value.green { color: var(--green); }
.ds-sub { font-size: 0.6875rem; color: var(--green); margin-top: 0.2rem; }
.ds-sub.muted { color: var(--text-3); }

.dash-objs { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dash-obj {
  background: var(--bg-elevated);
  border-radius: 8px; padding: 0.625rem 0.875rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.obj-indicator { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.obj-name { font-size: 0.75rem; color: var(--text-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obj-track {
  width: 72px; height: 4px; background: rgba(255,255,255,.06);
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.obj-fill { height: 100%; border-radius: 2px; }
.obj-pct { font-size: 0.6875rem; color: var(--text-3); min-width: 26px; text-align: right; }

/* ─── Floating chips ─────────────────────────────────────── */
.chip {
  position: absolute;
  background: var(--bg-raised);
  border: 1px solid rgba(0,161,132,0.45);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--text-1);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.chip-ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--green-dim); display: flex;
  align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0;
}
.chip-1 { top: -28px; right: -20px; animation: floatUp 5.5s ease-in-out infinite .8s; }
.chip-2 { bottom: -22px; left: -20px; animation: floatUp 7s ease-in-out infinite .3s; }
.chip-sub { font-size: 0.6563rem; color: var(--text-3); }

/* ─── Browser frame ──────────────────────────────────────── */
.browser-frame {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.25),
    0 32px 80px rgba(0,0,0,.55),
    0 0 100px rgba(0,161,132,.06);
}
.browser-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1rem;
  display: flex; align-items: center;
}
.browser-screenshot { display: block; width: 100%; height: auto; }

/* ─── Screenshot tabs ────────────────────────────────────── */
.app-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow-x: hidden;
}
.app-tab {
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.app-tab:hover { color: var(--text-2); }
.app-tab.active { color: var(--green); border-bottom-color: var(--green); }
.app-tab-panel { display: none; }
.app-tab-panel.active { display: block; }
.app-tab-panel img { max-height: 520px; width: 100%; object-fit: cover; object-position: top; display: block; }

/* ─── Logos bar ──────────────────────────────────────────── */
.logos-bar {
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.logos-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.logos-bar-label {
  font-size: 1rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.5rem; padding-bottom: 10px;
}
.logos-track-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.logos-track {
  display: flex; align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: logos-scroll 32s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-img {
  flex-shrink: 0;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 1;
}
.logo-img-tall { height: 68px; }

/* ─── Further Capabilities & Outcomes Strips ─────────────── */
.caps-band { padding: 4rem 2rem; }
.caps-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.stat-cell {
  background: var(--bg);
  padding: 2.5rem 2rem; text-align: center;
  transition: background .2s;
}
.stat-cell:hover { background: var(--bg-card); }
.stat-num {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 400; line-height: 1.2;
  color: var(--text-1); margin-bottom: 0.5rem;
}
.stat-num .accent { color: var(--green); }
.stat-desc { font-size: 0.875rem; color: var(--text-3); font-weight: 400; line-height: 1.6; }

/* ─── Outcomes band ──────────────────────────────────────── */
.outcomes-band {
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.outcomes-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2rem;
}
.outcome-cell {
  text-align: center; padding: 1.5rem 1rem;
}
.outcome-icon {
  font-size: 1.75rem; color: var(--green);
  margin-bottom: 1rem; line-height: 1;
}
.outcome-title {
  font-family: 'Merriweather', serif;
  font-size: 1.125rem; font-weight: 400;
  color: var(--text-1); margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}
.outcome-desc {
  font-size: 0.875rem; color: var(--text-3);
  font-weight: 300; line-height: 1.7;
}

/* ─── Section shared ─────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow-sm {
  font-size: 1rem; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 1.5rem;
}
.section-h {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  color: var(--text-1); margin-bottom: 1.125rem;
  line-height: 1.3;
}
.section-lead {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--text-2); font-weight: 300;
  max-width: 540px;
}

/* ─── Features ───────────────────────────────────────────── */
.features-section { background: var(--bg); }
.features-header { text-align: center; margin-bottom: 4rem; }
.features-header .section-lead { margin: 0 auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.feat {
  background: var(--bg);
  padding: 2.25rem 2.25rem;
  transition: background .22s;
}
.feat:hover { background: var(--bg-card); }
.feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.0625rem; margin-bottom: 1.25rem;
  transition: box-shadow .2s;
}
.feat:hover .feat-icon { box-shadow: 0 0 18px rgba(0,161,132,.2); }
.feat h3 {
  font-size: 0.9375rem; font-weight: 400;
  color: var(--text-1); margin-bottom: 0.6rem;
  font-family: 'Nunito Sans', sans-serif;
}
.feat p {
  font-size: 0.9375rem; line-height: 1.7;
  color: var(--text-2); font-weight: 300;
}

/* ─── Feature card preview ───────────────────────────────── */
.feat-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  background: var(--bg-raised);
}
.feat-preview-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  display: flex; align-items: center;
}
.feat-preview-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.feat:hover .feat-preview-img { transform: scale(1.04); }

/* ─── Missing link comparison ────────────────────────────── */
.missing-link-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  text-align: left;
  align-items: start;
}
.mls-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.mls-label {
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text-1); margin-bottom: 1.25rem;
  line-height: 1.4;
}
.mls-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
}
.mls-badge {
  display: inline-flex;
  padding: 0.35rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-2); font-weight: 300;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.mls-badge:hover { border-color: var(--border-green); color: var(--text-1); }
.mls-plus {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Merriweather', serif;
  font-size: 2.25rem; color: var(--text-3);
  padding: 1.5rem 0.5rem;
  align-self: center;
}
.mls-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(0,161,132,.1), rgba(0,161,132,.04));
  border: 1px solid var(--border-green);
  border-radius: 16px;
  margin-top: 0.5rem;
}
.mls-result-badge {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 400;
  color: var(--green); margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}
.mls-result p {
  font-size: 1rem; color: var(--text-2);
  font-weight: 300; line-height: 1.7;
  max-width: 560px; margin: 0 auto;
}

/* ─── Showcase ───────────────────────────────────────────── */
.showcase-section { overflow: hidden; }
.showcase-intro {
  max-width: 900px; margin: 0 auto;
  text-align: center; padding: 8rem 2rem 4rem;
}
.showcase-intro .section-h { line-height: 1.2; }
.showcase-intro .section-lead { margin: 1.25rem auto 0; max-width: 520px; }

.feat-row { padding: 5.5rem 2rem; }
.feat-row-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feat-row-body {
  max-width: 1060px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
}
.feat-copy { max-width: 600px; text-align: center; }

.feat-label-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem 0.35rem 0.6rem;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 400;
  color: var(--green); letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.feat-label-icon { font-size: 0.875rem; }

.feat-row-h {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  font-weight: 400; color: var(--text-1);
  letter-spacing: -0.025em; line-height: 1.35;
  margin-bottom: 1rem;
}
.feat-copy p { font-size: 1rem; line-height: 1.78; color: var(--text-2); font-weight: 300; }
.feat-shot { width: 100%; max-width: 1060px; }

/* ─── Feature metrics ────────────────────────────────────── */
.feat-metrics {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 2.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.feat-metric {
  flex: 1; padding: 1.25rem 1.5rem; text-align: center; min-width: 0;
}
.feat-metrics-5 { width: 100%; margin-top: 0; }
.feat-metrics-5 .feat-metric { padding: 1.25rem 1rem; }
.feat-metrics-5 .feat-metric-val { font-size: clamp(0.875rem, 1.1vw, 1.0625rem); }
.feat-metrics-5 .feat-metric-lbl { font-size: 0.75rem; }
.feat-metrics-5 .feat-metric-div { height: 40px; }
.feat-metric-div {
  width: 1px; height: 48px; background: var(--border); flex-shrink: 0;
}
.feat-metric-val {
  font-family: 'Merriweather', serif;
  font-size: clamp(0.9375rem, 1.3vw, 1.25rem); font-weight: 400; line-height: 1.2;
  color: var(--green); margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.feat-metric-lbl {
  font-size: 0.75rem; color: var(--text-3); line-height: 1.4; font-weight: 300;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testi-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testi-header { text-align: center; margin-bottom: 3.5rem; }
.testi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
  transition: border-color .25s, transform .25s cubic-bezier(.34,1.56,.64,1);
  display: flex; flex-direction: column;
}
.testi-quote { flex: 1; }
.testi-card:hover {
  border-color: var(--border-green);
  transform: translateY(-4px);
}
.stars { color: var(--green); font-size: 0.875rem; margin-bottom: 1rem; letter-spacing: 1px; }
.testi-quote {
  font-size: 1rem; line-height: 1.72;
  color: var(--text-2); font-style: italic;
  font-weight: 300; margin-bottom: 0; flex: 1;
}
.testi-person { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.person-ava {
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0; border: 1.5px solid var(--border-green);
  display: block; object-fit: cover; align-self: center;
}
.person-name { font-size: 0.875rem; font-weight: 400; color: var(--text-1); }
.person-role { font-size: 0.75rem; color: var(--text-3); }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  padding: 7rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 380px;
  background: radial-gradient(ellipse, rgba(0,161,132,.16) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-section .section-h {
  font-size: clamp(2rem,4vw,3.125rem);
  margin-bottom: 1.25rem;
  line-height: 1.35;
  padding: 0 1rem;
}
.cta-section .section-lead { margin: 0 auto 2.5rem; text-align: center; }
.cta-btns { display: flex; gap: 0.875rem; justify-content: center; }
.cta-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem; color: var(--text-3); font-weight: 400;
}

/* ─── Integrations ───────────────────────────────────────── */
.integrations-band {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.integrations-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.integrations-sub {
  font-size: 1rem; line-height: 1.75; color: var(--text-2);
  font-weight: 300; margin-top: 1rem;
}
.integrations-icons {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; margin-bottom: 3rem;
}
.int-icon {
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.int-icon:hover { transform: translateY(-4px); }
.int-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.int-icon-wrap svg { width: 36px; height: 36px; }
.int-icon span {
  font-size: 0.75rem; color: var(--text-3);
  font-weight: 400; letter-spacing: 0.01em;
}
.integrations-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.integrations-count {
  font-size: 0.9375rem; font-weight: 600; color: var(--text-1);
}
.integrations-via-text { font-size: 0.9375rem; color: var(--text-3); }
.integrations-connector { font-size: 0.9375rem; }

/* ─── G2 Badge ───────────────────────────────────────────── */
.g2-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem;
  margin-top: 0;
  padding: 0.85rem 1rem;
  width: auto; min-width: 80px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.g2-badge:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.g2-icon { width: 22px; height: 22px; flex-shrink: 0; }
.g2-badge-body { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.g2-stars { color: #FF492C; font-size: 0.625rem; letter-spacing: 0.04em; line-height: 1; }
.g2-label { font-size: 0.625rem; color: var(--text-3); line-height: 1.2; white-space: nowrap; }
.g2-label strong { color: var(--text-2); font-weight: 600; }
.g2-badge-lg { flex-direction: row; gap: 0.625rem; padding: 0.625rem 1.125rem; margin-top: 1.5rem; border-radius: 100px; min-width: unset; }
.g2-badge-lg .g2-badge-body { flex-direction: column; align-items: flex-start; }
.g2-badge-lg .g2-icon { width: 36px; height: 36px; }
.g2-badge-lg .g2-stars { font-size: 0.875rem; }
.g2-badge-lg .g2-label { font-size: 0.8125rem; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem 2.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.footer-brand-desc {
  font-size: 0.9375rem; line-height: 1.75;
  color: var(--text-3); margin-top: 1rem;
  max-width: 260px; font-weight: 400;
}
.footer-col-h {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-2); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a {
  font-size: 1rem; color: var(--text-3);
  text-decoration: none; font-weight: 400;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--text-2); }
.footer-col ul li a:focus-visible { outline: 2px solid var(--green); border-radius: 2px; }
.footer-btm {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-btm p { font-size: 0.875rem; color: var(--text-3); font-weight: 400; }
.footer-btm-links { display: flex; gap: 1.5rem; }
.footer-btm-links a {
  font-size: 0.875rem; color: var(--text-3);
  text-decoration: none; font-weight: 400;
  transition: color .15s;
}
.footer-btm-links a:hover { color: var(--text-2); }

/* ─── Theme toggle ───────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: color .18s, border-color .18s, background .18s, transform .18s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--green-bright);
  border-color: var(--border-green);
  background: var(--green-dim);
  transform: rotate(18deg) scale(1.08);
}
.theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Logo swap */
.logo-light { display: none; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ─── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
