/* ============================================================
   FuSync — Marketing page
   Design tokens & sections
   ============================================================ */

:root {
  /* Brand */
  --violet: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;
  --violet-50: #F5F3FF;
  --violet-100: #EDE9FE;

  --green: #10B981;
  --green-600: #059669;
  --green-50: #ECFDF5;

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

  /* Gradients */
  --grad-brand: linear-gradient(92deg, var(--violet) 0%, #7C3AED 55%, var(--green) 110%);

  /* Type */
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 6px 24px -6px rgba(15, 23, 42, .14), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px -16px rgba(139, 92, 246, .28), 0 8px 20px -8px rgba(15, 23, 42, .16);
  --shadow-violet: 0 10px 28px -10px rgba(139, 92, 246, .55);

  --container: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--slate-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--violet-600); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--violet-600);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.section { padding: 96px 0; }

/* ---------- Typography helpers ---------- */
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin-bottom: 14px;
}

.h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 620px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.text-link {
  font-weight: 600;
  color: var(--violet-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}
.text-link:hover { color: var(--violet-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--violet-600);
  color: var(--white);
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { background: var(--violet-700); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--slate-800);
  border-color: var(--slate-300);
}
.btn-secondary:hover { border-color: var(--slate-400); background: var(--slate-50); }

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }

.btn-light {
  background: var(--white);
  color: var(--violet-700);
}
.btn-light:hover { background: var(--slate-100); transform: translateY(-1px); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.btn .ico { width: 17px; height: 17px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--slate-900);
  color: var(--slate-200);
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  z-index: 60;
}
.announce p { margin: 0; }
.announce a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce-badge {
  display: inline-block;
  background: var(--green-600);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  margin-right: 8px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--slate-200);
  box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 120px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-signin { padding: 10px 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--slate-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
  background:
    radial-gradient(60% 50% at 50% -10%, var(--violet-50) 0%, rgba(240,253,250,0) 70%),
    linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
}

.hero-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}
.nodes-lines path {
  stroke-dasharray: 6 8;
  animation: dash-flow 30s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -560; } }
.nodes-dots circle { animation: node-pulse 4s ease-in-out infinite; }
.nodes-dots circle:nth-child(2n) { animation-delay: -2s; }
@keyframes node-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.hero-inner {
  position: relative;
  text-align: center;
  padding-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--violet-700);
  background: var(--white);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: var(--slate-500);
}
.hero-meta li { position: relative; }
.hero-meta li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--slate-300);
}

/* ---------- Hero mockup ---------- */
.hero-visual {
  position: relative;
  max-width: 980px;
  margin: 64px auto 0;
  padding-bottom: 32px;
}

.mockup {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.win-dots i:nth-child(1) { background: #F87171; }
.win-dots i:nth-child(2) { background: #FBBF24; }
.win-dots i:nth-child(3) { background: #34D399; }

.mockup-tab {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.4s ease-in-out infinite;
}

.mockup-body { display: flex; }

.mockup-canvas {
  position: relative;
  flex: 0 0 716px;
  width: 716px;
  height: 440px;
  background-color: var(--slate-50);
  background-image: radial-gradient(var(--slate-300) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  overflow: hidden;
}

.connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.connector path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  animation: dash-flow 10s linear infinite;
}

.node {
  position: absolute;
  width: 232px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.node:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.node-trigger { top: 24px; left: 24px; }
.node-ai { top: 152px; left: 24px; border-color: rgba(20,184,166,.5); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
.node-gmail { top: 300px; left: 24px; }
.node-slack { top: 300px; left: 272px; }

.node-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.node-ico {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
}
.node-ico.trigger { background: var(--violet-50); color: var(--violet-600); }
.node-ico.ai { background: var(--green-50); color: var(--green-600); }
.node-ico.action { background: var(--slate-100); color: var(--slate-600); }

.node-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--slate-800);
  line-height: 1.25;
  flex: 1;
}
.node-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-500);
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  white-space: nowrap;
}
.node-tag.ai-tag { color: var(--green-600); background: var(--green-50); }
.node-meta { font-size: 12px; color: var(--slate-500); padding-left: 42px; }

.node-add {
  position: absolute;
  bottom: 96px;
  right: 120px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--violet-600);
  color: var(--white);
  border: none;
  font-size: 22px;
  font-weight: 600;
  box-shadow: var(--shadow-violet);
}

.mockup-panel {
  width: 264px;
  flex-shrink: 0;
  background: var(--white);
  border-left: 1px solid var(--slate-200);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0;
}
.panel-field {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.panel-field span { display: block; font-size: 11px; color: var(--slate-500); margin-bottom: 3px; }
.panel-field strong { font-size: 13px; color: var(--slate-800); }
.panel-prompt {
  font-size: 12.5px;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
}
.chip.ok { color: var(--green-600); }
.panel-btn {
  margin-top: auto;
  background: var(--violet-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
  transition: background .15s ease;
}
.panel-btn:hover { background: var(--violet-700); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.float-card strong { display: block; color: var(--slate-900); font-family: var(--font-head); font-size: 14px; }
.float-card span { color: var(--slate-500); }
.float-check {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  font-weight: 700;
}
.float-a { top: 84px; right: -28px; }
.float-b { bottom: 4px; left: -40px; }

/* ---------- Effect ---------- */
.effect { background: var(--slate-50); }

.story {
  position: relative;
  height: 640vh;
}
.story-inner {
  position: sticky;
  top: 96px;
  z-index: 1;
}
.story-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 72% 18%, rgba(139, 92, 246, .07), transparent 60%),
    radial-gradient(60% 60% at 18% 92%, rgba(16, 185, 129, .06), transparent 60%);
  pointer-events: none;
}

.effect-show {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: stretch;
}
.effect-tabs { display: flex; flex-direction: column; gap: 6px; }
.etab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 15px 18px 15px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.etab span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--slate-800);
  transition: color .18s ease;
}
.etab small { font-size: 12.5px; color: var(--slate-500); }
.etab:hover { background: rgba(255, 255, 255, .6); }
.etab:hover span { color: var(--violet-600); }
.etab.is-on {
  background: var(--white);
  border-color: var(--slate-200);
  box-shadow: var(--shadow);
}
.etab.is-on span { color: var(--violet-600); }
.etab.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
}

.effect-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  padding: 40px 42px;
  display: flex;
  align-items: center;
}
.effect-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 90% -10%, rgba(139, 92, 246, .5) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 110%, rgba(16, 185, 129, .25) 0%, transparent 60%);
  pointer-events: none;
}
.epanel {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.epanel.is-on { display: flex; animation: ep-fade .35s ease both; }
@keyframes ep-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ep-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}
.epanel h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 460px;
}
.ep-text {
  color: var(--slate-400);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 470px;
}
.ep-trigger {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.ep-trigger span {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--slate-500);
}
.ep-trigger strong {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12.5px;
}
.ep-flow {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.effect-stage .app-chip {
  width: 40px;
  height: 40px;
  background-color: var(--white) !important;
  border-radius: 11px;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
}
.effect-stage .flow-arrow { color: var(--slate-600); opacity: .9; }
.mini-apps { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; }
.flow-arrow { color: var(--violet); opacity: .55; font-weight: 700; }
.app-chip {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: var(--slate-300);
}
.app-chip.h { background: #FF7A59; }
.app-chip.s { background: #4A154B; }
.app-chip.g { background: #EA4335; }
.app-chip.gs { background: #34A853; }
.app-chip.o { background: #10A37F; }
.app-chip.n { background: #111827; }
.app-chip.z { background: #03363D; }
.app-chip.q { background: #2CA01C; }
.app-chip.sh { background: #96BF48; }
.app-chip.t { background: #0079BF; }
.app-chip.b { background: #005054; }

/* ---------- Features (bento) ---------- */
.features-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-auto-flow: dense;
}
.bento-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-100); }
.bento-tile h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.bento-tile p { font-size: 14.5px; color: var(--slate-500); margin: 0; }

.bento-builder { grid-column: span 7; grid-row: span 2; }
.bento-ai {
  grid-column: span 5;
  background: var(--slate-900);
  border-color: transparent;
}
.bento-ai:hover { border-color: transparent; }
.bento-ai h3 { color: var(--white); }
.bento-ai p { color: var(--slate-400); }
.bento-ai .feature-icon { background: rgba(255, 255, 255, .08); color: var(--green); }
.bento-apps { grid-column: span 5; }
.bento-sm { grid-column: span 3; }
.bento-sm.tint-violet { background: linear-gradient(180deg, var(--violet-50), var(--white) 68%); }
.bento-sm.tint-green { background: linear-gradient(180deg, var(--green-50), var(--white) 68%); }
.bento-sm.tint-sky { background: linear-gradient(180deg, #EFF6FF, var(--white) 68%); }
.bento-sm.tint-mint { background: linear-gradient(180deg, #F0FDFA, var(--white) 68%); }

.feat-mini {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--slate-500);
}
.feat-mini i { width: 7px; height: 7px; border-radius: 50%; }
.feat-mini i.ok { background: var(--green); }
.feat-mini i.live { background: var(--green); animation: blink 2.4s ease-in-out infinite; }
.feat-mini i.bad { background: #F87171; }
.feat-mini em { font-style: normal; }
.feat-mini code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: 6px;
  padding: 2px 8px;
}
.bento-team {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, var(--white), var(--violet-50));
}
.bento-team .feature-icon { margin-bottom: 0; }

.feature-icon {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-600);
  background: linear-gradient(140deg, var(--violet-50), var(--green-50));
  border-radius: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.team-copy { display: flex; gap: 16px; align-items: flex-start; }
.team-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.team-chips span {
  background: var(--violet-50);
  color: var(--violet-700);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
}

/* Mini flow canvas inside the builder tile */
.mf-stage {
  flex: 1;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background-color: var(--slate-50);
  background-image: radial-gradient(var(--slate-300) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 16px 20px 12px;
}
.mf-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.mf-dots { display: flex; gap: 5px; }
.mf-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300); }
.mf-dots i:nth-child(1) { background: #F87171; opacity: .7; }
.mf-dots i:nth-child(2) { background: #FBBF24; opacity: .7; }
.mf-dots i:nth-child(3) { background: #34D399; opacity: .7; }
.mf-name {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--slate-500);
}
.mf-pub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--green-600);
  background: var(--white);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: var(--radius-full);
  padding: 3px 9px;
}
.mf-pub i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mf-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mf-card {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.mf-badge {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--violet-50);
  color: var(--violet-600);
  font-size: 16px;
}
.mf-badge.a { background: var(--green-50); color: var(--green-600); }
.mf-badge.s { background: var(--slate-100); color: var(--slate-600); }
.mf-txt { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.mf-txt strong { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--slate-800); }
.mf-txt small { font-size: 11px; color: var(--slate-500); }
.mf-ai { border-color: rgba(16, 185, 129, .45); }
.mf-conn { flex: 1 1 0; min-width: 26px; display: flex; align-items: center; }
.mf-conn i {
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--violet) 0 55%, transparent 55% 100%);
  background-size: 16px 2px;
  background-repeat: repeat-x;
  opacity: .5;
  animation: flow-line 14s linear infinite;
}
.mf-runbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--slate-400);
}

@keyframes flow-line { to { background-position-x: -18px; } }

/* Prompt visual in the dark AI tile */
.ai-prompt {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--slate-200);
}
.ai-prompt span { color: var(--green); font-weight: 700; }

.app-chip.st { background: #635BFF; }
.app-chip.more { background: var(--violet-600); }

/* ---------- How it works ---------- */
.how { background: linear-gradient(180deg, var(--white), var(--violet-50)); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  top: 31px;
  height: 3px;
  background-image: linear-gradient(90deg, var(--violet) 0 55%, transparent 55% 100%);
  background-size: 18px 3px;
  background-repeat: repeat-x;
  opacity: .5;
  animation: flow-line 20s linear infinite;
  pointer-events: none;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}
.step-node {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--white);
}
.step h3 { font-size: 18px; font-weight: 700; margin-top: 24px; }
.step p { font-size: 14.5px; color: var(--slate-500); margin: 10px auto 0; max-width: 320px; }

.how-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 4px;
}
.stat strong span { color: var(--green); }
.stat span {
  color: var(--slate-400);
  font-size: 14px;
}

/* ---------- Integrations ---------- */
.apps-panel {
  background-color: var(--slate-50);
  background-image: radial-gradient(var(--slate-300) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 34px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.app-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 9px 16px 9px 9px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-700);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
}
.app-icon.gmail { background: #EA4335; }
.app-icon.sheets { background: #34A853; }
.app-icon.slack { background: #4A154B; }
.app-icon.notion { background: #111827; }
.app-icon.hubspot { background: #FF7A59; }
.app-icon.stripe { background: #635BFF; }
.app-icon.salesforce { background: #00A1E0; }
.app-icon.openai { background: #10A37F; }
.app-icon.zendesk { background: #03363D; }
.app-icon.trello { background: #0079BF; }
.app-icon.github { background: #24292F; }
.app-icon.discord { background: #5865F2; }
.app-icon.airtable { background: #FCB400; color: #3D3D3D; }
.app-icon.teams { background: #6264A7; }
.app-icon.shopify { background: #96BF48; color: #003A2F; }
.app-icon.zoom { background: #0B5CFF; }
.app-icon.more { background: var(--violet-600); }
.app-more { border: 2px dashed var(--violet-300); background: transparent; box-shadow: none; color: var(--violet-600); }

.center-link { text-align: center; }

/* ---------- AI ---------- */
.ai { background: var(--slate-900); }
.ai .eyebrow { color: var(--green); }
.ai .h2 { color: var(--white); }
.ai .lead { color: var(--slate-400); }

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ai-bullets { margin: 28px 0 32px; display: grid; gap: 18px; }
.ai-bullets li { display: flex; gap: 14px; align-items: flex-start; }
.ai-bullets .bullet-ico {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16, 185, 129, .12);
}
.ai-bullets span { color: var(--slate-300); font-size: 15px; }
.ai-bullets strong { display: block; color: var(--white); margin-bottom: 2px; }

.chat-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.chat-row.you { display: flex; justify-content: flex-end; }
.chat-row.you p {
  background: var(--violet-600);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px;
  max-width: 88%;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.chat-row.bot { display: grid; gap: 12px; }
.bot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--green-600);
  margin: 0;
}
.bot-flow {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.bot-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.mini-ico {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.mini-ico.trigger { background: var(--violet-50); color: var(--violet-600); }
.mini-ico.ai { background: var(--green-50); color: var(--green-600); }
.mini-ico.action { background: var(--slate-100); color: var(--slate-600); }
.bot-step strong { display: block; font-family: var(--font-head); font-size: 13px; color: var(--slate-800); }
.bot-step span { font-size: 12px; color: var(--slate-500); }
.bot-note { font-size: 13px; color: var(--slate-500); margin: 0; }
.bot-actions { display: flex; gap: 10px; }
.bot-actions .btn-ghost { color: var(--slate-700); border: 1px solid var(--slate-300); }
.bot-actions .btn-ghost:hover { background: var(--slate-100); }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-card blockquote {
  margin: 0;
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.6;
  flex: 1;
}
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-card figcaption strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--slate-900); }
.t-card figcaption div span { font-size: 12.5px; color: var(--slate-500); }
.avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
}
.avatar.sc { background: linear-gradient(140deg, var(--violet), #7C3AED); }
.avatar.mw { background: linear-gradient(140deg, var(--green), #059669); }
.avatar.pn { background: linear-gradient(140deg, #F59E0B, #EA580C); }
.avatar.da { background: linear-gradient(140deg, #3B82F6, #1D4ED8); }
.avatar.ab { background: linear-gradient(140deg, #EC4899, #BE185D); }
.avatar.to { background: linear-gradient(140deg, #8B5CF6, #6D28D9); }

/* ---------- Pricing ---------- */
.pricing { background: var(--slate-50); }

.price-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-top: 26px;
}
.price-switch button {
  border: none;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-500);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: background .15s ease, color .15s ease;
}
.price-switch button.active { background: var(--white); color: var(--slate-900); box-shadow: var(--shadow-sm); }
.save-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-600);
  background: var(--green-50);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  margin-left: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--violet-600); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.amount { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--slate-900); line-height: 1; }
.per { color: var(--slate-500); font-size: 14px; }
.price-note { font-size: 13.5px; color: var(--slate-500); min-height: 40px; }
.price-feats { margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; }
.price-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--slate-700);
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600);
  font-weight: 700;
}
.price-card .btn { width: 100%; }

.price-card.featured {
  border: 2px solid var(--violet);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--white), var(--violet-50));
}
.featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  white-space: nowrap;
}

.pricing-foot { text-align: center; margin: 34px 0 0; color: var(--slate-500); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--violet-100); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-900);
  padding: 20px 22px;
}
.faq-chev {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--slate-400);
  border-bottom: 2px solid var(--slate-400);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq-item.open .faq-chev { transform: rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--slate-500); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding-bottom: 0; }
.cta-panel {
  position: relative;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(139, 92, 246, .55) 0%, transparent 60%),
    var(--slate-900);
  border-radius: 28px;
  padding: 88px 32px 72px;
  margin-bottom: 72px;
  overflow: hidden;
}
.cta-logo { margin: 0 auto 26px; width: 150px; height: auto; }
.cta-title { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.cta-sub { color: var(--slate-400); font-size: 1.05rem; max-width: 520px; margin: 0 auto 30px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.cta-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: var(--slate-400);
}
.cta-meta li { position: relative; }
.cta-meta li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--slate-600);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding: 72px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p { margin: 18px 0 22px; font-size: 14.5px; max-width: 260px; }
.footer-brand img { width: 132px; height: auto; }
.footer-col h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--slate-400); font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  color: var(--slate-300);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.socials a:hover { background: var(--violet-600); color: var(--white); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer-disclaimer {
  max-width: 780px;
  margin: 0 0 30px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate-500);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 28px;
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a { color: var(--slate-400); transition: color .15s ease; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

.reveal-children > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-children.visible > * { opacity: 1; transform: none; }
.reveal-children.visible > *:nth-child(2) { transition-delay: .06s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: .12s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: .18s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: .24s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: .3s; }
.reveal-children.visible > *:nth-child(7) { transition-delay: .36s; }
.reveal-children.visible > *:nth-child(8) { transition-delay: .42s; }
.reveal-children.visible > *:nth-child(n+9) { transition-delay: .48s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento-builder { grid-column: span 12; grid-row: auto; }
  .bento-ai, .bento-apps { grid-column: span 6; }
  .bento-sm { grid-column: span 6; }
  .bento-team { grid-column: span 12; }
  .apps-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ai-layout { grid-template-columns: 1fr; gap: 40px; }
  .float-a { right: -8px; }
  .float-b { left: -8px; }
}

@media (min-width: 861px) {
  .story-inner {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 96px);
    will-change: transform;
  }
  .effect-show { width: 100%; }
  .effect-tabs { justify-content: center; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-actions .nav-signin {
    position: fixed;
    inset: 0;
    top: calc(var(--nav-h) + 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 20px 24px 32px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; padding: 12px 8px; width: 100%; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .step-node { width: 56px; height: 56px; font-size: 19px; }
  .step h3 { margin-top: 16px; }
  .apps-panel { padding: 24px; }
  .how-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .mockup-body { flex-direction: column; }
  .mockup-canvas { flex: none; width: 100%; height: auto; padding: 24px 20px; }
  .connector { display: none; }
  .node { position: static; width: 100%; margin-bottom: 14px; }
  .node-gmail, .node-slack { top: auto; left: auto; }
  .node-add { display: none; }
  .mockup-panel { width: 100%; border-left: none; border-top: 1px solid var(--slate-200); }
  .float-card { display: none; }
  .hero { padding-top: 64px; }
  .effect-show { grid-template-columns: 1fr; gap: 18px; }
  .story { height: auto; }
  .story-inner::before { display: none; }
  .story-inner { position: static; }
  .effect-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .etab { padding: 13px 16px 13px 18px; }
  .effect-stage { padding: 28px 24px; }
}

@media (max-width: 620px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .effect-tabs { grid-template-columns: 1fr; }
  .effect-stage { padding: 24px 18px; }
  .epanel h3 { font-size: 1.5rem; }
  .effect-stage .app-chip { width: 36px; height: 36px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-builder, .bento-ai, .bento-apps, .bento-sm, .bento-team { grid-column: 1 / -1; grid-row: auto; }
  .bento-team { flex-direction: column; align-items: flex-start; }
  .apps-panel { padding: 18px; }
  .how-meta { grid-template-columns: 1fr; }
  .mf-canvas { flex-wrap: wrap; }
  .mf-conn { display: none; }
  .mf-card { flex: 1 1 100%; }
  .mf-runbar { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .socials { flex-wrap: wrap; }
  .hero-meta, .cta-meta { flex-direction: column; gap: 8px; align-items: center; }
  .hero-meta li::after, .cta-meta li::after { display: none; }
  .cta-panel { border-radius: 20px; padding: 64px 22px 56px; margin-bottom: 48px; }
}

/* ---------- Sign-up modal ---------- */
.js-signup { cursor: pointer; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }

.modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 30px;
  position: relative;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}
.modal-overlay.open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--slate-200); color: var(--slate-900); }

.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head img { margin: 0 auto 18px; width: 118px; height: auto; }
.modal-head h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--slate-500); margin: 0; }

.modal-form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--slate-700); }
.field label .opt { font-weight: 400; color: var(--slate-400); }
.field input {
  font: inherit;
  font-size: 15px;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--slate-400); }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.field.invalid input { border-color: #EF4444; }
.field-err { font-size: 12.5px; color: #DC2626; margin: 0; }

.modal-submit { width: 100%; margin-top: 4px; }
.modal-terms { font-size: 12.5px; color: var(--slate-500); text-align: center; margin: 0; }
.modal-terms a { color: var(--slate-700); text-decoration: underline; }

.modal-success { text-align: center; padding: 8px 0 2px; }
.success-check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 28px;
  font-weight: 700;
}
.modal-success h3 { font-size: 20px; }
.modal-success p { color: var(--slate-500); font-size: 14.5px; margin-bottom: 20px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-children > * { opacity: 1; transform: none; }
}

/* ---------- Real app logos (swap letter glyphs for the actual marks) ---------- */
.app-icon,
.app-chip {
  color: transparent !important;
  font-size: 0 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 62% auto !important;
  border-radius: 7px !important;
}
.app-chip { background-size: 78% auto !important; }
.app-icon.more,
.app-chip.more {
  color: var(--white) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  background-image: none !important;
  background-color: var(--violet-600) !important;
  border-radius: 50% !important;
}
.app-chip.more { font-size: 17px !important; }

.app-icon.gmail, .app-chip.g { background-image: url('../assets/apps/gmail.png') !important; }
.app-icon.sheets, .app-chip.gs { background-image: url('../assets/apps/google-sheets.png') !important; }
.app-icon.slack, .app-chip.s { background-image: url('../assets/apps/slack.png') !important; }
.app-icon.notion, .app-chip.n { background-image: url('../assets/apps/notion.png') !important; }
.app-icon.hubspot, .app-chip.h { background-image: url('../assets/apps/hubspot.png') !important; }
.app-icon.stripe, .app-chip.st { background-image: url('../assets/apps/stripe.png') !important; }
.app-icon.salesforce { background-image: url('../assets/apps/salesforce.png') !important; }
.app-icon.openai, .app-chip.o { background-image: url('../assets/apps/openai.png') !important; }
.app-icon.zendesk, .app-chip.z { background-image: url('../assets/apps/zendesk.png') !important; }
.app-icon.trello, .app-chip.t { background-image: url('../assets/apps/trello.png') !important; }
.app-icon.github { background-image: url('../assets/apps/github.png') !important; }
.app-icon.discord { background-image: url('../assets/apps/discord.png') !important; }
.app-icon.airtable { background-image: url('../assets/apps/airtable.png') !important; }
.app-icon.teams { background-image: url('../assets/apps/microsoft-teams.png') !important; }
.app-icon.shopify, .app-chip.sh { background-image: url('../assets/apps/shopify.png') !important; }
.app-icon.zoom { background-image: url('../assets/apps/zoom.png') !important; }
.app-chip.q { background-image: url('../assets/apps/quickbooks.png') !important; }
.app-chip.b { background-image: url('../assets/apps/bamboohr.png') !important; }
